SAP Knowledge Base Article - Preview

3599775 - ODE Story : Fast page switch leads to failing onActive error

Symptom

  • After opening the Story and wait until the first page is loaded, go to page XX and then go to page ZZ and quickly back to page XX and quickly back to the ZZ page again, the error occurs:
  • Script execution failed for event "PageZZ.onActive"
    Correlation ID: 24308804-8813-4563-a454-534551111053
  • In the console, we can see the error 
    [FailedAction - Action: SET_SELECTEDVALUE@[{"app":"MAIN_APPLICATION"},{"story":"storyID"},{"dropdownBox":"e0715fa9-0510-4d63-a123-3ed096eee77f"}] - Error: Store.InstanceNotFound/Can not execute action "SET_SELECTEDVALUE" against instance [{"app":"MAIN_APPLICATION"},{"story":"storyID"},{"dropdownBox":"e0715fa9-0510-4d63-a123-3ed096eee77f"}] which doesn't exist.] 
  • It only happens if you switch Pages fast and it can happen on any page switch. 
  • In the onActive Event, a function switchPages() is called, which transfers the selection of a page filter between pages. In this case we try to set the selection in the dropdownbox TimeScenario4. We get the reference to the drop down widget in the switchPages() function by calling 
  • var Time_selection = currentPage.getWidgets({searchPattern: "TimeScenario", type: WidgetType.Dropdown})[0];
  • We checked with console.log(Time_selection); and this writes TimeScenario4 correctly in the console so it proves that this currentPage.getWidgets works correctly.
  • It seems to be a Timing issues that the Widget is not fully available at the time we try to set the selection.
  • If you switch the pages slowly, it always works fine. 


Read more...

Environment

  • SAP Analytics Cloud 2025.1.5

Product

SAP Analytics Cloud all versions

Keywords

onActive, dropdownBox, InstanceNotFound, Always initialize at startup , KBA , LOD-ANA-UNS-SCR , Unified Story Scripting related Issues , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.