SAP Knowledge Base Article - Public

3401683 - Error "appLocale value is not within RCM Selected Locale with the index 0" when updating a Job Application via OData API - Recruiting Management

Symptom

Getting an error "appLocale value is not within RCM Selected Locale with the index 0" when updating a Job Application via OData API.

Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental.

Environment

SAP SuccessFactors Recruiting Management

Cause

The error is caused by a mismatch between the appLocale and the enabled languages in Manage Recruiting Languages. For example, the appLocale is 'en_US', but 'English US' is not enabled.

The appLocale in the Job Application is determined by the language selected on the career site when updating the application. There is a possibility that the language was previously enabled but is currently disabled.

Using Integration Center to check the appLocale in the Job Application:

  1. Go to Integration Center > My Integrations.
  2. Click Create and select Scheduled Single File Output Integration.
  3. Search for "JobApplication" and select this entity.
  4. Select the field "appLocale" along with other relevant fields such as "jobReqId", "firstName", and "lastName" to find the candidate's data.
    Tips: Using CTRL+F keys to search for the Field ID.
  5. Click Select button.
  6. Go to Filter and Sort tab.
  7. Expand Advanced Filters and select a field as the filter to extract the candidate's job application.
  8. Go to Configure Fields tab to view the result.

Resolution

There are two possible solutions:

  1. Enable the language in Manage Recruiting Languages.
  2. Upsert the appLocale using API to match the language enabled.

Sample API request:

POST .../odata/v2/upsert?$format=json

{
"__metadata":{
"type":"SFOData.JobApplication",
"uri":"JobApplication"
},
"applicationId": "1234",
"appLocale": "en_US"
}

This task can be accomplished using Integration Center. For detailed instructions, please refer to the KBA 3417054 - How to Mass Update Job Application Fields using Integration Center - Recruiting Management.

Keywords

appLocale, RCM, API, Integration, Job Application, Manage Recruiting Languages, Error, Locale, Language Settings , KBA , LOD-SF-RCM-API , Webservices & APIs , LOD-SF-RCM , Recruiting Management , LOD-SF-RCM-APP , Applicants and Job Applications , LOD-SF-RCM-INT , Integration Center & Intelligent Services , Problem

Product

SAP SuccessFactors Recruiting all versions