on 01-14-2019 8:03 PM
Hi all,
I'm setting up employee replication from ECC to SAP using package :
SuccessFactors HCM Suite Talent Management integration with SAP ERP HCM
The first CPI interface called by ECC is the logout from SF using this soap path:
/cxf/hcm2bizx/SFSFSessionHandlingLogoutQueryResult
This integration fails with the following error:
Outbound processing in endpoint at /hcm2bizx/SFSFSessionHandlingLogoutQueryResult failed with message "Fault:Could not generate the XML stream caused by: com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character 'w' (code 119) in prolog; expected '<'
at [row,col {unknown-source}]: [1,1].", caused by "WstxUnexpectedCharException:Unexpected character 'w' (code 119) in prolog; expected '<'
at [row,col {unknown-source}]: [1,1]"
In debug I can see this error which is generated by the soap call to SF::
org.apache.cxf.binding.soap.SoapFault: while trying to load from index 1 of an object array with length 1, returned from java.lang.String.split(java.lang.String)
A working request (from postman directly to SF) looks like this
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:sap-com:document:sap:soap:functions:mc-style">
<soapenv:Header/>
<soapenv:Body>
<ns1:logout xmlns:ns1="urn:sfobject.sfapi.successfactors.com"></ns1:logout>
</soapenv:Body>
</soapenv:Envelope>
The body content before the soap call to SF is this:
<?xml version="1.0" encoding="UTF-8"?>
<ns1:logout xmlns:ns1="urn:sfobject.sfapi.successfactors.com"></ns1:logout>
I have no idea where this unexpected character is coming from. I can see no more information in CPI or ECC.
Where is this error coming from?
Thanks,
Tom
Well, I finally found the reason.
As it turns out the abap report RH_SFI_SYNCHRONIZE_EMPL_DATA errored out all the employees to be synchronized and at the end triggered the logout process without that a login ever happened.
As long as some employees are sent the login is sent normally and subsequently the logout succeeds as well since ECC now sends a sessionId in the logoutRequest
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.