RFC_ERROR_LOGON_FAILURE. SapErrorMessage=Name or password is incorrect (repeat logon)

While trying to connect to a SAP server from Visual Studio - Consume Adapter Service,  you might encounter the following error

Microsoft.ServiceModel.Channels.Common.ConnectionException: Details: ErrorCode=RFC_OK. ErrorGroup=RFC_ERROR_LOGON_FAILURE. SapErrorMessage=Name or password is incorrect (repeat logon). AdapterErrorMessage=. ---> Microsoft.Adapters.SAP.RFCException: Details: ErrorCode=RFC_OK. ErrorGroup=RFC_ERROR_LOGON_FAILURE. SapErrorMessage=Name or password is incorrect (repeat logon). AdapterErrorMessage=.

 

image

This need not be a username/password issue. The BizTalk SAP Adapter uses the SAP RFC SDK to communicate with the SAP Server. There are different version available 6.4, 7.0 and 7.1

Looking at the versions, the machine on which we had this issue had the 6.4 version of the SDK. You can figure out the version of the SAP RFC SDK by looking at the version of librfc32u.dll

We upgraded the SDK to version 7.1 and were able to connect to the SAP Server.