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.
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
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