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

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Entity query version is not matching with AOT

(0) ShareShare
ReportReport
Posted on by 1,128

I created a new target entity and I get this error when I validate it. Any idea what I should be looking at?

*This post is locked for comments

I have the same question (0)
  • Verified answer
    André Arnaud de Calavon Profile Picture
    299,782 Super User 2025 Season 2 on at
    RE: Entity query version is not matching with AOT

    Hi,

    Have a look at the answers on this similar question: community.dynamics.com/.../134917

  • Suggested answer
    Community Member Profile Picture
    on at
    RE: Entity query version is not matching with AOT

    Hi!!

    You have open twice the object, or other user is use this object too. Close all AOT and try again.

  • Suggested answer
    5400 Profile Picture
    7,162 on at
    RE: Entity query version is not matching with AOT

    \Data Dictionary\Tables\DMFEntity\Methods\insert - The query version is getting set through insert method.

    If it is not getting match with target version you can delete the target entity or you can update the target entity with correct query version.

    If entity is already created and u have lot of manual mapping so i will suggest insteda of deleting the entity u can update query version through Job.

    Job:

    DMFentity entity;

    #AOT

    #define.Version('Version')

     TreeNode        treeNode;

    select  your entity

    if (entity.EntityType == DMFEntityTypes::Entity)

       {

           treeNode = treeNode::findNode(#QueriesPath + #AOTDelimiter + entity .TargetEntity);

           if (treeNode)

           {

               entity .QueryVersion = treeNode.AOTgetProperty(#Version);

           }

         entity.doupdate();

       }

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…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Tocauer Profile Picture

Martin Tocauer 4

#2
AlissonGodoy Profile Picture

AlissonGodoy 2

#2
Community Member Profile Picture

Community Member 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans