I have a requirement to get XML as a string and loop through multiple records in XML and process something.
C# will pass XML as a parameter through AX AIF service.
The issue is if I am lopping with 10 records and if error comes in 4 th record it stops there. I tried with try catch ,
but catch block is not getting executed.
I actually want to process all 10 records and display error in error log.
Example: Out of 10 records, 7 records will be successful and 3 records might be failed and these should be shown in error log.
Any idea how to proceed.
Thanks Martin, It is AX 2009. I only created very small service method named "Register". I have not kept any TTSBEGIN or TTSCommit in my code. It is showing TTSLevel as 2. Please note i executed this new service from C#.net. If some thing fails in try while looping it is not coming to Catch. (I also tried keeping ttsBegin and tssCommit and it showed level 3.) I used appl.ttsLevel() command to find the level of TTS. Could you please suggest something.
Your statement "Look at the TTS level in debugger - if it's not zero, you won't be able to catch exceptions.".
What shall i do to rectify this issue.