Symptom
You are replicating Business Partner from SAP SAP ERP , customerPartnerFunctionERPReplicationMessageIn fails with below error
"{\"error\":{\"message\":\"Second business partner in relationship is not valid.\",\"code\":\"sap.crm.md.service.businessPartnerRelationshipService.businessPartnerRelationshipMessage.secondBusinessPartnerInvalid\"}}"
Environment
SAP Sales & Service Cloud v2
SAP Sales & Service Cloud v2 Integration SAP ERP
Reproducing the Issue
- Go to Message Monitoring
- Open the failed message id
- Navigate to the message request and check the error log
Cause
Value Mapping under "partner number type" is not maintained.
Resolution
To fix this issue and prevent any similar issues like this, You need to maintain value mapping under "partner number type" for all Customer / Contact / Employee type partner functions with relevant external code.
Keywords
"Second business partner in relationship is not valid" ; "secondBusinessPartnerInvalid" , KBA , CEC-CRM-INT , Integration for SAP Sales/Service Cloud , Problem