Symptom
- Receive error message when updating a position using the Position org chart
- Error Message: "An Error Occurred while synchronizing the changes. The position as well as the incumbents have not been updated. Cannot cast class com.successfactors.ruleengine.gorule.bean.PickListValueWrapper to class java.lang.String"
- Changes to position generates error when trying to save
Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental
Environment
- Employee Central - Position Manegment
Reproducing the Issue
- Navigate to Position Org Chart
- Select a position > Click on Show Position -> Click on Edit
- Choose Effective date -> Click Proceed
- Make Changes to the fields you want to update
- Click 'Save'
Receive Error:
Cause
This issue is caused by one of the following issues:
- Issue 1: The object 'flsa-status' in both the Compensation Information Portlet and Country Specific USA Job Information Portlet were not mapped properly to the pick list 'FLSASTATUS_USA'.
- Issue 2: There is a field defined as a picklist on the position which is a string or object on Job Information.
- Issue 3: There is a field whose picklist do not match, the picklist used in Position does not match the Picklist used in Job Info (they must contain the same values, labels and external codes).
Resolution
Issue 1:
- Navigate to Manage Business Configuration
- Click on 'compInfo' -> Select 'Details for 'flsa-status'
- Select 'Picklist' as 'Type of Reference Object' -> Select 'FLSASTATUS_USA' from the Picklist drop down menu
- Click Done -> Click Save
- While in 'Manage Business Configuration' -> expland 'jobInfo' -> Select 'jobInfo_USA'
- Click on 'Details' for the 'flsa-status' object
- Select 'Picklist' as 'Type of Reference Object' -> Select 'FLSASTATUS_USA' from the Picklist drop down menu
- Click Done -> Click Save
Note: The object 'flsa-status' in the country specific portion for USA, will have a data type of 'PICKLIST', where the 'flsa-status' in the 'Compensation Information' portlet will have a data type of 'STRING'.
Issue 2:
Check all picklist fields on the position, which are mapped via the Position to job Information Sync rule and make sure the fields they are being mapped to in Job Info are also picklists. If they are not, you will need to match the configuration of the data types if you wish to continue mapping this field.
Issue 3:
Check all picklist fields on the position and make sure the MDF Picklists match the legacy picklist on the corresponding job info fields. They must contain the same values, labels and external codes. If they do not, you will need to correct one of the picklists so they both match.
Tip: For Issue 2 and Issue 3, a quick way to check which field is causing the error is to remove a few picklist field from the rule at a time, until you no longer get the error. This will help narrow down the fields with configuration issues.
Keywords
SF EC, success factors, organisational chart, pos org, update position, ECT-82724, an error occured while synchronizing the changes, the position as well as the incumbents have not been updated, cannot cast class, picklistvaluewrapper , KBA , LOD-SF-EC-POS , Position Management , LOD-SF-EC-JOB , Job Information , Problem