SAP HCM Agent - Test connection fails
Environment:
OS : Windows Server 2016
IDB Service: IDB v4.1.5 x64
IDB SAP Broker : v4.1.3 x64
Test connection on SAP HCM Agents returns error below:
An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)
Troubleshooting done so far:
Current environment with IDB v4.1.3 + IDB SAB Broker v4.1.2 running on Windows 2008 R2 with same credentials and same parameters to connect to SAP instance works without any issues.
IDB Logs have this entry below
The test of agent SAP HCM Agent failed with message System.BadImageFormatException: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)
at SAP.Connector.Connection.Open()
at Unify.Product.IdentityBroker.SapHrCommunicator.Open()
at Unify.Product.IdentityBroker.SapHrCommunicator.TestConnection()
at Unify.Product.IdentityBroker.SapHrAgent.TestConnection()
at Unify.Product.IdentityBroker.AgentEngine.Test(Guid agentId).
No errors logged in Event Viewer.
Answer
Existing issues:
- https://voice.unifysolutions.net/communities/6/topics/630-sap-connector-v41-badimageformatexception
- https://voice.unifysolutions.net/communities/6/topics/643-can-not-run-sap-connector-badimageformatexception
- https://voice.unifysolutions.net/communities/6/topics/381-error-results-when-connecting-to-sap-hcm-using-sap-hcm-wizard-in-management-studio
Or use the SapHR.Remote.4.1.3.zip package to separate the service from the connectivity to SAP. There's an item in our backlog to migrate this package up to v5+.
Thanks. Could this information be updated in the pre-requisites section of the SAP HCM Broker? Would have been helpful.
It's not a hard prerequisite, the separate service/connectivity fixes that. The documentation will be updated to reflect this at the same time.
Customer support service by UserEcho
Existing issues:
Or use the SapHR.Remote.4.1.3.zip package to separate the service from the connectivity to SAP. There's an item in our backlog to migrate this package up to v5+.