SAP Knowledge Base Article - Public

2975217 - "argument type mismatch with the index 0" when creating Offer Approval via OData API - Recruiting Management

Symptom

When trying to create an offer approval via OData API, it shows an error [COE0019]Unexpected error occurred: argument type mismatch with the index 0.

Environment

SAP SuccessFactors Recruiting Management

Reproducing the Issue

  1. Create an offer approval via OData API
  2. Error received:

{
        "error": {
                "code": "COE_GENERAL_SERVER_FAILURE",
                "message": {
                       "lang": "en-US",
                       "value": "[COE0019]Unexpected error occurred: argument type mismatch with the index 0"
                  }
          }
}

Cause

Field type mismatch between the offer detail field and the source job requisition/job application field.

Resolution

Please review the field type of derived offer detail fields. The field type should match with the source job requisition/job application field.

To check from provisioning (Implementation Partner/Support only):

  1. Provisioning > Import/Update/Export Offer Detail Template
  2. Click "Validate against other Templates" and check the result

See Also

KB article 2622432 - How to create an Offer approval via OData API? - Recruiting Management

Keywords

OData API, JobOffer, offer detail, offer approval, error, unable to create offer approval, [COE0019]Unexpected error occurred: argument type mismatch with the index 0 , KBA , LOD-SF-RCM-API , Webservices & APIs , LOD-SF-RCM-CAO , Candidate Offers, Offer Letters , Problem

Product

SAP SuccessFactors Recruiting all versions