Announcements
No record found.
In Ax 2012
Moved to the Dynamics AX forum.
Hi Mobeen,
Can you tell what object is behind the variable 'hcmWorkerImport_HcmWorker'? Is it the same object as returned by the 'addNew()' method?
Well As I am new to this hcmWorkerImport_HcmWorker is class as you can see
There is no problem in use. If any object has custom code, try forward compiling (addNew return AfStronglyTypedDataContainer and class extends AfStronglyTypedDataContainer)
didn't get it
The error you get is not normal. I tried it in a job, I didn't get any error (it's normal, both sides of the operator have the same type of object).
It looks like customaziton has been made on your system. It is not easy for us to support you in this matter. My guess is they didn't change the return value, but you can get errors like this if the code of one of the related objects in the inherited objects was changed and not compiled forward.
What you need to do is find the relevant object and compile it forward or compile the whole system (with parallel compilation)
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 653
André Arnaud de Cal... 493 Super User 2026 Season 1
Syed Haris Shah 317 Super User 2026 Season 1