SAP Knowledge Base Article - Public

2296086 - OData Background_Accreditations Entity throws the error "Unsupported feature: root expression should be And Expression in class"

Symptom

You notice the below error message when you run the Background_Accreditations Odata API

Error

"Unsupported feature: root expression should be And Expression in class"

We can see from the Odata API data dictionary that the entity is present.

 data d.png

Environment

Successfactors BizX System

Reproducing the Issue

Run the below odata api request

Request

https://apiX.successfactors.com/odata/v2/Background_Accreditations

Response

{
"error" : {
"code" : "COE_UNSUPPORTED_FEATURE", "message" : {
"lang" : "en-US", "value" : "Unsupported feature: root expression should be And Expression in class

com.successfactors.codomain.edu.background.query.COCustomBackgroundUserIdFilterGenerator:username@companyID:ODContext@123456:Background_Accreditations and now it is null"
}
}
}

Cause

It is the designed behaviour for Background_Accreditations API. It only allows to be queried like

/odata/v2/Background_Accreditations?$filter=userId eq 'xxxx' or odata/v2/Background_Accreditations?$top=50

 

Resolution

Below is the Odata API response when the Query is correctly passed. 

For example: 

https://apiX.successfactors.com/odata/v2/Background_Accreditations?$top=50

odata response.jpg

See Also

http://help.sap.com/saphelpiis_cloud4hr/EN/SuccessFactors_HCM_Suite_OData_API_Handbook_en.pdf

http://help.sap.com/saphelpiis_cloud4hr/EN/SuccessFactors_HCM_Suite_OData_API_Reference_en.pdf

Keywords

KBA , LOD-SF-INT-API , API & Adhoc API Framework , LOD-SF-INT , Integrations , Problem

Product

SAP SuccessFactors HCM Core 1511 ; SAP SuccessFactors HCM Core 1602 ; SAP SuccessFactors HCM Core 1605 ; SuccessFactors HCM Core 1207 ; SuccessFactors HCM Core 1210 ; SuccessFactors HCM Core 1302 ; SuccessFactors HCM Core 1305 ; SuccessFactors HCM Core 1308 ; SuccessFactors HCM Core 1311 ; SuccessFactors HCM Core 1402 ; SuccessFactors HCM Core 1405 ; SuccessFactors HCM Core 1408 ; SuccessFactors HCM Core 1508