SAP Knowledge Base Article - Public

2294037 - Enlarge maxlength for timezone attribute in User Object "Query metadata "


An Error message is display while querying an Metadata.

The image/example below came from a demo instance, any resemblance to a live customer data is purely coincidental. 


  • SAP SuccessFactors HXM Suite
  • SAP SuccessFactors Employee Central - Foundation Object

Reproducing the Issue


  1. Enlarge maxlength for timezone attribute in User Object
  2. By Default maxlength is 16  but could be enlarged to 64 "Can Not exceed 64"  


  1. Using apache olingo library
  2. When calling :$metadata 

It gives following Error Message:

org.apache.olingo.odata2.api.edm.EdmSimpleTypeException: The metadata constraints '[Nullable=true, MaxLength=16]' do not match the literal 'America/Montevideo'.


  • describeSFObjectsResponse_user.xml
  • The response contains a maxlength of 16 chars. 

<Property Name="timeZone" Type="Edm.String" Nullable="true" sf:Required="true" sap:required="true" sf:Insertable="true" sap:creatable="true" sf:Updatable="true" sap:updatable="true" sf:Upsertable="true" sap:upsertable="true" sf:Selectable="true" sap:visible="true" sf:Sortable="false" sap:sortable="false" sf:Filterable="false" sap:filterable="false" MaxLength="16" sap:field-control="userPermissionsNav/timeZone" sap:label="Time Zone" />


 Step 1Succession Data Model or SDM  Configuration Change : 3066117 - How to export Data Models?

  1. Download Succession Data Model 
  2. Change max-length to 64
  3. Import SDM



  <standard-element id="timeZone" max-length="16" required="true" matrix-filter="false">

    <label>Time Zone </label>




  <standard-element id="timeZone" max-length="64" required="true" matrix-filter="false">

    <label>Time Zone </label>


Step 2: Refresh: Odata API Metadata Refresh : 2589774 - MDF Object Definition to DB Sync or Refresh Metadata Cache

  1. Go to your Instance then Admin Center
  2. Tool and Type: Odata API Metadata Refresh An Export
  3. Click on: Refresh 

Step 3:Test

Query Metadata

Example: When calling :$metadata


See Also

  • 3066117 - How to export Data Models?
  • 2589774 - MDF Object Definition to DB Sync or Refresh Metadata Cache
  • 2080587 - How to Sync Correct Timezone to Public Profile in Employee Central


Odata API Metadata Refresh timeZone, API, Metadata, maxlength, Query metadata , KBA , LOD-SF-EC-BCI , Manage Business Configuration (BCUI) & Data Models (XML) , LOD-SF-SCM-DAT , Data Model , LOD-SF-INT-API-DEPR , SFAPI Deprecation Queries , Problem


SAP SuccessFactors HCM Core 1511