Symptom
Error message: "Property 'BPCountry' is invalid" encountered during the creation of a business partner via the OData API.
Environment
S/4HANA Cloud Public Edition
Cause
The error "Property 'BPCountry' is invalid" is caused by incorrect data in the payload.
Resolution
Refer to the API documentation, the correct API should be https://api.sap.com/api/API_BUSINESS_PARTNER/path/post_A_BusinessPartner, the example payload is as below:
"to_BuPaIdentification": {
"results": [
{
"BusinessPartner": "string",
"BPIdentificationType": "string",
"BPIdentificationNumber": "string",
"BPIdnNmbrIssuingInstitute": "string",
"BPIdentificationEntryDate": "/Date(1492041600000)/",
"Country": "str",
"Region": "str",
"ValidityStartDate": "/Date(1492041600000)/",
"ValidityEndDate": "/Date(1492041600000)/",
"AuthorizationGroup": "stri"
}
]
},
Please verify the payload structure and ensure that the 'Country' property is correctly defined as per the example payload provided in the API documentation.
Keywords
odata api, business partner, sap s/4hana cloud public edition, bpcreation, property 'bpcountry' is invalid , KBA , LO-MD-BP-ODT , OData Service for Business Partner , Problem
SAP Knowledge Base Article - Public