SAP Knowledge Base Article - Public

3589647 - Sales Order Replication to SAP Sales & Service Cloud V2 Fails With "Request payload is invalid"

Symptom

You are replicating Sales order (or sales quote) from SAP S4HANA or SAP ERP, replication fails in SAP Sales & Service Cloud V2 with error.

 "message": "{\"error\":{\"code\":\"salesOrder.10201\",\"message\":\"Request payload is invalid\",\"details\":[{\"code\":\"salesOrder.11403\",\"message\":\"Invalid party IDs :  [ABCDXYZ]\"}]}}"

Environment

SAP Sales & Service Cloud v2 
SAP Sales & Service Cloud v2 Integration with SAP S4HANA
SAP Sales & Service Cloud v2 Integration with SAP ERP

Reproducing the Issue

  1. Send the sales quote or sales order from SAP S4HANA or SAP ERP
  2. Open the message monitor in V2
  3. Open the failed message, on the failed message request - click on error log 

Cause

There can be multiple reasons for "Request payload is invalid" and "Invalid party ID"

  1. ERP/ S4HANA send below content

    "parties": [
            {
                "role": "AG",
                "isMain": true,
                "partnerDisplayId": "123456"
            },

    below is the content from transformed payload

    "parties": [
            {
                "partyId": "ABCDXYZ",
                "role": "2",
                "isMain": true
            },

    Role 2(V2 party role code) is Company where as AG(S4/ERP party role code) is Account but the party ABCDXYZ is not a COMPANY but an ACCOUNT

Resolution

  1. You need to use valid company if you want to use the said party in the sales document or you need to enhance your value mapping to an Account type role code

Keywords

"Request payload is invalid" ; "Invalid party IDs" , KBA , CEC-CRM-INT , Integration for SAP Sales/Service Cloud , Problem

Product

SAP Sales Cloud and SAP Service Cloud Version 2 1.0