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

Announcements

No record found.

News and Announcements icon
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
    303,988 Super User 2026 Season 1 on at

    Moved to the Dynamics AX forum.

  • André Arnaud de Calavon Profile Picture
    303,988 Super User 2026 Season 1 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

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

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 653

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 493 Super User 2026 Season 1

#3
Syed Haris Shah Profile Picture

Syed Haris Shah 317 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans