Symptom
You are setting up new MDI and want to know how to fix errors such as the following:
Cannot invoke "java.util.List.isEmpty()" because "jsonPayload" is null, or
Cannot invoke "java.lang.Boolean.booleanValue()" because the return value of "org.apache.camel.Message.getHeader(String)" is null
Environment
SAP SuccessFactors MDI
Reproducing the Issue
1. Set up MDI Business Scenario e.g. Company Code Replication from SAP Master Data Integration to EC or Cost Center Replication from SAP Master Data Integration to EC
2. Observe errors
Cause
Wrong configuration
Resolution
The REST API URL parameter in the business scenario contains an invalid URL. Check the documentation here: https://help.sap.com/docs/SAP_SUCCESSFACTORS_EMPLOYEE_CENTRAL/634eabb3d94044d2b319aaf7a8f18fb9/c4ba4c22d4ac438384f0d0ef4c1cf4d1.html?locale=en-US and insert the URI out of the SAP Master Data Integration service key.
For more information on the service key, refer to Configuring OAuth for SAP Master Data Integration.
See Also
Keywords
Caused by: com.successfactors.jobscheduler.ScheduledJobExecutionException: java.lang.NullPointerException: Cannot invoke "java.util.List.isEmpty()" because "jsonPayload" is null, java.lang.NullPointerException, jsonPayload, MDI, business scenario, company code, company code replication, Cannot invoke "java.lang.Boolean.booleanValue()" because the return value of "org.apache.camel.Message.getHeader(String)" is null , Caused by: com.successfactors.jobscheduler.ScheduledJobExecutionException: java.lang.NullPointerException: Cannot invoke "java.lang.Boolean.booleanValue()" because the return value of "org.apache.camel.Message.getHeader(String)" is null , Cost Center, Cost Center replication , KBA , LOD-SF-INT-MDI , OneMDI Business Scenarios , LOD-SF-INT , Integrations , LOD-SF-INT-INC , Integration Center , How To