SAP Knowledge Base Article - Public

2217039 - Error String length exceed the limit when trying to update a user's timezone - SuccessFactors OData API

Symptom

You are performing an OData call in User entity to update the employee's timezone information and one of the below errors appears:

Invalid request message! Error: Invalid SFObject! Error: String length exceed the limit(actual=17, limit=16) of field timezone at [SFObject #1,field #1]!

COE_PROPERTY_EXCEED_MAX_LENGTH</code><message lang="en-US">Maximum length limit exceeded for field timeZone: actual length: 17; maximum length: 16.</message></error>

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 HXM Suite
    • OData
    • EC Import/UI

Cause

This error occurs because the value provided exceeded the maxlength allowed for the "timezone" field.

From the Request, you can see that the field "timezone" has 17 characters. The error message indicates 16 characters is the limit.

This behavior is the same via API or via Import in EC.

Resolution

You can fix this issue by increasing the maxlength of the field timezone from 16 to 64.

You can make this change in two different ways:

  1. Manually through your instance's data model
  2. Through BCUI, if your instance has it enabled

Making the change through BCUI

  1. Go to Admin Center
  2. Search for "Manage Business Configuration" and access it
  3. In the left side menu, go to Employee Profile > Standard > timeZone
  4. Change the value of the "Maximum Lenght" field to 64 and save

    timeZone - 1.jpg

Making the change through your instance's data model

Note that, as a customer, you do not have access to Provisioning and, hence, you will not be able to make changes in the data model. To complete tasks in Provisioning, contact your Implementation Partner. If you are no longer working with an Implementation Partner, contact SAP Cloud Support. The KBA below can be helpful:

2814413 - Requesting changes on Data Model - SuccessFactors

If you have access to the instance's provisioning:

  1. Export the data model file
  2. Locate the timezone field
  3. Change the "max-length" property to 64

    increased&#x20;timezone&#x20;length.jpg
  4. Import the new changed data model file into the provisioning.

See Also

2801085 - Guide to Manage Business Configuration (BCUI) Enabling - SAP SuccessFactors

Keywords

Maxlength exceed, String length exceed the limit ,Timezone field error, user entity, successfactors, success factors, api, sfapi, soap, call, upsert, insert, update, Odata, odata, OData, import, COE_PROPERTY_EXCEED_MAX_LENGTH , KBA , LOD-SF-INT-API , API & Adhoc API Framework , LOD-SF-EC , Employee Central , LOD-SF-EP , People Profile (Employee Profile / PP3) , Problem

Product

SAP SuccessFactors HCM suite all versions