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
- Configure Bookmark Settings and Use Related APIs (Optimized) | SAP Help Portal
- Bookmark and Share Story Views | SAP Help Portal
- KBA 2569847 - Where can you find SAC user assistance (help) to use, configure, and operate it more effectively?
- KBA 2487011 - What information do I need to provide when opening a case for SAP Analytics Cloud?
- KBA 2511489 - Troubleshooting performance issues in SAP Analytics Cloud
- SAP Analytics Cloud Connection Guide
- SAP Analytics Cloud Get More Help and SAP Support
- Need More Help? Contact Support
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
SAP Knowledge Base Article - Public