Notifications
Announcements
No record found.
Hi Everyone,
I have created a AIF- document service in AX 2009. I am doing a picking list registration update in AX. I have my code in try and catch in AX.
MY ISSUE:
when I test the service in AX through a test job, I can able to catch the exception in the catch code. But, when I consume the service through C#, I can't able to catch the exception. In other words, the code is not coming to the catch part.
I don't know why I can't catch exception when I am consuming the service.
Any suggestions would be helpful..
*This post is locked for comments
Hi
At the link below I guess you can find your answer.
stackoverflow.com/.../cant-catch-exception-inside-aif-service
Practically, when you throw an error inside AIF sevice it is going to abort the outer transaction and go to the AIF catch clause, skipping all others.
Thanks for the Reply Denis. It is helpful..!
Great.
If helped you, please tick the reply as verified.
Thanks
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 4 Most Valuable Professional
Priya_K 4
MyDynamicsNAV 2