SAP Knowledge Base Article - Public

3492269 - Error "Deletion of Business Partner role ABC forbidden"

Symptom

Below error message is displayed on message monitoring

{
    "code": "inbound-data-connector.132",
    "message": "Failed to process the inbound message.",
    "details": [
        {
            "code": "400",
            "message": "{\"error\":{\"message\":\"Deletion of Business Partner role ABC forbidden.\",\"code\":\"sap.crm.md.service.businessPartnerService.businessPartnerMessage.roleDeleted\"}}"
        }
    ]
}

Environment

  • SAP Sales Cloud and SAP Service Cloud Version 2.
  • SAP Sales Cloud and SAP Service Cloud Version 2 integration S4.

Reproducing the Issue

In CNS,

  1. Go to "Settings".
  2. Go to "All Settings" tab.
  3. Under Integration tab, go to "Message Monitoring".
  4. Search for the message ID: XXXXXXXXXXXX.
  5. Check the error message "Deletion of Business Partner role ABC forbidden.".

{
    "code": "inbound-data-connector.132",
    "message": "Failed to process the inbound message.",
    "details": [
        {
            "code": "400",
            "message": "{\"error\":{\"message\":\"Deletion of Business Partner role ABC forbidden.\",\"code\":\"sap.crm.md.service.businessPartnerService.businessPartnerMessage.roleDeleted\"}}"
        }
    ]
}

Cause

  1. Check the field "validityPeriod"
         "validityPeriod": { of the role
                    "validFrom": "2024-07-03",
                    "validTo": "2024-07-03"
                This means there is no currently valid role and this is not supported in CNS. 
  2. You have an existing role for this business partner in V2 and the incoming payload doesnt contain the existing role. Deletion of business partner roles is not allowed once created.

Resolution

  1. your need to change the validity of the role in S/4.
  2. Always do complete transmission to avoid such issues.

Keywords

Deletion of Business Partner role, validityPeriod. , KBA , CEC-CRM-INT , Integration for SAP Sales/Service Cloud , CEC-CRM-DC , Data Connector for SAP Sales/Service Cloud , Known Error

Product

SAP Sales Cloud and SAP Service Cloud Version 2 all versions