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
- Send the sales quote or sales order from SAP S4HANA or SAP ERP
- Open the message monitor in V2
- 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"
-
ERP/ S4HANA send below content
"parties": [
{
"role": "AG",
"isMain": true,
"partnerDisplayId": "123456"
},below is the content from transformed payload
"parties": [
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
{
"partyId": "ABCDXYZ",
"role": "2",
"isMain": true
},
Resolution
- 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