Symptom
Error below is received when entering a decimal value for Seniority From/To field on Accrual Lookup by Seniority object:
"Invalid number format 0.x for field Seniority From/To"
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 Employee Central - Time Off
Reproducing the Issue
- Go to Admin Center > Manage Time Off Structures then select Accrual Lookup by Seniority on Create New dropdown.
- Enter any decimal value (i.e. 0.5) for the fields Seniority From and Seniority To and enter value for Accrual Amount.
- Save the changes and the error is received.
Cause
Seniority From and Seniority To fields are number fields on the Accrual Lookup by Seniority object definition. See resolution section of KBA 2438887 for explanation and description for data type for MDF fields.
Resolution
Create a custom Accrual Lookup object and set Decimal as data type for the Seniority From/To fields.
- Go to Admin Center > Configure Object Definitions.
- Click Create New dropdown and then select Object Definition.
- Add custom Seniority From/To and Accrual Amount fields then set Data Type of the fields to Decimal.
- Save the changes.
See Also
2438887 - Metadata Framework - How to create a custom field for an MDF Object?
Keywords
Seniority From, Seniority To, Seniority, Accrual, Accrual Lookup by Seniority, Lookup, invalid number format error , KBA , LOD-SF-EC-TIM , Time Off , LOD-SF-FWK-MDF , MDF Framework , Problem
SAP Knowledge Base Article - Public