Posted: Mon Mar 20, 2006 11:54 am Post subject: eSQL try catch??
Chevalier
Joined: 17 Jan 2006 Posts: 475
Hi All
I am unbatching an xml file and doing some DB updates all in the same database node.
My question is if one of the unbatched files has an error in it and throws an exception, is there a way to catch it and continue with the other iterations in the loop?
Code:
FOR cursor AS Root.MRM.Receipts.Receipt[] DO
SET Environment.Temp.MaxSeq[] = (SELECT T.A7JC AS Seq FROM Database.RTA.TINR AS T
WHERE T.ANB = FIELDVALUE(cursor.OrderID));
END FOR;
If one of the Receipts[] has no OrderID the entire message in thrown into ERR queue.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum