SAP Knowledge Base Article - Public

3381535 - ERROR: Index 0 out of bounds for length 0 in Odata query

Symptom

You are running an Odata query and it is failing with the error below:

ERROR: Index 0 out of bounds for length 0 in Odata query

Environment

  • SAP SuccessFactors
  • Odata APIs

Cause

Wrong query syntax

Resolution

This error may have more than one root cause but one of the causes identified for this error message is an incorrect syntax of the query.

Try to review your query looking for:

  • missing or duplicate commas
  • missing or duplicate special characters such as $ or &
  • parameters not ending as expected for example
    • userId=,
    • position=,

If you have reviewed the syntax of the query and everything looks good, then reach out to product support so we can evaluate.

Keywords

error in odata query, Index out of bounds , KBA , LOD-SF-INT-ODATA , OData API Framework , Problem

Product

SAP SuccessFactors HCM Suite all versions