SAP Knowledge Base Article - Public

3593143 - Failed to create live connection to S/4HANA Cloud system in SAP Analytics Cloud (SAC)

Symptom

Failed to create live connection to S/4HANA Cloud system in SAP Analytics Cloud (SAC) due to error:

  • You are not authorized to query the remote system. Please ask your administrator to grant you the InA role.

Environment

  • SAP Analytics Cloud 
  • SAP S/4HANA Cloud

Reproducing the Issue

  1. Logon to SAC and create a new live S4HANA Cloud connection following guide: Live Data Connection to SAP S/4HANA Cloud Edition via OAuth; 
  2. Attempt to save the connection and the error above occurs;
  3. Capture HAR log and the following error is displayed:
    "invalid_grant,
    Provided authorization grant is invalid.Exception was There is no trust between entities and [Your SAC URL] in client XXX.For more information,
    consult the kernel traces or the OAuth 2.0 trouble shooting SAP note 1688545".

Cause

  • The OAuth 2.0 SAML Issuer is not configured correctly in the Communication System of the SAP S/4HANA Cloud system:
    • It is typically populated automatically when the SAC signing certificate is uploaded. If this field contains an incorrect value or is not maintained properly, authentication errors may occur. 

Resolution

  1. Logon to S4HANA system and open the communication system created for SAC usage.
  2. Navigate to General > Identity Provider > OAuth 2.0 Identity Provider > confirm it's enabled.
  3. Confirm User ID mapping mode is set to User Name
  4. Change value of OAuth 2.0 SAML Issuer to the SAC tenant URL without https://
  5. Also, check if all pre-requisites are configured properly according to the KBA  3428297 -  Live Connection between SAC and S/4HANA Cloud - Prerequisites 

See Also

Keywords

SAP Analytics Cloud, help, knowledge, model, modeling, connection, tenant, live connection, s/4hana, s4, hana, cloud, ina role, prerequisite, saml, custom saml user mapping, username, login name, s/4hana cloud, connection, OAuth, issuer, communication, system
 


, KBA , LOD-ANA-LDC-HAN , SAC Live Data Connection HANA , Problem

Product

SAP Analytics Cloud all versions