SAP Knowledge Base Article - Public

2656754 - Error "Illegal JSON boolean-value format" while upserting boolean property field via OData

Symptom

  •  The upsertable field does not get updated after an upsert done via ODATA
  •  Illegal JSON boolean-value format error while upserting

Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental.

Environment

SAP SuccessFactors

Reproducing the Issue

  1. Go to Admin Center
  2. Search for an employee that has one field to update, we will update the field OkToRehire from "no" to "yes", this property OkToRehire is part of entity EmpEmploymentTermination.
  3. Build the Query to update the field.
    EmpDetails.png

    query.png

Cause

The value we are providing is "true", this a String value.

Resolution

We need to provide just true without quotes, a boolean value that satisfy the field according to the handbook.

queryright.png

Keywords

Error Upsert boolean, error boolean, error query boolean, query boolean, Illegal JSON boolean-value format. , KBA , LOD-SF-INT-ODATA , OData API Framework , LOD-SF-INT , Integrations , Problem

Product

SAP SuccessFactors HCM Core all versions