SAP Knowledge Base Article - Public

2658513 - Error message: 'At least one main payment method is required' when upserting data in SFOData.PaymentInformationV3 entity

Symptom

Sending the Upsert request for PaymentInformationV3 Odata Entity and receiving below error message-

  Sample request:

[{"__metadata":{"uri":"PaymentInformationV3(effectiveStartDate=datetime'2017-07-30T00:00:00', worker='123456')"}}]

  Sample response:

{
"d" : [
{
"key" : null, "status" : "ERROR", "editStatus" : null, "message" : "At least one main payment method is required with the index 0", "index" : 0, "httpCode" : 500, "inlineResults" : null
}
]
}

Environment

Successfactors

Resolution

The error message is probably raised by the business rule validating the MainPaymentMethod of PaymentInformation when you upsert PaymentInformationV3 (header) without a PaymentInformationDetailV3 (detail) record with pay type = main payment method.

So can you please check the Business Rules configured for the 'Payment Information' object?

The upsert will be successful if you upsert the header record and the detail record with one OData call. (Refer KBA #2543260 for example)

See Also

KBA #2543260

Keywords

At least one main payment method is required, PaymentInformationV3, PaymentInformationDetailV3, Upsert, OData , KBA , LOD-SF-INT-ODATA , OData API Framework , LOD-SF-INT , Integrations , Problem

Product

SAP SuccessFactors HCM Core 1805