SAP Knowledge Base Article - Public

2933072 - Error We couldn't connect to your HANA system. Possible causes: Third-party cookies are blocked, or CORS is not configured correctly happens when creating live HANA connection in SAP Analytics Cloud (SAC)

Symptom

We couldn't connect to your HANA system. Possible causes: Third-party cookies are blocked, or CORS is not configured correctly. For more information, see our troubleshooting page.

Environment

  • SAP Analytics Cloud (SAC)
  • SAP HANA HDI in SAP Cloud Platform Cloud Foundry (live)

Reproducing the Issue

  1. Configure SAP HANA HDI in SAP Cloud Platform Cloud Foundry (live).
  2. Create live HANA connection in both SAC system A and SAC system B using the same connection information.
  3. In SAC system A, the live HANA connection is working.
  4. In SAC system B, error below happens when creating the live HANA connection:

    We couldn't connect to your HANA system. Possible causes: Third-party cookies are blocked, or CORS is not configured correctly.
    For more information, see our troubleshooting page.

Cause

Host of SAC system B is not configured in the allowedOrigin part of YAML file.

Details in the step 3 of guided playlists below:
https://www.sapanalytics.cloud/guided_playlists/sap-hana-hdi-in-sap-cloud-platform-cloud-foundry-live/

CORS: >
[
      {
               "uriPattern": "^/sap/bc/ina/(.*)$",
               "allowedOrigin": [
                                              {"host":"<orca-tenant-host>", "protocol":"https"}
                                       ],
               "allowedMethods": ["GET", "POST", "HEAD", "OPTIONS", "PUT", "DELETE"],
               "allowedHeaders": ["Origin", "Accept", "X-Requested-With", "Content-Type", "Access-Control-Request-Method", "Access-Control-Request-Headers", "Authorization", "X-Sap-Cid", "X-Csrf-Token"],
               "exposeHeaders": ["Accept", "Authorization", "X-Requested-With", "X-Sap-Cid", "Access-Control-Allow-Origin", "Access-Control-Allow-Credentials", "X-Csrf-Token", "Content-Type"]
      }

]

Resolution

Add the host of system B to the allowedOrigin part of YAML file as well.
The format of multiple hosts maintained as sample below:

"allowedOrigin": [ {"host":"<host of your SAP Analytics Cloud tenant A>", "protocol":"https"},

                          {"host":"<host of your SAP Analytics Cloud tenant B>", "protocol":"https"}]

See Also

Your feedback is important to help us improve our knowledge base.

Keywords

SAP Cloud for Planning, sc4p, c4p, cforp, cloudforplanning, EPM-ODS, Cloud for Analytics, Cloud4Analytics, CloudforAnalytics, Cloud 4 Planning, BOC, SAPBusinessObjectsCloud, BusinessObjectsCloud, BOBJcloud, BOCloud., SAC, SAP AC, Cloud-Analytics, CloudAnalytics, SAPCloudAnalytics, HANA, live, service, third, party, cookies, CORS, fail, failed, create, connections , KBA , LOD-ANA-LDC-HAN , SAC Live Data Connection HANA , Problem

Product

SAP Analytics Cloud 1.0