Announcements
I consumed web services from external application and invoked the classes and method using CLRInterop.
My job is executing fine, when i add the piece of logic inside the class it worked , Today morning when i test the class its not executing , I am not able to catch the exception . Class property run on 'server'.
When you say "it's not executing", what exactly do you mean? Do you mean that your latest changes that you added don't seem to be there?
Remember that if you change the x++ code, you need to generate CIL or your service calls will still use the old version of the code. Perhaps this explains your issue.
I restarted the AOS, I can able to see the updated code, Exactly in the executemethod from reference its not working, but in job the same method executes.
Being able to see the updated x++ code doesn't mean that your CIL is up to date.
I'm using AX2009
Ah, ok, then there's no CIL.
Then may I ask you to provide more details about your issue?
1) Please share your code
2) Did it work before your latest code changes?
3) Do you get some error?
4) Please describe in detail what you input in the service call and what doesn't work as expected
5) Please let us know what you mean by "in the executemethod from reference its not working"
Thanks!
That's where I struck , I used AifUtil::getCLRErrorMessage(),but still i cannot able to catch the exception inside class.
But do you know that an exception happens? Could you please go through my five questions above and answer all of them? Thanks!
Change the properties "Run on" to server or add key word "Server" in the beginning.
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.
Jump in, show your community spirit, and win prizes!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Giorgio Bonacorsi 676
Abhilash Warrier 633 Super User 2026 Season 1
André Arnaud de Cal... 624 Super User 2026 Season 1