Symptom
You are calling SuccessFactors using SFAPI or Compound Employee (CE) API, but you are facing an error such as the below:
"Exception=[SFAPI Domain Error!] Error Code=[INVALID_FIELD_NAME] Error Message=[Field XXXXX is not defined]"
Environment
SAP SuccessFactors HXM Suite
Reproducing the Issue
- Run the process/API call;
- Observe the error mentioned in the API logs;
Cause
In SF, go to SFAPI Data Dictionary and search for the entity being called and the field mentioned in the error message;
If you cannot find the entity or field name, this is the root cause of the issue.
NOTE: If you don't know which entity is involved, check the API request header in client side (e.g. Postman, Boomi, CPI, third-party system) or in SF API payloads (under SFAPI Audit Logs).
Resolution
There are two possible solutions:
- Review the API request to make it according the available entities and fields from SFAPI Data Dictionary;
- Under Manage Business Configuration, create (if it doesn't exist) and set the field mentioned in the error message to Enabled=Yes;
See Also
Keywords
not, available, invalid, field, INVALID_FIELD_NAME, not defined, SFAPI, Dictionary, Domain Error, Enabled, Manage Business Configuration , KBA , LOD-SF-INT-CE , Compound Employee API , LOD-SF-INT-API , API & Adhoc API Framework , LOD-SF-INT-API-DEPR , SFAPI Deprecation Queries , Problem