How to let a FileListener fail

Current Situation: a FileListener uses svcAddWork to create a work object. If the creation fails, the whole FileListener reports an error. The SMA tells me that hte Listener failed, an error report will be created and the file will be in recovery mode. Now the Problem: after calling svcAddWork, I do some additional processing on the work item. There are some checks and if one of those checks or steps fails, I would like to do some error handling and afterwards let the FileListener fail in such a way as described above: SMA shows error, error log generated, recovery mode. But how? Is there a function or activity I can call? Or is it just setting the righ property to "fail" - I already tried different properties and activities I've found in svcAddWork... without real success.

***Updated by moderator: Marissa to close post***

This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.


Keep up to date on this post and subscribe to comments