Epicor Function - how to change status

Is there a way to mark a function as “ERROR” when it completes successfully? I have a process that runs, but because of business logic, there are some errors I report in the SysMonitor

The Task History shows this:

But the Task Log shows:

I’d like the function to return “Error” even though it completed successfully. I don’t want to raise an exception because some of the processing still needs to happen. Is this possible? Or would it require some kind of EpiMagic behind the scenes?

You might be able to use a transaction scope to update the Ice.SysTask table–TaskStatus field.

1 Like

I ended up having to do a Data Directive. It was simple, I was just hoping to be able to do so from the function. I think the process writes the COMPLETE/ERROR after everything else is done. Hooking into it via the DD did the trick.

2 Likes