Personalized Community is here!
Quickly customize your community to find the content you seek.
Choose your path Increase your proficiency with the Dynamics 365 applications that you already use and learn more about the apps that interest you. Up your game with a learning path tailored to today's Dynamics 365 masterminds and designed to prepare you for industry-recognized Microsoft certifications.
Visit Microsoft Learn
2020 Release Wave 2Discover the latest updates and new features to Dynamics 365 planned through March 2021.
Release overview guides and videos Release Plan | Preview 2020 Release Wave 2 TimelineWatch the 2020 Release Wave 1 virtual launch event
Ace your Dynamics 365 deployment with packaged services delivered by expert consultants. | Explore service offerings
Connect with the ISV success team on the latest roadmap, developer tool for AppSource certification, and ISV community engagements | ISV self-service portal
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Program | Finance TechTalks | Customer Engagement TechTalks | Upcoming TechTalks
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.
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.
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.
Hi Abdelrhman Hiba,
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.
Thank you all. I solved my problem after following the following link:
Business Applications communities