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.
Environment
- SAP Analytics Cloud 2025.1.5
Cause
Widget instance may not be ready when executing script of a revisited page.
Resolution
- Fix on 2025.8 version patch (QRC2 Release)
- Workaround : Set "Always initialize at startup" to checked of widget "ComparisonScenario4" in page "ZZ", including its parent widget "PreviousPeriod4"(also set its "Always initialize at startup" to checked.)
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 a case for SAP Analytics Cloud?
- 2511489 - Troubleshooting performance issues in SAP Analytics Cloud
- Search for SAP Analytics Cloud content using SAP for Me, Google or Bing:
- https://me.sap.com/servicessupport/search#?q=SAP%20Analytics%20Cloud%20OR%20SAC&tab=All
- 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
onActive, dropdownBox, InstanceNotFound, Always initialize at startup , KBA , LOD-ANA-UNS-SCR , Unified Story Scripting related Issues , Problem
Product
SAP Analytics Cloud all versions