SAP Knowledge Base Article - Public

3791244 - Variables are not saved in a Bookmark in SAP Analytics Cloud

Symptom

  • Script variables are not restored when loading a bookmark in an SAP Analytics Cloud story.
  • After loading a bookmark, script variables contain a value of null despite having been correctly populated at the time the bookmark was saved.

Environment

SAP Analytics Cloud 2026.8.10

Cause

This is expected product behavior. By default, SAP Analytics Cloud does not persist dynamic variable values, including script variables, into bookmarks. The story must be explicitly configured to enable this behavior.

The relevant setting is named "Override default variable settings" and is found in Story Details, under the Bookmark Settings section. When this setting is not enabled, the bookmark save operation may appear to succeed, and variable values may be correctly populated at save time, but upon loading the bookmark, the variables are not restored and will return null or their default initialized value.

Resolution

To enable script variable values to be persisted and restored via bookmarks, the following settings must be configured at design time.

  1. Open the story in Edit mode.
  2. Navigate to Story Details (top menu > Story Details).
  3. Scroll to the Bookmark Settings section.
  4. Enable "Override default variable settings".
  5. Enable "Keep last saved values for dynamic variables".
  6. Save the story.

Important: Re-save existing bookmarks.

Additional Information

The "Enable viewers to modify settings" option, when enabled, allows story viewers to choose at save time whether to include dynamic variable values in their bookmark, giving end users control over the behavior.

See Also

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

Keywords

bookmark, script variable, variable not restored, variable null after bookmark load, bookmark not persisting variables, override default variable, settings, keep last saved values, dynamic variables bookmark, bookmark settings story details, changed state bookmark, onInitialization null, SAC, bookmark configuration, story bookmark setup, variable state not saved, bookmark variable lost, primitive variable bookmark, script, variable bookmark SAC. , KBA , LOD-ANA-DES , Story Design & Visualizations , LOD-ANA-ADM , SAC Administration , How To

Product

SAP Analytics Cloud 1.0