SAP Knowledge Base Article - Public

2784048 - ???Saving of 1 TimeTypeProfile throwed a Exception??? Error on change of Available Time Types External Codes

Symptom

???Saving of 1 TimeTypeProfile throwed a Exception??? error is received on change of Time Types assignment external code on Time Profile

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 SuccesFactors Employee Central
  • SAP SuccessFactors Employee Central Time Off
  • SAP SuccessFactors Metadata Framework

Reproducing the Issue

1. Go to Admin Center > Manage Data then create new Time Profile and save the changes.

TPSample.png

2. Click Take Action > Make Correction then interchange the external code of the time type assignments, Vacation from 2 to 1 and Sickness from 1 to 2.

Save the changes. Eror message '???Saving of 1 TimeTypeProfile throwed a Exception???' is received.

ChangeExternalCodeError.png

Cause

Issue occurs due to coded validation restricting save of composite/child MDF records when external codes are interchanged

Resolution

Validation error message is enhanced in 1905 release to display a meaningful error message instead of a generic exception message. With the enhanced message, the error should now display "Changing external code to 'external code value' for 'CompositeObject' is not allowed. In case you need to change the external code, please delete the row and add a new one.". In the example above, error should be displayed as "Changing external code to 1 for AvailableTimeType is not allowed. In case you need to change the external code, please delete the row and add a new one."

Note: Deletion of the time type assignment will only work if there are no existing time accounts or time off requests associated to the time type. Hence, if time types has time account type(s) assigned and or if there are existing time off records associated to the time type, deletion of the time type on the time profile will not be allowed.

To interchange the external codes of the time types under Available Time Type section of the Time Profile:

1. Click Take Action > Make Correction.

2. Temporarily set the value of one of the time type to a unique value which is not referenced elsewhere under the Available Time Type section, for example, Vacation time type external code from 2 to 1.1 and then with the external code of Sickness from 1 to 2. Save the changes.

3. Correct the Time Profile again then change the value of the external code of the Vacation time type from 1.1 to 1 and save the chnages.

Keywords

TimeTypeProfile, Exception, Error, Available Time Types, Time Type, Time Profile, ???Saving of 1 TimeTypeProfile throwed a Exception???, MDF-28272, MDF-26091 , KBA , LOD-SF-EC-TIM , Time Off , LOD-SF-MDF , Metadata Framework , Problem

Product

SAP SuccessFactors Employee Central all versions