SAP Knowledge Base Article - Public

2606175 - OData API when called using "$count" function returns "-1" in the response

Symptom

  • You are using Successfactors OData entity
  • $count functionality is applied to check the record count

Environment

Successfactors

Reproducing the Issue

<API_URL>/odata/v2/EmpTimeAccountBalance/$count

Response will contain "-1"

Cause

This is because, the respective odata entity does not have count function implemented

Resolution

Please file an enhancement request with the business use case to the product management team.

Reference KBA: 2281290 for enhancement request

See Also

2359742 -- How to use $count / How to verify the output records in an Odata API call?

Keywords

  • Count function not returning results
  • Count function returns -1
  • OData API response returns -1
, KBA , LOD-SF-INT-ODATA , OData API Framework , LOD-SF-INT , Integrations , Problem

Product

SAP SuccessFactors HCM Core all versions