CPM - Failed to initialize dll "sapnwrfc.dll". Dll init return code: -2.

CPM - Failed to initialize dll "sapnwrfc.dll". Dll init return code: -2.

151
Created On 11/10/26 11:02 AM - Last Modified 11/10/26 13:03 PM


Symptom



When managing SAP accounts via any of the SAP plugins, you may see the following error in the logs:
  • Code: 2101, Error: Failed to initialize dll "sapnwrfc.dll". Dll init return code: -2.
 


Environment


Privileged Access Manager (PAM, self-hosted);Privilege Cloud Central Policy Manager (CPM)

Cause



The error above is generated when the wrong file version and/or architecture type of the SAPNWRFC DLL dependency file, or its DLL dependency files, is/are placed the \Password Manager\bin folder.
 


Resolution



Referencing the plugin documentation (HERE ), the NWRFCSDK DLL dependencies must be the following versions:
 
  DLL Name  DLL File Version
 sapnwrfc.dll 7540.325.34.26968  
 icudt57.dll 57.1.0.1
 icuin57.dll 57.1.0.1
 icuuc57.dll 57.1.0.1
 libsapucum.dll    7540.325.34.26968  

NOTE: It is possible that newer DLL versions may work in certain situations.  However, this is not supported.

Additionally, please ensure that the rest of the required dependencies have been installed and/or configured.  The SAP plugins also require the following two packages be installed on the CPM:
  • Microsoft Visual C++ 2013 Redistributable (32-bit or 64-bit)
  • Microsoft Visual C++ 2008 SP1 Redistributable (32-bit only)


Additional Information


Details

SYMPTOM:
When managing SAP accounts you are getting the following error:
Failed to initialize dll "sapnwrfc.dll". Dll init return code: -2.
 
PROBLEM:
A wrong version of sapnwrfc.dll is installed the bin folder.
 
SOLUTION:
Make sure to use NWRFC_2-20002217.SAR. It has to be exactly this version! 

The extracted files have to have the following versions:

DLL Name  DLL File Version 
sapnwrfc.dll  7110.0.15.6533 
icudt34.dll  3.4.0.0 
icuin34.dll  3.4.0.0 
icuuc34.dll  3.4.0.0 
libicudecnumber.dll  7110.0.15.6533 
libsapucum.dll  7110.0.15.6533 

Extract all library files and copy the correct versions to %PROGRAMFILES%\password manager\bin and c:\windows\system32.



Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj00000014o8CAA&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail