Symptom
You receive an error "Duplicate node_id detected in update or delete operation" while updating contacts via ManageContactIn webservice
Environment
SAP Cloud For Customer
Reproducing the Issue
When you execute the Payload for updating Contacts via Webservice ManageCustomerIn, you receive the above error in the Response. Also, the same are seen in Web Service Message Monitoring
1) Go to Application and User Management Work center
2) Go to Input and Output Management View
3) Select Web Service Message Monitoring
4) Select “All” from the drop-down
Service interface: ManageContactIn
Status – Application Error
Direction – Incoming
Error Text: Duplicate node_id detected in update or delete operation
Cause
List Complete Transmission Indicator has been set to "True" and Action code is "4" and there was no value maintained under Workplace Telephone segment. This is is trying to Delete and Update the field Mobile which shares the same Business Object node as Workplace Telephone (Business Object Node : ContactPersonWorkplaceAddress.TELEPHONE)
Resolution
1)If using with Tag WorkplaceTelListCompleteTransmissionIndicator="true"> it needs to be present at at "<IsContactPersonForRelationship>"
Use below Code :
-<WorkplaceTelephone>
<ObjectNodeSenderTechnicalID>Token 169 </ObjectNodeSenderTechnicalID>
<FormattedNumberDescription>String 170 </FormattedNumberDescription>
<MobilePhoneNumberIndicator>true </MobilePhoneNumberIndicator>
</WorkplaceTelephone>
-<WorkplaceTelephone>
<ObjectNodeSenderTechnicalID>Token 171 </ObjectNodeSenderTechnicalID>
<FormattedNumberDescription>String 172 </FormattedNumberDescription>
<MobilePhoneNumberIndicator>true </MobilePhoneNumberIndicator>
</WorkplaceTelephone>
OR
2) When default numbers need to be updated, that is, when not using ListCompleteTransmissionIndicator as "True", give below :
<Phone>String 136</Phone>
<Mobile>String 137</Mobile>
Note:
i) "WorkplaceTelListCompleteTransmissionIndicator="true"" at " <IsContactPersonForRelationship>" is present
ii) <workplaceTelephoneListCompleteTransmissionIndicator>true </workplaceTelephoneListCompleteTransmissionIndicator>
within "<IsContactPersonForRelationship>" is not part of the payload
Keywords
ManageContactIn , workplaceTelephoneListCompleteTransmissionIndicator, Contacts, Duplicate node_id, workplaceTelephoneList , KBA , LOD-CRM-ACC , Account , Problem