Symptom
When launching an EC-integrated Compensation Plan, you receive the following error message:
This scheduled job failed to complete. For details, please contact SuccessFactors customer support.
com.successfactors.jobscheduler.ScheduledJobExecutionException: com.successfactors.sca.service.ServiceLegacyRollbackException: Wrapped Exception: java.lang.Long cannot be cast to java.lang.String
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 Compensation
Reproducing the Issue
- Go to Admin Center > Compensation > Compensation Home
- Select your plan
- Click on Manage Worksheets > Create Worksheets
- Fill out all pertinent data, then select Launch Plan
- Click on the link to monitor job progress
- Look for latest job of type Launch Compensation Worksheets -- Job Status Failed
- Download Status of job -- error is:
This scheduled job failed to complete. For details, please contact SuccessFactors customer support.
com.successfactors.jobscheduler.ScheduledJobExecutionException: com.successfactors.sca.service.ServiceLegacyRollbackException: Wrapped Exception: java.lang.Long cannot be cast to java.lang.String
Cause
This is caused by mapping a number-type EC field (such as jobInfo.pay-grade.paygradelevel) to a string-type standard field
Resolution
Ensure that you are mapping EC fields of the correct data types to the relevant Compensation columns. Standard field data types are documented in the latest sf-form.dtd files, which are accessible to Implementation Partners.
Keywords
KBA , LOD-SF-CMP-EC , EC data, EC mappings, configuration & settings , Problem