Symptom
The error below is occurring in your Boomi package "Packaged Integration: ERP to EC Cost Center Replication v2.0":
SEVERE Connector EC SFAPI Connection: successfactorsmaster-Q2Q93V-SFSF-priv_prod Connector; OP EC Upsert Cost Center 0 class java.lang.String cannot be cast to class com.successfactors.json.JSONObject (java.lang.String is in module java.base of loader 'bootstrap'; com.successfactors.json.JSONObject is in unnamed module of loader com.boomi.connector.factory.ConnectorManager$ConnectorClassLoader @61a51f09)
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 HXM Suite
- Boomi
Resolution
This error occurs when the Cost Center data coming from the ERP system contains a record that has duplicate time slices with same start date and end date. For example, when looking at Boomi's payload you would see:
<E101ODTF_S_COST_CENTER_DATA SEGMENT="1">
...
<REMOTE_OBJECT_ID>123456</REMOTE_OBJECT_ID>
...
<E101ODTF_S_COST_CENTER_ATTR SEGMENT="1">
...
<VALIDITY_PERIOD_START_DATE>20200101</VALIDITY_PERIOD_START_DATE>
<VALIDITY_PERIOD_END_DATE>20240101</VALIDITY_PERIOD_END_DATE>
...
<E101ODTF_S_COST_CENTER_ATTR SEGMENT="1">
...
<VALIDITY_PERIOD_START_DATE>20200101</VALIDITY_PERIOD_START_DATE>
<VALIDITY_PERIOD_END_DATE>20240101</VALIDITY_PERIOD_END_DATE>
Here in the example above we have the Cost Center with ID "123456" having two time slices with start date = 2020-01-01 and end date = 2024-01-01, causing the error.
So please review the data coming from your ERP system and make sure that there aren't any Cost Center records containing such duplicate time slices.
Keywords
costcenter, replication, bootstrap, duplicate, time slice, boomi , KBA , LOD-SF-INT-BPI , Dell & Boomi Infrastructure , Problem