SAP Knowledge Base Article - Public

2461670 - Error in API query execution - Entity not present

Symptom

While trying to execute an API query, error is encountered as - null object loaded from local variable 'struct'

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

Reproducing the Issue

When executing an API query with correct URL and authentication details, still the below error keeps occurring.

1.png

Cause

This is because the entity used in the query is not present in the API Data Dictionary.

Resolution

Go to Admin Center > OData/SFAPI API Metadata Refresh and Export and perform and Metadata Refresh.

2.png

This will  restore the missing API entities, and the above error will be resolved.

Note: The entities may go mising if any changes in the data models are performed or the XML templates are changed and uploaded in the Provisioning. Therefore it is recommended that whenver a template change is performed please make sure that the API Metadata refresh is performed from the Admin Center.

Keywords

null, object, local, variable, metadata, API, entity, missing , KBA , LOD-SF-RCM-API , Webservices & APIs , Problem

Product

SAP SuccessFactors Recruiting all versions