SAP Knowledge Base Article - Public

2324760 - SuccessFactors: OData Query Operation with character '&' returns error "HTTP response code: 500"

Symptom

When you run an OData Query for any SuccessFactors Entity with the character '&' in the request, the following error is observed

Exception during http Transaction: Server returned HTTP response code: 500 for URL...

Environment

SuccessFactors BizX

Reproducing the Issue

Run the following OData Query: 

https://api012.successfactors.eu/odata/v2/FODepartment?$format=json&$select=name_defaultValue,parent,externalCode

 

Error Returned:

Exception during http Transaction: Server returned HTTP response code: 500 for URL: https://api012.successfactors.eu/odata/v2/FODepartment?$format=json&$select=name_defaultValue,parent,externalCode

Cause

'&' is a reserved character in URL.

Resolution

Replace the character '&' to '%26' in the URL request.

See Also

Referencehttps://tools.ietf.org/html/rfc3986

Keywords

KBA , LOD-SF-INT , Integrations , Problem

Product

SAP SuccessFactors HXM Core all versions