Hi all,
I've created a batch job in Dynamics AX 2012 that perform several packing slips at once, I want to keep the process running even if one of the orders fails, however when an order fails (for example, if the warehouse is not set in the line), then it never hits the catch sentence to keep running the process, I've tried something like this:
try { salesFormletter.run(); } catch(Exception::Error) { // Here I would add logic to keep the process running. }
But it does not work, the class InventUpd_Physical throws an error in the method updatePhysicalIssue:
if (! movement.inventTable().checkRefInventTrans(inventTrans) || ! movement.checkDimPhysical(inventTrans.Qty,inventDim,true)) { throw error("@SYS18447"); }
I'd like to catch that error and prevent it to kill the whole process, but it never hits my catch logic. Am I missing something? Thanks!
*This post is locked for comments