Published on InterSystems Developer Community (https://community.intersystems.com)

Home > Handling Errors

Question
Scott Roth · Jan 13, 2021

Handling Errors

I have a case where our EMR is sending data, but not all the values needed for the Ancillary are valued properly and causes that message to error/halt processing on the Ancillary system, not ideal but its what they do. I would expect them to still process the message except that 1 field, but they don't.

I want to add validation to make sure certain fields are valued correctly for the Vendor. 

So I add some statements to take those items that don't pass this validation out to a batch file with headers.

But I want to email out that batch file. How could I have the Email Operation validate that their is a file to send as an Attachment, if that file exists, use it to define who to send it to and what is included in the message?

Is there a sample of this somewhere?

Thanks

Scott

#Business Operation #Business Process (BPL) #Code Snippet #DTL #Error Handling #Caché #Ensemble
Product version: Ensemble 2018.1
$ZV: Cache for UNIX (IBM AIX for System Power System-64) 2018.1.3 (Build 414U) Mon Oct 28 2019 11:24:02 EDT

Source URL:https://community.intersystems.com/post/handling-errors