Symptom
When attempting to create a Live Data Connection (DIRECT) to SAP HANA, the following error messages can be observed;
- Failed to connect to system in SAP Analytics Cloud (SAC)
- Failed to load https://<HANAHOST>:<HANAPORT>/sap/bc/ina/service/v2/GetServerInfo: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.
- Origin 'https://<customer-prefix>.<data-center>.sapanalytics.cloud' is therefore not allowed access.
- GET https://<HANAHOST>:<HANAPORT>/sap/bc/ina/service/v2/GetServerInfo 401 (Unauthorized)
- Request URL: https://<HANAHOST>:<HANAPORT>/sap/bc/ina/service/v2/GetServerInfo
- Request Method: GET
- Status Code: 401 Unauthorized
- Remote Address: <HANAADDRESS>:<HANAPORT>
- Referrer Policy: no-referrer-when-downgrade
Environment
- SAP Analytics Cloud
- Live Data Connection (DIRECT) to SAP HANA
Reproducing the Issue
- Configure Live Data Connection to SAP HANA per https://help.sap.com/doc/00f68c2e08b941f081002fd3691d86a7/release/en-US/cc03773d7f554c4ebc9e29b4c2792e26.html
- When creating the Live Data Connection in SAP Analytics Cloud and notice the error
Cause
When adding the SAP Analytics Cloud Tenant URL to Allowed Origins in SAP HANA a trailing slash was included: https://<customer-prefix>.<data-center>.sapanalytics.cloud/
Resolution
- Log on to your SAP HANA XS Admin page (/sap/hana/xs/admin) as the System user or a user assigned to the following roles: sap.hana.xs.admin.roles::RuntimeConfAdministrator and sap.hana.xs.admin.roles::SAMLViewer
- Go to the XS Artifact Administration panel and navigate to sap.bc.ina.service.v2
- Select the sap.bc.ina.service.v2 package, switch to the CORS pane
- Click "Edit"
- Select the Allowed Origins entry with the trailing slash
- Click "Delete"
- Click "Add"
- Enter the SAP Analytics Cloud tenant URL without the trailing slash: https://<customer-prefix>.<data-center>.sapanalytics.cloud
- Click "Add"
- Click "Save"
- Click "OK"
See Also
- 2569847 - Where can you find SAC user assistance (help) to use, configure, and operate it more effectively?
- Have a question? Ask it here and let our amazing SAP community help! Or reply and share your knowledge!
- 2487011 - What information do I need to provide when opening an case for SAP Analytics Cloud?
- 2511489 - Troubleshooting performance issues in SAP Analytics Cloud
- Search for SAP Analytics Cloud content using Google or Bing:
- https://www.google.ca/search?q=site%3Ahttps%3A%2F%2Fapps.support.sap.com+SAP+Analytics+Cloud
- https://www.bing.com/search?q=site%3Ahttps%3A%2F%2Fapps.support.sap.com+SAP+Analytics+Cloud
- Note: Add relevant text or warning/error messages to the text search field to filter results.
- SAP Analytics Cloud Connection Guide
- Getting Started with SAP Analytics Cloud Expert Community page
- SAP Analytics Cloud Get More Help and SAP Support
- Need More Help? Contact Support or visit the solution finder today!
Your feedback is important to help us improve our knowledge base.
Keywords
Cloud for Analytics, Cloud4Analytics, CloudforAnalytics, BOC, SAPBusinessObjectsCloud, BusinessObjectsCloud, BOBJcloud, BOCloud., SAC, SAP AC, Cloud-Analytics, CloudAnalytics, SAPCloudAnalytics, HANA, 401, 403, unauthorized, origin, allowed, access, 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, https://hcs.cloud.sap, https://hanacloudservices.cloud.sap, https://cloudanalytics.accounts.ondemand.com, https://hanacloudservices-us.accounts.ondemand.com, https://www.sap.com, https://help.sap.com, 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 , SAP Analytics Cloud (SAC) , LOD-ANA-BI , Business Intelligence Functionality, Analytic Models , LOD-ANA-PL , Planning , LOD-ANA-BR , SAC Boardroom , LOD-ANA-PR , SAC Predictive , Problem