SAP Knowledge Base Article - Public

3589633 - Business Partner Replication Fails with Error "Second business partner in relationship is not valid"

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

  1. Go to Message Monitoring
  2. Open the failed message id
  3. 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

Product

SAP Sales Cloud and SAP Service Cloud Version 2 1.0