Symptom
You are running OData API query and you received the following error message:
- [EXCEPTION] ODATA Execution Error Code: 500-ServerErrorException Internal Server Error-java.net.URISyntaxException: Illegal character in query at index xx:
Environment
SuccessFactors - OData API
Reproducing the Issue
Run your OData API query and observe this response error
Cause
illegal character in the OData URL
Resolution
Copy your query in some text editor like Notepad++
In the example below, we can see one illegal character (>) in the OData query at the position/Col equals 67.
In this case, the error message will be = ODATA Execution Error Code: 500-ServerErrorException Internal Server Error - Illegal character in query at index 67
Please remove this incorrect char and the query will run successfully.
More details about how you can build OData queries in SF, please use refer to our OData Developer handbook.
See Also
SAP SuccessFactors HCM Suite OData API: Developer Guide:
Keywords
-
ODATA Execution Error Code: 500-ServerErrorException Internal Server Error - Illegal character in query at index xx
- SuccessFactors OData API error in query