Skip to main content

KI-140

Document collaborator sync service fails for document groups

Created date06/04/2025Updated date06/11/2025
StatusDoneRelated work itemMPP-2065
DescriptionThe sync service that ensures that all related Document (mvn__CM_Document__c) records, including Document Collaborator (mvn__PP_Document_Author__c), Document Group (mvn__CM_Document_Group__c), and Document Role (mvn__CM_Document_Role__c) records, are in sync was updated in Spring '25. However, it now fails when there is a pending update and a document group has multiple document roles. This is because the sync service currently only checks for updates on users and does not check for updates on document groups. As a result, the sync service creates duplicate new document collaborators for document groups when they have more than one document role.
Affects version(s)Spring '25Impacted capabilitiesN/A
Steps to reproduce
  1. Create a Document Group (mvn__CM_Document_Group__c) record.
  2. Create a Document (mvn__CM_Document__c) record.
  3. Create a Document Role (mvn__CM_Document_Role__c) record.
    1. Set the Document Group (mvn__CM_Document_Group__c) field to look up to the Document Group record created in step 1.
  4. On the Document record, ensure that the Pending Sharing Update (mvn__CM_Pending_Sharing_Update__c) field is checked (i.e., equals true). Modify as needed. This will trigger the sync service so that a batch job will create a Document Collaborator (mvn__PP_Document_Author__c) record for the document group’s role.
  5. Create another Document Role record with the same Document Group record in step 1 (i.e., repeat step 2).
  6. Wait for the batch job to run or execute the sync service manually. The batch class is scheduled to run every 5 minutes by default. To execute the sync service manually:
    1. On the Document record, ensure that the Pending Sharing Update (mvn__CM_Pending_Sharing_Update__c) field is checked (i.e., equals true). Modify as needed.
    2. Run the following code in the Developer Console: mvn.PP_DocumentRoleCollabSyncSchedulable(5).execute(null);
The sync service will fail to process and a Debug Log (mvn__Debug_Log__c) record will be created with the following message:
"PP_DocumentRoleCollaboratorSyncBatchable: Error while processing documents"
WorkaroundThere is no known workaround.
Fix versionSpring '25 Hotfix (2.4.0.5)Resolution notes