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 :
Microsoft Dynamics AX (Archived)

The document hash does not match the hash in the XML

(0) ShareShare
ReportReport
Posted on by

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

I have the same question (0)
  • Martin Dráb Profile Picture
    237,880 Most Valuable Professional on at

    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.

  • Mea_ Profile Picture
    60,284 on at

    Another option, apart suggested by  Martin, is to send RecId and RecVersion instead of hash.

  • Community Member Profile Picture
    on at

    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... ...

  • Community Member Profile Picture
    on at

    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?

  • Mea_ Profile Picture
    60,284 on at

    did you enable them in data policy ?

  • Community Member Profile Picture
    on at

    Do you mean I should enable it in my query? That's true, in query datasource I cannot find these fields.

  • Community Member Profile Picture
    on at

    You can debug the code in AxdBaseUpdate.deserializeDocument to find how hash is being checked.

    BR,

    keimak

  • Douglas Noel Profile Picture
    3,905 on at

    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.

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 > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans