Technical Articles
SocketTimeoutException:connect timed out exception in CPI while replicating master data.
I was working on project : Replicating Employee Master Data from Employee Central to SAP ERP HCM via CPI.
For this purpose I have used the Standard package available in CPI named: SAP SuccessFactors Employee Central to ERP Employee and Organizational Data. You can simply find them in discovery tab of CPI, And particularly for Employee Master data replication we have to use the Artifact 1 available in this package named: SAP SuccessFactors Employee Central to ERP Employee Data and Organizational Assignment.
I have done all the required configurations in all the three systems(SAP ERP HCM, SAP CPI And SAP SuccessFactors).
All the certificates are installed and all SOAMANAGER web-based connectivity has been made.
After running the query PROGRAM (ECPAO_EE_ORG_REPL_QUERY) from SAP ERP HCM System we are getting Error in CPI logs which is
Inbound processing in endpoint at /EC_to_ERP_Master_Data_And_Org_Query failed with message “Fault:Sequential processing failed for number 0. Exchange[ID-vsa7183023-34724-1585374850287-51-4]. Caused by: [org.apache.cxf.interceptor.Fault – Could not send Message.]”, caused by “SocketTimeoutException:connect timed out (local port 36650 to address IP (vsa7183023.dxb1.od.sap.biz), remote port 8000 to address IP of your system)”
I checked for all the configuration again and I found nothing wrong.
Maybe if you are getting some similar error you have problem with your configuration so kindly first check for all the configuration which you have done in SOAMANAGER and also check for endpoint Access URL and Credential You provided in the configuration step of iflow.
Here in This blog post I will tell you to overcome this issue.
We get Access Url from SOAMANAGER Transaction of SAP ERP HCM System.
For getting the Access Url : Go To SOAMANAGER T-Code in SAP ERP HCM System.
choose Simplified Web service Configuration.
Enter EEMASTERDATAANDORGASSBNDLREQ in Service Definition.
Mark the entry and click on Show Details.
Copy Access url.
For complete details about SOAMANAGER connectivity visit https://help.sap.com/viewer/a7f164924edd4dfe817b7bdc2fc4927a/2005/en-US/6bbb8faf7fbc45e6bd9461bc105df28a.html?q=access%20url
Aceess Url will give you host name with port(http) and complete webservice path.
Now in SAP CPI configuration : In address tab you have to put this access url. But sometimes our CPI don’t able to recognize the hostname which is something like (eg. sapdevs4d.sapinfra.com)
So instead of using host name use IP Which will be like (for eg. 105.12.134.56) and keeping port and other url component as it is ,this will resolve your problem and this error will be resolved.
- Go To SAP Cloud Platform integration > Create tab > SAP SuccessFactors Employee Central to ERP Employee and Organizational Data >Artifact tab >AP SuccessFactors Employee Central to ERP Employee Data and Organizational Assignment > choose configure > Go to Receiver tab :
Then Instead of using host name(eg. saps4dbq.sapinfra.com) in Address Field use IP Address.(e.g:103.43.122.13) - How you can get IP: It is very simple to get that IP ,Your Application Server which you used while login to your SAP ERP HCM System is your IP which you have to use in this configuration.:
CONCLUSION:So this is how one can overcome this issue. Hope this blog is helpful for all. IP address will be vary from system to system.
Great work ma'am ?
So, You are exposing the Actual Host IP address of your SAP system outside the firewall ?
Instead of masked url ? Of HCM (Employee and Payroll etc details are available)
Will SOX compliance team approve these changes?
Please suggest.