Symptom
- SAP HANA Multi-Dimensional Services (MDS) is used to process multidimensional queries including aggregation, transformation and calculation in SAP Analytics Cloud (SAC).
- Through HANA MDS, queries are translated into a SAP HANA calculation engine execution plan or SQL, which is executed by the HANA core engines (see SAP Note 2670064).
- SAC will send MDS queries through HTTP/HTTPS requests to this service to get a response for live data connections.
- How to extract the MDS query as well as the response from HTTP/HTTPS trace?
- How to execute the MDS query to reproduce the problem in HANA in order to troubleshoot a SAC Live HANA issue?
Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental.
Environment
- SAP Analytics Cloud (Enterprise)
- SAP HANA
Service package HANA revision HANA 1.0 SPS 12 122.12 HANA 2.0 SPS 01 12.02 HANA 2.0 SPS 02 21.00 all subsequent releases - Live data connection
Resolution
Extract the MDS query/response
- Log on to SAP Analytics Cloud using Google Chrome.
- Open the Developer Tools from Chrome browser by pressing F12 key
- Go to the Network tab from the window
- Reproduce the issue based on Live HANA connection/model in SAC.
- Type GetResponse in the filter of Network window.
- Click the Header tab and click the view source button for Request Payload to see the raw MDS query (see more detail from SAP Note 2838921).
=> If there are multiple GetResponse entries, check the Response tab to see which one is with the error.
=> You may also copy the response from the Response tab. - Metadata Use case (Screen shots need updated to match Analytics Use Case below)
- Analytic Use Case
- Select the Payload tab then select View Source:
- Select Show More to display the MDS query:
Execute the MDS query in HANA
- Open SAP HANA SQL Editor in SAP HANA Studio or SAP HANA Web IDE.
- Connect to the SAP HANA System in the SQL Editor.
- Call the EXECUTE_MDS procedure to execute the MDX query extracted from HTTP/HTTPS request above (see more detail from SAP Note 2691501 & 2550833).
Analytic Use Case CALL SYS.EXECUTE_MDS('Analytics', '', '', '', '',
'<insert MDS query here>' , ?);Example:
CALL SYS.EXECUTE_MDS('Analytics', '', '', '', '',
'{
"Analytics": {
"Language": "en",
"Definition": ...
}
}' , ?);Metadata Use case CALL SYS.EXECUTE_MDS('Metadata', '', '', '', '',
'<insert MDS query here>' , ?);CALL SYS.EXECUTE_MDS('Metadata', '', '', '', '',
'{
"Metadata": {
... details ...
}
}
}' , ?); - Check Out and also Performance Data.
- If same error/data or slow performance can be found there, open or route an case on the components HAN-DB-ENG-MDS or HAN-AS-INA-SVC.
- If it is Wrong Data / Incorrect result returned to SAC, it is hard to find it in the Out session of execution result above.
In this case, you can enable HANA DB trace and then check the result from generated trace file (indexserver[...]_mds.trc) according to the steps suggested in SAP Note 2691501 >> 2.1. Wrong Data / Incorrect result or specific Error message returned during query execution.
See Also
- 2072341 - How do I export the definition of a HANA View and send it to SAP?
- 2308525 - SAP HANA DB: SAP Support Mode Export
- 2670064 - FAQ: SAP HANA Multi-Dimensional Services (MDS)
- 2511489 - Troubleshooting performance issues in SAP Analytics Cloud
- 2591655 - Performance analysis when using SAP HANA Live Data Connections in SAP Analytics Cloud
- Troubleshooting Multi-Dimensional Services (MDS) Queries (SAP HANA Platform online help)
- 2444261 - Versioning and delivery strategy of the SAP HANA EPM-MDS component
- 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.com/search?q=site%3Ahttps%3A%2F%2Fuserapps.support.sap.com+SAP+Analytics+Cloud
- https://www.bing.com/search?q=site%3Ahttps%3A%2F%2Fuserapps.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
query, InA, SAP Cloud for Planning, live, remote, sc4p, c4p, cforp, cloudforplanning,Cloud for Planning, EPM-ODS, Cloud for Analytics, C4P, Cloud4Analytics, CloudforAnalytics, Cloud 4 Planning, HCP, C4A, BOC, SAPBusinessObjectsCloud, BusinessObjectsCloud, BOBJ, BOBJcloud, BOCloud., BICloud, BO Cloud, SBOC, SAC, SAP BusinessObjects Cloud, Business Objects, SAC, SAP AC, Cloud-Analytics, CloudAnalytics, SAPCloudAnalytics, trace, mds, ina, CORS, debug, Live data source is showing different results in SAC compared to the data source, 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 epm, business intelligence, , KBA , memory error when calling from sac , unable to retrieve data from data source , hana cannot allocate enough memory error , LOD-ANA-LDC-HAN , SAC Live Data Connection HANA , LOD-ANA-PL , Planning , LOD-ANA-BR , SAC Boardroom , LOD-ANA-DES , Story Design & Visualizations , How To