SAP Knowledge Base Article - Public

3283605 - "Execution of a Firefly query failed unexpectedly: Caught exception 42460: The hierarchy doesn't exist" in SAP Analytics Cloud (SAC)

Symptom

  • Export of the model to a file fails with error in SAC.
  • Error message: "Execution of a Firefly query failed unexpectedly: Caught exception 42460: The hierarchy doesn't exist"
  • Error in browser trace (Developer Tools):

https://[SAC tenant URL]/sap/fpa/services/rest/fpa/dataintegration?action=getScheduleList&tenant=A

112:{scheduleId: "xxxxxxxxxxxxxxxxxxxxxxxxxxxx", description: "xxxxxxxxxxxxxxx", mappingId: null,…}

description: "xxxxxxxxxxxxxxx"
logDetail: "{\"exception\":\"Execution of a Firefly query failed unexpectedly: \\nCaught exception : exception 42460: The hierarchy doesn't exist : The hierarchy doesn't exist : hierarchyName=xxx, fieldName=[name of the field], dimensions=[ID, name] \\n\",\"fullException\":\"Execution of a Firefly query failed unexpectedly: \\nCaught exception : exception 42460: The hierarchy doesn't exist : The hierarchy doesn't exist : hierarchyName=xxx, fieldName=[name of the field], dimensions=[ID, name] \\n\",\"result\":\"\"}"

Environment

SAP Analytics Cloud (Enterprise) 2022.21.11

Reproducing the Issue

  1. Login to SAC.
  2. Open the Model.
  3. Select Workspace "Data Management".
  4. Select "Export Data".
  5. Select "Manage Existing Schedules".
  6. Double click on the export job with status "Failed".
  7. Select "Transform Log" on the left side.
  8. Check the error: "Execution of a Firefly query failed unexpectedly: Caught exception : exception 42460: The hierarchy doesn't exist"

Cause

Changes have been made to the model, so the saved export query cannot grab the correct data structure anymore.

Resolution

  • Create a new export job.
  • Based on the error detail for the failing export, the job failed to due dome change in the Model data itself.
  • In this specific case, the error is: Execution of a Firefly query failed unexpectedly: \Caught exception : exception 42460: The hierarchy doesn't exist : The hierarchy doesn't exist : hierarchyName=All, fieldName=Version.ID, dimensions=[Version.ID, Version]
  • Based on this, the issue was that hierarchy "All" no longer existed when the pre-defined query was being triggered.
  • The saved export query is based on Calculations and Fact Data. When / if any changes are made to the model, the export job will need to be recreated since the saved export query is no longer grabbing the correct data structure which is what happened in this case.
  • Then, when the job was re-created, the new query was created based on the new Model data and structure, therefore it worked again.

See Also

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

Keywords

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.saphttps://hanacloudservices.cloud.saphttps://cloudanalytics.accounts.ondemand.comhttps://hanacloudservices-us.accounts.ondemand.comhttps://www.sap.comhttps://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 , LOD-ANA-AQU , Import Data Connections (Acquiring Data) , Problem

Product

SAP Analytics Cloud 1.0