Skip Navigation
Expand
  • Advanced SearchOpens new dialog
    Enter plus (+) or minus (-) signs in search terms to make a word required or excluded
    Search Tips
    Filter by product
    Filter by category
ROQL keywords break REST API custom object requests
Answer ID 11833   |   Last Review Date 02/26/2021

Why do I get an '"Bad Request: near \"Report\": syntax error"' in my response to GET a custom object via REST API?

Environment:

Oracle B2C Service REST API Custom Objects

Resolution:

There are a few ROQL reserved words used for identifying which database the query should be run against.  These are USE, DEFAULT, OPERATIONAL, and REPORT.  They are not necessarily MySQL keywords, but specifically parsed and used as directives for ROQL.  This response error is expected and these words should be considered part of the "reserved words" list.