web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Error: Operand types are not compatible

(0) ShareShare
ReportReport
Posted on by

5342.pastedimage1632488080746v1.pngIn Ax 2012

I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    301,231 Super User 2025 Season 2 on at

    Moved to the Dynamics AX forum.

  • André Arnaud de Calavon Profile Picture
    301,231 Super User 2025 Season 2 on at

    Hi Mobeen,

    Can you tell what object is behind the variable 'hcmWorkerImport_HcmWorker'? Is it the same object as returned by the 'addNew()' method?

  • Community Member Profile Picture
    on at

    Well As I am new to this hcmWorkerImport_HcmWorker is class as you can see 
    Screenshot-2021_2D00_09_2D00_27-133651.png

  • Suggested answer
    ergun sahin Profile Picture
    8,826 Moderator on at

    There is no problem in use. If any object has custom code, try forward compiling (addNew return AfStronglyTypedDataContainer and class extends AfStronglyTypedDataContainer)

    pastedimage1632736138819v1.png

  • Community Member Profile Picture
    on at

    didn't get it

  • Suggested answer
    ergun sahin Profile Picture
    8,826 Moderator on at

    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.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Abhilash Warrier Profile Picture

Abhilash Warrier 669 Super User 2025 Season 2

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 449 Super User 2025 Season 2

#3
Martin Dráb Profile Picture

Martin Dráb 384 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans