SAP Knowledge Base Article - Public

3728881 - SAC-Story occasionally freezes when the second variable prompt appears.

Symptom

  • When opening a planning story, it would occasionally freeze when the second variable prompt appears for a BW-Live model.
  • The issue occurs during the execution of the Page.onInitialization() script.
  • No error message is displayed in SAC, but browser console errors are logged.
  • Closing and reopening the story temporarily resolves the issue.
  • The issue does not occur strangely when the Developer tools are opened or during screen sharing sessions (via Teams).

Environment

  • SAP Analytics Cloud 2025.14.24 

Cause

There would be some timing problem during issue happens.

Resolution

Here are some workarounds :

  1. Turn off "Viewport loading" to use "None" for "Loading Optimization Settings" if possible
  2. If you need to use openPromptDialog() script API to prompt variable second time, then try either
    1. Always use openPromptDialog() script API to prompt both
    2. Or check "Automatically open prompt when story opens" option in prompt settings to let UI prompt both (or follow the way to prompt your first model by not using API)
  3. If you are using Pause Refresh feature, try to set tables to "Always Refresh
    Application.setRefreshPaused([Table_1.getDataSource(), Table_2.getDataSource()],false);
  4. Try  also to change to call widget level API instead of Application.setRefreshPaused :
    Table_1.getDataSource().setRefreshPaused(false)
    Table_2.getDataSource().setRefreshPaused(false)

    See Also

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

    Keywords

    KBA , LOD-ANA-UNS-SCR , Unified Story Scripting related Issues , Problem

    Product

    SAP Analytics Cloud all versions