SAP Knowledge Base Article - Public

3238591 - "A bad request was made to the SAP Analytics Cloud agent." error message appears when creating a new connection to SAP Universe in SAP Analytics Cloud (SAC)


When creating a new connection or modifying an existing one to SAP Universe, the following error occurs in SAP Analytics Cloud (SAC):

  • "A bad request was made to the SAP Analytics Cloud agent."

Catalina logs show:

  •  "Caused by: java.lang.ClassNotFoundException:"


  • SAP Analytics Cloud (Enterprise) 2022.8.17

Reproducing the Issue

  1. Edit the connection based on SAP Universe.
  2. Enter Username and password.
  3. Save this connection and check the error message.


This issue is related to a missing "sapcommoncrypto" library in the SAP Analytics Cloud Agent.


To fixe the issue please try to follow these manual steps :

  1. In the base directory of the Cloud Agent Simple Deployment Kit ZIP, retrieve the files under "win64_x64".

  2. Extract the contents of the directory "", and place it under the Apache Tomcat installation folder in the path, for example "tomcat9\lib\". The contents should all reside directly under the indicated directory, for example "tomcat9\lib\sapcrypto.dll", along with the rest of the corresponding files.

  3. To configure Tomcat, navigate to the tools subfolder of the Cloud Agent Kit installation (e.g. \SAP\SACAgentKit\tools) and run the editTomcatServiceConfig script "editTomcatServiceConfig.bat".

  4. On running the script, click on the "Java" tab. You will enter a line of configuration under "Java Options:".

  5. Set the -Djava.library.path to where the "" files are located.

  6. Add -Djava.library.path=C:\Program Files\SAP\SACAgentKit\tomcat9\lib.

  7. Restart your Cloud agent / Tomcat.

If you are having trouble connecting to SAP Universe after following the above steps, try omitting the step of setting -Djava.library.path to where the "" files are located, while following everything else.

Please also ensure that the system user has access to the location where the cryptolib files are located.

Ensure that the directory in which the cryptolib files are placed, e.g "tomcat9\lib\", has no security measures or protections which would prohibit Tomcat from accesing the necessary files.

See Also


SAP Cloud for Planning, sc4p, c4p, cforp, cloudforplanning, Cloud for Analytics, Cloud4Analytics, CloudforAnalytics, Cloud 4 Planning, BOC, SAPBusinessObjectsCloud, BusinessObjectsCloud, BOBJcloud, BOCloud., SAC, SAP AC, Cloud-Analytics, CloudAnalytics, SAPCloudAnalytics,Error, Issue, System, Data, User, Unable, Access, Connection, Sac, Connector, Live, Acquisition, Up, Set, setup, Model, BW, Connect, Story, Tenant, Import, Failed, Using, Working, SAML, SSO, sapanalyticscloud, sap analytical cloud, sap analytical cloud, SAC, sap analyst cloud, connected, failure, stopped, sap analyst cloud,, predictive analytics (analysis), data analysis (analytics) tools, analytics tools, sap analytics cloud, data literacy, advanced analytics, data democratization, analytics software, real time analytics, self service analytics, advanced data analytics, analytics as a service, analytics cloud / cloud analytics, saas analytics, cloud bi, enterprise planning, cloud data analytics, cloud based analytics, analytics cloud platform, modern analytics, real time analysis, cloud analytics solution(s), what is sap analytics cloud, cloud analytics tools, analytics in the cloud, cloud analytics software , KBA , LOD-ANA-AQU , Import Data Connections (Acquiring Data) , Problem


SAP Analytics Cloud 1.0