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
Hi,
Have a look at the answers on this similar question: community.dynamics.com/.../134917
Hi!!
You have open twice the object, or other user is use this object too. Close all AOT and try again.
\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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Tocauer 4
AlissonGodoy 2
Community Member 2