| Status | Done | Related work item | MPP-2065 |
| Description | The 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 '25 | Impacted capabilities | N/A |
| Steps to reproduce | - Create a Document Group (
mvn__CM_Document_Group__c) record. - Create a Document (
mvn__CM_Document__c) record. - Create a Document Role (
mvn__CM_Document_Role__c) record. - Set the Document Group (
mvn__CM_Document_Group__c) field to look up to the Document Group record created in step 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. 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. - Create another Document Role record with the same Document Group record in step 1 (i.e., repeat step 2).
- 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:
- 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. - 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" | | | |
| Workaround | There is no known workaround. | | |
| Fix version | Spring '25 Hotfix (2.4.0.5) | Resolution notes | |