Notifications
Announcements
No record found.
Hi all,
It is a common question.
I am sure my record does not change between my find and update, but this error always pop.
Do anyone has idea? Thank you!
*This post is locked for comments
You mentioned "a record" (singular), although the document service (which is likely what you're talking about) can be based on a query consisting of many records. Review the query and if it uses more tables, verify changes in all of them.
If there no changes, the other likely explanation is that you're sending a wrong (such as none) hash to the update operation.
Also note that you can debug AIF code to see what exactly is going on there.
Another option, apart suggested by Martin, is to send RecId and RecVersion instead of hash.
Thanks Martin,
I tried to modify my query, and when I changed it from multi-datasource to single datasource, the error disappeared.
And I also did a test:
I get the records (two datasource) from and then without any other action, update them back to AX immediately. The error is still there. So I have to debug in the server side in AX... ...
Thanks ievgen, in my case, the record I user find() method get from AX will not include RecId and RecVersion. Is there any setting shall I do before I get these hidden property?
did you enable them in data policy ?
Do you mean I should enable it in my query? That's true, in query datasource I cannot find these fields.
You can debug the code in AxdBaseUpdate.deserializeDocument to find how hash is being checked.
BR,
keimak
Hi,
I'm not sure if the usage of Recid/RecVersion for all records - INSTEAD of the documenthash - will really work.
please take a look at: technet.microsoft.com/.../cc639058.aspx
or the knowledgebase entry 3641469 which is mentioned in the above description as a comment.
According to this entry, it will not work. Has anyone tried this?
regards
Douglas
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 Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 4 Most Valuable Professional
Priya_K 4
MyDynamicsNAV 2