FAQ for Upgrading SAP JCo and IDoc Libraries
In this article:
- 1 What are the upgraded versions?
- 2 How do I upgrade the SAP native library?
- 3 What is the required driver compatibility?
- 4 Where can I get the updated native library?
- 5 How can I utilize auto-deploy functionality?
- 6 How do I enable the feature flags?
- 7 How do I verify if the feature flags are enabled?
- 8 How does the SAP driver auto-upgrade work?
- 9 Will my Environment (Org) be impacted?
- 10 What happens if the library is not upgraded?
- 11 Do I need to update for Cloudplex or Groundplex deployments or Docker deployments?
What are the upgraded versions?
4.45 main35817 (GA): JCo driver from v3.1.12 to v3.1.13
4.44 main34730 (GA): JCo driver from v3.1.10 to v3.1.12, IDoc library from v3.1.3 to v3.1.4
How do I upgrade the SAP native library?
When you upgrade the SAP Snap Pack, you must also upgrade the SAP native library on the file system. The native library can be upgraded manually or automatically using the auto-deploy feature. The 4.45 versions are:
Linux:
libsapjco3.soā md5240bf180f10d37aee26737fd70bc72aeWindows:
sapjco3.dllā md506c27284f0b28449b3b9495ff04643b1
Optional: Verify the file's integrity with md5sum (Linux) or certutil -hashfile <file> MD5 (Windows). The checksums mentioned above apply to the JCo 3.1.13 native library (4.45 main35817).
What is the required driver compatibility?
The SAP native library on the file system must be at least version 3.1.13 to work with the 4.45 SAP Snap Pack.
Older native library versions, including 3.1.10 and 3.1.12 will fail to load against a 4.45 Snap Pack build.
Refer to What happens if the library is not upgraded section for the exact error. If you are still on the 4.44 Snap Pack build, 3.1.12 is the required minimum version.
Where can I get the updated native library?
Download the shared libraryā sapjco3.dll (Windows) or libsapjco3.so (Linux) from the SAP portal.
Important: Before installing the SAP JCo native library, verify that the version downloaded from the SAP Portal matches the SAP Snap Pack's certified JCo version listed above.
If the downloaded version does not match the certified version, the SAP Snap Pack was not certified against that JCo version, and behavior may be unexpected. In this case, we strongly recommend that you enable auto-deploy functionality so that the correct JCo native library version is installed automatically.
If the versions match, you can install the native library manually. SnapLogic still recommends using auto-deployment whenever possible.
How can I utilize auto-deploy functionality?
Contact your CSM to enable the following feature flags in your Environment:
Feature Flag #1:
com.snaplogic.common.SnapLogicSecurityManager.ALLOW_CONFIG_FOLDER_ACCESS=trueFeature Flag #2:
com.snaplogic.snaps.sap.JCoNativeShim.JCO_NATIVE_PRELOAD=true
If you have your own Env-admin credentials, you can enable the feature flags yourself.
How do I enable the feature flags?
Prerequisites:
Upgrade the SAP Snap Pack to a version that supports auto-upgrading the SAP driverāeither
4.44main34730(JCo 3.1.12) or4.45main35817(JCo 3.1.13).Get the Org ID of your organization (labeled Environment ID in SnapLogic Designer ā Admin Manager ā System Configuration ā Environment). If you don't have access, ask your Administrator.
Credentials for an account with Env-admin permission on that Env. The built-in
admin@snaplogic.comaccount has this; your own admin-level user works too.
The admin API exposes POST and PATCH to set these flags on admin/snappack/org-dist/<ORG_ID>.
We recommend that you use the PATCH with
flags_to_addbecause it merges your flags into whatever is already set and can't accidentally remove unrelated overrides.Do not send
flag_overridesin a PATCH request, as the endpoint doesn't recognize it and the call returns200 OK, but makes no change.
Ā [Recommended] PATCH with flags_to_add
From any node (for example, any JCC), or from your own workstation, run the following command (against the control plane), replacing
<ORG_ID>with your Org/Environment ID:curl -u admin@snaplogic.com \ -H 'Content-Type: application/json' \ -X PATCH \ --data-binary '{ "flags_to_add": { "com.snaplogic.common.SnapLogicSecurityManager.ALLOW_CONFIG_FOLDER_ACCESS": true, "com.snaplogic.snaps.sap.JCoNativeShim.JCO_NATIVE_PRELOAD": true } }' \ 'https://elastic.snaplogic.com/api/1/rest/admin/snappack/org-dist/<ORG_ID>'
Enter the password for admin@snaplogic.com (or your own admin account) when prompted. A successful call returns http_status_code: 200 with the Environment's full flag_overrides map, including your two new flags.
Restart the Snaplex.
After the Snaplex is back up, run a pipeline containing an SAP Snap on the Linux or Windows Snaplex.
ExampleāQuerying feature flag
curl -u jdoe@snaplogic.com \
-H 'Content-Type: application/json' \
-X GET \
'https://elastic.snaplogic.com/api/1/rest/admin/snappack/org-dist/55099e5bba6d562af1c29fb4'ExampleāDelete feature flag
To remove a flag later, use flags_to_del in place of flags_to_add. Here is an example of removing both feature flags. Provide the current value of the property, which is both true in this case.
curl -u admin@snaplogic.com \
-H 'Content-Type: application/json' \
-X PATCH \
--data-binary '{
"flags_to_del": {
"com.snaplogic.common.SnapLogicSecurityManager.ALLOW_CONFIG_FOLDER_ACCESS": true,
"com.snaplogic.snaps.sap.JCoNativeShim.JCO_NATIVE_PRELOAD": true
}
}' \
'https://elastic.snaplogic.com/api/1/rest/admin/snappack/org-dist/<ORG_ID>'Ā
POST with flag_overrides
The endpoint also supports POST admin/snappack/org-dist/<ORG_ID> with a flag_overrides body. This form replaces the Environment's entire flag-override map, not just the flags you list. If you use it, first get the Environment's current flag_overrides (see next section) and include every existing entry in your payload, or you will silently delete other teams' overrides:
curl -u admin@snaplogic.com \
-H 'Content-Type: application/json' \
-X POST \
--data-binary '{
"flag_overrides": {
"<existing-flag-1>": "<existing-value-1>",
"<existing-flag-2>": "<existing-value-2>",
"com.snaplogic.common.SnapLogicSecurityManager.ALLOW_CONFIG_FOLDER_ACCESS": true,
"com.snaplogic.snaps.sap.JCoNativeShim.JCO_NATIVE_PRELOAD": true
}
}' \
'https://elastic.snaplogic.com/api/1/rest/admin/snappack/org-dist/<ORG_ID>'The org-dist should be all lowercase. If you query feature flags using Org-dist, the following error displays:Ā
{
"http_status_code": 404,
"response_map": {
"error_list": [
{
"message": "The Org-dist is invalid."
}
]
}
}After enabling the feature flags:
Restart the Snaplex so that no stale SAP native library is loaded into memory.
After the restart, run a pipeline containing an SAP Snap.
Ā
How do I verify if the feature flags are enabled?
GET the Env's distribution record:
curl -u admin@snaplogic.com \
-H 'Content-Type: application/json' \
-X GET \
'https://elastic.snaplogic.com/api/1/rest/admin/snappack/org-dist/<ORG_ID>'The response should include both flags under flag_overrides, set to true:
{
"response_map": {
"_id": "<ORG_ID>",
"flag_overrides": {
"com.snaplogic.common.SnapLogicSecurityManager.ALLOW_CONFIG_FOLDER_ACCESS": "true",
"com.snaplogic.snaps.sap.JCoNativeShim.JCO_NATIVE_PRELOAD": "true"
}
},
"http_status_code": 200
}If your Env already has other flag_overrides set (common ā orgs frequently have platform-level flags like IS_ULTRA_KEEPER_ENABLED or USE_DELIVERY_SERVICE), you'll see those alongside the two SAP flags. That's expected: the PATCH/flags_to_add form only adds/updates the flags you send and leaves everything else untouched.
Do not call the API through cdn.elastic.snaplogic.com ā that host is a CDN edge for static/UI content, not the admin REST API, and results are not guaranteed to reflect the live state. Always use elastic.snaplogic.com directly for API calls.
How does the SAP driver auto-upgrade work?
Make sure all prerequisites for auto-deploy are met:
Both feature flags are enabled (confirmed via the
GETabove).The Snap Pack version is
4.44main34730or newer.
Restart the Snaplex first, so no SAP native library is already loaded into memory.
Run a pipeline that contains at least one SAP Snap.
During the first execution (before the SAP native library has been loaded), the Snap Pack searches the file system for it.
If the library isn't found, the Snap Pack automatically deploys the correct native library for the detected OS (
libsapjco3.soon Linux,sapjco3.dllon Windows).If a library is found but its version differs from the one bundled with the Snap Pack, the Snap Pack overwrites it on the file system with the bundled version. The SAP JAR then loads the native library from the file system into memory.
If you run a pipeline again after the native library is already loaded and auto-deploy tries to run again, you'll get an error that the library is already loaded ā restart the JCC Snaplex before retrying. This ensures your environment always uses a compatible, up-to-date SAP-native library without manual installation or maintenance.
Will my Environment (Org) be impacted?
Yes, if your SAP Snap Pack currently uses an older SAP native library (sapjco3). If you're on SAP Snap Pack with JCo driver v3.1.12 or older, you must manually update the native library or use the auto-deploy feature described above.
What happens if the library is not upgraded?
If the SAP Snap Pack is upgraded without upgrading the native library, the Snap Pack fails to initialize, with runtime errors like:
JCo native library 3.1.10 (Linux):
Caused by: java.lang.ExceptionInInitializerError: Native library sapjco3 is too old. Found library /opt/snaplogic/ldlib/libsapjco3.so has version "753.1325", but required is at least version "754.623"JCo native library 3.1.12 (Linux):
Caused by: java.lang.ExceptionInInitializerError: Native library sapjco3 is too old. Found library /opt/snaplogic/ldlib/libsapjco3.so has version "753.1446", but required is at least version "754.623"
Resolution: Upgrade to JCo driver 3.1.13, either manually or via auto-deploy (see How does the SAP driver auto-upgrade work?).
Do I need to update for Cloudplex or Groundplex deployments or Docker deployments?
All Cloudplexes are Linux-based (.rpm). If a Cloudplex is IAC-enabled, the native library is installed automatically as part of the upgrade. Snaplex Docker images also ship with the updated SAP JCo native library. Non-IAC Cloudplexes and Groundplexes must be updated manually ā only the JCC nodes that actually run the SAP Snap Pack need the upgrade.
The path delimiters are important. For Linux, it is the forward slash (/). For Windows, the path delimiter is the backslash (\).
For step-by-step manual install instructions, refer to Implementing the Library Upgrade for SAP Snap Pack.
Related links: