SAP Knowledge Base Article - Public

3838276 - Error "Maximum Duration in Months Must Not Exceed 60" When Updating a Time Type

Symptom

  • An error occurs when removing Event Reasons from an existing Time Type in SAP SuccessFactors Time Off.
  • The Time Type cannot be saved after the Event Reasons are removed, even after all associated Employee Time records have been deleted.
  • The system displays the following error message: Error: “For time types without Leave of Absence relevance, maximum duration in months must not exceed 60.”
  • The requirement is to remove the Event Reasons from the Time Type because they are no longer required.

    Environment

    • SAP SuccessFactors Employee Central – Time Management

    Reproducing the Issue

    1. Navigate to Admin Center > Manage Data.
    2. Search for and open the existing Time Type.
    3. Remove the associated Event Reasons.
    4. Click Save.
    5. Observe that the system displays the maximum duration validation error “For time types without Leave of Absence relevance, maximum duration in months must not exceed 60" and prevents the Time Type from being saved.

    The error may persist even after all Employee Time records associated with the Time Type have been deleted.

    Cause

    This behavior is caused by system validation of the Maximum Duration in Months field.

    When the Event Reasons are removed, the Time Type is treated as a non-Leave of Absence (non-LOA) Time Type. The maximum duration configured for the Time Type must comply with the applicable system validation.

    The  maximumDurationInMonths field is delivered with the visibility set to Not Visible by default. Consequently, administrators may not be able to view or modify the field directly in Manage Data without first changing its visibility.

    Resolution

    To resolve the issue, make the Maximum Duration in Months field editable, update its value, and save the Time Type.

    Step 1: Make the field editable

    1. Navigate to Admin Center > Configure Object Definitions.
    2. Select Object Definition from the first dropdown.
    3. Search for and open Time Type.
    4. Locate the maximumDurationInMonths field.
    5. Change the field's visibility to Editable.
    6. Save the changes.

    Step 2: Update the Maximum Duration in Months

    1. Navigate to Admin Center > Manage Data.
    2. Search for and open the relevant Time Type.
    3. Locate the Maximum Duration in Months field, which should now be visible.
    4. Set the value to 24 months for the non-LOA Time Type, in accordance with the standard default described in the SAP Help documentation.
    5. Save the Time Type.

    Step 3: Validate the changes

    1. Confirm that the Time Type is saved successfully.
    2. Verify that the Event Reasons have been removed as intended.
    3. Confirm that the Maximum Duration in Months value complies with the applicable Time Type configuration requirements.

    Additional Information

    The maximumDurationInMonths field controls the maximum duration, in months, for which an employee can request an absence using a particular Time Type.

    According to the standard defaults described in the SAP Help documentation:

    • LOA Time Types: 120 months.
    • Non-LOA Time Types: 24 months.

    See Also

    SAP Handbook https://help.sap.com/docs/successfactors-employee-central/implementing-time-management-in-sap-successfactors/time-type?locale=en-US&ai=true

    Keywords

    SAP SuccessFactors Time Off, Time Type, Maximum Duration in Months, maximumDurationInMonths, Remove Event Reasons, Time Type Save Error, Non-LOA Time Type, Non-Leave of Absence, Leave of Absence Relevance, LOA Time Type, Time Type Validation Error, Maximum Duration Must Not Exceed 60, Event Reason Removal Error, Manage Data Time Type, Configure Object Definitions, Time Type Field Visibility, Maximum Duration Field Not Visible, Employee Time, Time Off Configuration, Time Type Cannot Be Saved, For time types without Leave of Absence relevance, maximum duration in months must not exceed 60, Time Type Error, Error Time Type KBA, Time Type Error KBA, Successfactors Error, Successfactors , KBA , LOD-SF-EC-TIM-TA , Time Accounts (TAT, TA, TAD) , Problem

    Product

    SAP SuccessFactors HCM Core 2605