Announcements
No record found.
I now have a project that integrates data in and out of AX 2012 using Json Chains.
After following this link:https://community.dynamics.com/ax/f/microsoft-dynamics-ax-forum/296315/serializing-and-deserializing-json-in-ax
I understand a lot of the concepts but when testing this code in ax job and running it the error below appears
Help, pleaseHot Regards.
Hi,
could you share your code, and let us know which line in the code throws this error? This would to narrow down the problem. Thanks!
Hi Abdelrhman Hiba,
I think you are getting this error from this line
custObj = CLRInterop::getObjectForAnyType(custContract);
if so can you check if custContract is Null?
If CustTable has no rows, custContract will be Null, this might be the cause.
Hi all
the error in that line :
and custContract it's not null!
CLRInterop::getObjectForAnyType Converts a value of the X++ anytype data type to a value of the CLRObject data type.
You mentioned that you are testing the code in a job, a job executes on client, X++ CIL is on AOS.
The reason you are getting this error is because you Execute a job that calls CLRInterop::getObjectForAnyType on client.
Web services and batch jobs run in CIL, and the CIL generated from X++ exists only on AOS.
So the CLRInterop::getObjectForAnyType only work in AOS, it will throw the error if you call CLRInterop::getObjectForAnyType directly from the AX client.
Hi All
Thank you all. I solved my problem after following the following link:
msdax.wordpress.com/.../
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.
Congratulations to our 2026 Super Stars!
We are thrilled to have these Champions in our Community!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Giorgio Bonacorsi 681
André Arnaud de Cal... 446 Super User 2026 Season 1
Syed Haris Shah 202 Super User 2026 Season 1