SAP Knowledge Base Article - Preview

3645057 - application.settheme(id) fails in story scripts in sap analytics cloud

Symptom

  • The "Application.setTheme(themeId)" function may fail when called in the onInitialization script of an ODE story.
  • In stories based on other models or with the same model under other conditions the same script call may work as expected
  • The error message observed in the console log is: "Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'toString')."
  • Error may block execution of other script functions or story features and therefore block the display of the story.


Read more...

Environment

  • SAP Analytics Cloud 2025.14.8

Product

SAP Analytics Cloud all versions

Keywords

application.settheme, onInitialization, live data model, acquired data model, sap analytics cloud, theme application failure, console error, cannot read properties of undefined, story cache, unified story theme. , KBA , LOD-ANA-UNS-THM , Unified Story Theme , LOD-ANA-DES , Story Design & Visualizations , LOD-ANA-AD , Analytics Designer , 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.