SAP Knowledge Base Article - Public

3808129 - Import data connection to S/4HANA fails with 'Unexpected error occurred' after S/4HANA SSO was configured - SAP Analytics Cloud

Symptom

  • Import data/connection attempts fail with: "Unexpected error occurred, please contact system admin for help." 
  • After editing the connection, the job fails with: "Unable to connect to datasource. Check the connection details and user credentials, and then try again."
  • Gateway trace shows no entries for the user used by the S/4HANA connection.
  • The issue began after configuring SSO for the S/4HANA endpoint.
  • In ljs_trace.log, you can see S/4HANA was responding back to SAC metadata request with 302 Moved temporarily.

Environment

  • SAP Analytics Cloud
  • SAP S/4HANA (on-premise)

Reproducing the Issue

  1. Log in to the SAP Analytics Cloud tenant.
  2. Open the affected S/4HANA import connection.
  3. Fill in the necessary settings and save the connection.
  4. Observe the errors "Unexpected error occurred, please contact system admin for help."

Cause

SSO was enabled for the S/4HANA OData endpoint while the SAC import data connection remained configured for Basic Authentication.

Resolution

Edit the S/4HANA connection in SAC and add saml2=disabled in the Connection URL.

See Also

3621510 - An "Unexpected program error" occurred while creating the dataset using the Import S/4 connection in SAP Analytics Cloud

Keywords

SAP Analytics Cloud, SAC, S/4HANA, OData, import data connection, data acquisition failure, unexpected error occurred, unable to connect to datasource, SSO, SAML, Basic Authentication, SICF, HTTP 302, redirect, Gateway trace , KBA , LOD-ANA-AQU-ODATA , Acquiring Data into SAC using an ODATA connection , Problem

Product

SAP Analytics Cloud 1.0