SAP Knowledge Base Article - Public

2849195 - Launch Worksheet Failed due to error java.lang.Long cannot be cast to java.lang.String - Compensation

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

  1. Go to Admin Center > Compensation > Compensation Home
  2. Select your plan
  3. Click on Manage Worksheets > Create Worksheets
  4. Fill out all pertinent data, then select Launch Plan
  5. Click on the link to monitor job progress
  6. Look for latest job of type Launch Compensation Worksheets -- Job Status Failed
  7. 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

Product

SAP SuccessFactors HCM Core all versions