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:
- Manually through your instance's data model
- Through BCUI, if your instance has it enabled
Making the change through BCUI
- Go to Admin Center
- Search for "Manage Business Configuration" and access it
- In the left side menu, go to Employee Profile > Standard > timeZone
- Change the value of the "Maximum Lenght" field to 64 and save
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:
- Export the data model file
- Locate the timezone field
- Change the "max-length" property to 64
- Import the new changed data model file into the provisioning.
See Also
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 , Problem