Hi No, class 1 should catch the deadlock.
Are u sure that the deadlock is being thrown? One very important thing to remember is that catch statements will be executed ONLY FOR THE HIGHEST TRY BLOCK. This means that if you have a try block that is calling class 1 then the catch statements in the class 1 will be completely ignored. Regards Harry -----Original Message----- From: Axapta-Knowledge-Village@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of ontariodiver Sent: 03 January 2006 22:16 To: Axapta-Knowledge-Village@yahoogroups.com Subject: [Axapta-Knowledge-Village] Deadlocks and try/retry Hi all, I have a situation where it seems that deadlocks are not picked up by catch. Any ideas? It looks similar to this class 1: Try { method in class 2 } catch (exception::deadlock) { retry } class 2 method: { step 1:insert sales lines into invoice step 2:update custom status field in new table } What is happening is Oracle reports a deadlock and processing stops at step 1. I would have thought class 1 would catch the deadlock and do a retry, but it doesn't. Do i have to do the try/retry in class 2 as well? I am using Axapta 3.0 SP3. Sharing the knowledge on Axapta. Visit www.frappr.com/axapta for axapta friends. Yahoo! Groups Links Sharing the knowledge on Axapta. Visit www.frappr.com/axapta for axapta friends. Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/Axapta-Knowledge-Village/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/