SAP Knowledge Base Article - Public

3464317 - How to check the query information used in the import job of model in SAP Analytics Cloud (SAC)

Symptom

The query name used in the import job is not the actual query in the data source, e.g. in the following screenshot, "SAC_QUERYQuery" is the query name used inside SAC, not the actual query name in data source:

How to check the query information used in the import job of a model in SAC?

Environment

  • SAP Analytics Cloud (Enterprise)

Resolution

The query information can be found by following below steps, the data source used in the example is the SAP internal test data source from HANA database:

  1. Go to Data Management work space in the model.
  2. Select the import job.
  3. Open the Chrome or Edge Browser Developer Tools from the menu (under Settings and more (...) > More tools > Developer tools) or by pressing Ctrl + Shift + I (or the F12 function key).
  4. Switch to the network tab in the Developer Tools window.
  5. Click the Edit Query option in SAC.
  6. Select the entry in network tab of Chrome developer tool, of which request URL is "https://<SAC host>/sap/fpa/services/rest/fpa/dataAcquisition/v1/queries/<query ID>?&tenant=1&_=<Epoch Timestamp in millisecond>"
  7. Click Preview or Response, the query information can be found like query name, variables and selected objects:
    {
        "queryId": "<query ID>",
        "name": "SAC_QUERYQuery",
        "definition": "{\"queryInfo\":{\"name\":\"SAC_QUERY\",\"objectType\":\"ENTITY\",\"columnObject\":\"\\\"_SYS_BIC\\\".\\\"efashion/SAC_QUERY\\\"\",\"catalogName\":\"efashion\",\"cubeName\":\"SAC_QUERY\",\"cubeDescription\":\"CV_SALES\",\"viewType\":\"CalculationView\",\"variables\":{\"City\":[{\"function\":\"EQUAL\",\"arguments\":[\"Los Angeles\"],\"useBackendDefault\":false,\"attribute\":\"CITY\"}]},\"prompts\":{},\"columns\":[\"CITY\",\"QUANTITY_SOLD\",\"YR\"],\"filters\":{\"treeOperator\":\"AND\",\"operands\":[],\"nodeId\":2,\"version\":1}}}",
        "connectionId": "<connection ID>",
        "createTime": "<create time>"
    }

See Also

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

Keywords

query, SAC, how to, source query , KBA , LOD-ANA-AQU , Import Data Connections (Acquiring Data) , Problem

Product

SAP Analytics Cloud all versions

Attachments

Pasted image.png