We have Dynamics CRM 2016 on-premise and SharePoint 2013 on-premise with SharePoint integration enabled for a custom CRM entity. For the most part, the integration works correctly. Folders are created on-demand for each entity and documents can be added and viewed.
The issue we're encountering is that when some documents are uploaded into SharePoint, selecting the documents in Dynamics CRM opens the wrong document from SharePoint (another document in the same folder). This seems to occur randomly, it doesn't correlate with documents that are checked-out or any particular sequence. Accessing the same folder from SharePoint, the documents open correctly.
Inspecting the HTML markup of the page representing the Document Associated Grid, I can see that the document link is stored as an attribute on the table row (<tr>) element. For the document that displays the wrong document, the document link is actually for the wrong document - the generated markup appears to be wrong.
Has anyone encountered this type of issue before?