SAP Knowledge Base Article - Public

3833030 - S/4HANA Cloud Live Data Connection fails to be created in SAP Analytics Cloud (SAC) - invalid_client, Bad credentials error

Symptom

  • S/4HANA Cloud Live Data Connection fails to be created in SAC with the following error on the UI: "We couldn't connect to your S/4HANA System. For more information see our troubleshooting page".
  • Error displayed in the HAR trace: s4hcremotes/SAPS4HANA/sap/bw/ina/GetServerInfo 401 Unauthorized - "Invalid_client, bad credentials".

Environment

  • SAP Analytics Cloud 2026.15.12 

Reproducing the Issue

  1. Configure SAML SSO in SAC using Custom SAML Mapping.
  2. Attempt to create an SAP S/4HANA Cloud live data connection in SAC.
  3. Observe the connection failure with error: "Invalid_client, bad credentials".

Cause

Additional configuration added in S/4HANA -> Communication System -> Oauth 2.0 Settings -> Outbound OAuth 2.0 Client Settings -> mTLS Endpoint

Resolution

Below field should be left empty.
S/4HANA -> Communication System -> Oauth 2.0 Settings -> Outbound OAuth 2.0 Client Settings -> mTLS Endpoint

See Also

Keywords

SAC, S/4HANA Cloud, live data connection, SAML, SSO, email mapping, custom SAML mapping, subject name identifier, invalid_client, bad credentials, communication user, Identity Authentication, IdP admin tool, username mismatch, connection failure , KBA , LOD-ANA-LDC-SCA , SCA - SAP Cloud Application , Problem

Product

SAP Analytics Cloud 1.0