SAP Knowledge Base Article - Public

2349959 - Application Error: Saving A New Hire

Symptom

When attempting to hire a new employee via the Employee Central new hire process the customer encounters an application error when saving.

Reproducing the Issue

1. Admin Center > Add New Employee

2. Fill in required fields for all screens in the new hire wizard

3. Attempt to save

4. Application error occurs

Cause

Analysis of the log file reveals a problem with field propagation rules (see log file example below). A review of the propagation rules reveals the existence of a recursive reference to the same field. Referencing the same field in both the mapping and assignment in the propagation rules XML configuration file results in an application error.

In the sample scenario, both mapping and assignment code in the propagation file involve the geozone.externalCode and jobInfo.custom-string8 fields, which is recursive.

 

Propagation Rule XML Configuration File Excerpt

Assignment: 

  <propagate foundation-element-id="geozone">
        <field id="externalCode">
            <destination hris-element-id="jobInfo" field-id="custom-string8"/>
        </field>
  </propagate>

Mapping:

    <propagation-mapping foundation-field="geozone.externalCode" hris-field="jobInfo.custom-string8"/>
</hris-propagations>

-----------------

Server Log File Excerpt

08:15:07,230 ERROR [SFDWRExceptionConverter] [144.36.54.135] [715736] [Example,Example,stg12sfv4_STOCKPM900012.,dbPool1,6320,grace.han,en_US] java.lang.reflect.InvocationTargetException (errorId=8f4983a6-5994-4e61-9931-1909982b6c25, timestamp=2016-07-13T08:15:07.227+0000): nulljava.lang.reflect.InvocationTargetException  at sun.reflect.GeneratedMethodAccessor51021.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.jboss.seam.util.Reflections.invoke(Reflections.java:20)
        at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)
        at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:57)
        at org.jboss.seam.interceptors.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:34)
        at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
        at org.jboss.seam.interceptors.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:47)
        at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
        at org.jboss.seam.interceptors.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:27)
        at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
  at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:103)
        at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:151)
        at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:87)
        at com.successfactors.fo.dao.impl.GeozoneDAOImpl_$$_javassist_3901.findProjectedEOByCode(GeozoneDAOImpl_$$_javassist_3901.java)
        at com.successfactors.hris.util.HRISPropagationHelper.findProjectedFoundationEOByExternalCodeDateRange(HRISPropagationHelper.java:305)
        at com.successfactors.hris.service.HRISPropagationService.loadDateRangeProjectedSourceEntity(HRISPropagationService.java:1015)
        at com.successfactors.hris.service.HRISPropagationService.getProjectedFoundationEo(HRISPropagationService.java:824)
        at com.successfactors.hris.service.HRISPropagationService.getPropagations(HRISPropagationService.java:257)
        at com.successfactors.fo.ui.controller.FoundationAutoCompleteController.populatePropagationResults(FoundationAutoCompleteController.java:1050)

Resolution

To resolve the problem you should either:

1. Remove the recursive reference from the propagation rule XML configuration file by deleting the assignment and mapping

OR

2. Modify the existing rules such that no recursive reference exists between the assignment and mapping

Note: This change may only be accomplished through access to backend provisioning which requires assistance from your professional services consultant or cloud product support representative.

Keywords

Recursive, Application Error, New Hire, Propagation Rule, Geozone , KBA , LOD-SF-EC-LOC , Localization & Country Specifics , Problem

Product

SAP SuccessFactors HCM Suite 1511 ; SAP SuccessFactors HCM Suite 1602 ; SAP SuccessFactors HCM Suite 1605 ; SAP SuccessFactors HCM Suite 1608 ; SuccessFactors HCM Suite 1204 ; SuccessFactors HCM Suite 1207 ; SuccessFactors HCM Suite 1210 ; SuccessFactors HCM Suite 1302 ; SuccessFactors HCM Suite 1305 ; SuccessFactors HCM Suite 1308 ; SuccessFactors HCM Suite 1311 ; SuccessFactors HCM Suite 1402 ; SuccessFactors HCM Suite 1405 ; SuccessFactors HCM Suite 1408 ; SuccessFactors HCM Suite 1411 ; SuccessFactors HCM Suite 1502 ; SuccessFactors HCM Suite 1505 ; SuccessFactors HCM Suite 1508