SAP Knowledge Base Article - Public

3722966 - Custom Double field error in PPX but not in PP3 (Maximum Length for the field is..)

Symptom

  • An error occurs in the Personal Information portlet when entering a value in a field.
  • The error message displayed is: "Maximum length for the field is x characters, and the maximum number of fraction digits is x" .
  • You can move around the BCUI max characters and max fraction digits but the behavior is the same.
  • The error occurs only when the Latest People Profile is activated.

Environment

SAP SuccessFactors Employee Central

Reproducing the Issue

  1. Go to the Personal Information section and edit one of the existing layers.
  2. Change the field value to 1.
  3. Receive Error "Maximum length for the field is 2 characters, and the maximum number of fraction digits is 1. "
  4. Change to PP3 and you do not receive the same error. 

Cause

For the DOUBLE field when a value such as "1" is selected, it fails validation because the backend receives the value as "1.0." The decimal separator (".") is counted when calculating the total length of the double value. As a result, "1.0" is considered to have a length of 3, which exceeds the configured max length of 2 in BCUI, causing the validation to fail.

Resolution

  1. Update the max length of the field in Manage Business Configuration to resolve the issue temporarily.
  2. Engineering has provided a code fix to treat values of the format "x.0" as having an effective length of 1. The fix is under implementation, and updates will be provided once the fix is available.

See Also

Keywords

personal information portlet, number of children field, field length error, validation error, double field, decimal separator, full profile activation, manage business configuration, BCUI, field length configuration, error message, PPX. latest people profile, PP3, full profile, edit, history, insert, personal, info, Field, max, character, length, error, decimal, ECT-268268 , KBA , LOD-SF-EC , Employee Central , Known Error

Product

SAP SuccessFactors Employee Central 2505