I want to process a fixed length file record by record. For each record I want to call an activity. If the acitivity fails for one record I would like to report it as an error and continue with the next record. How can I enforce an error?
In Product Support community I also found following article, but it is not answered yet.
There is a possiblity that your usage of "enforce" is implying that you want to test processing by causing an error to see what error handling happens. Thus the responses which you have received.
If I understand correctly, you are asking how to design processing such that if an error is encountered while a file listener is processing a record, you want to be able to report that error and continue processing any remaining records in the file. You want to know how you can capture the error information, handle the error as your design demands (such as an error message or writing to a suspend file) and return to the file listener such that the next record is processed.
For example, if the application's daily input file has 1000 records and two of them receive errors, at the end of the daily processing, you want to have processed 998 records and written two error records to be corrected and reprocessed regardless of which two of the 1000 input records received the errors.
After speaking with our SMEs here, it was decided that in order for the behavior change you are wanting, an enhancement request should be filed. I filed one for you and updated your original thread with the Feedback ID. Please follow up with your Account Executive with this ID for next steps.