Articles in this section
Category / Section

How do I resolve the error "Uncaught ReferenceError: BoldBI is not defined" when running embedded dashboard after upgrade to v5.3 or higher?

Published:
Issue

After upgrading the Bold BI to v5.3 or higher, you may encounter the error Uncaught ReferenceError: BoldBI is not defined when running the embedded dashboard application.

image.png

Cause

The Embed SDK script file embed-js.js has been renamed to boldbi-embed.js. Due to this, the existing script reference becomes invalid leading to this error.

Solution

Change the script reference from the below one,

<head>
<script type="text/javascript" src=https://cdnjs.cloudflare.com/ajax/libs/jquery/1.10.2/jquery.min.js></script>​
<script type="text/javascript" src=https://cdnjs.cloudflare.com/ajax/libs/jquery-easing/1.3/jquery.easing.min.js></script>
<script type="text/javascript" src=https://code.jquery.com/ui/1.12.1/jquery-ui.js></script>
​ <script type="text/javascript" src=https://cdnjs.cloudflare.com/ajax/libs/jsrender/1.0.0-beta/jsrender.min.js></script>
<script type="text/javascript" src=https://cdn.boldbi.com/embedded-sdk/v5.2.48/embed-js.js></script>
</head> 

to the below one.

<head> 
<script type="text/javascript" src=https://cdn.boldbi.com/embedded-sdk/v5.3.53/boldbi-embed.js></script>
</head>
  1. In the above script reference (when comparing with the previous code snippet), you may observe that, the dependent file references were removed as they no longer need to be referred from v5.3.53. In case of Bold BI versions 5.2 or earlier, it is mandatory to incorporate the dependent files into the view page of the embedding application.
  2. Make sure the Embed SDK CDN version in the script reference is same as that of Bold BI server.
Was this article useful?
Like
Dislike
Help us improve this page
Please provide feedback or comments
RC
Written by Rajadurai C
Updated
Comments (0)
Please  to leave a comment
Access denied
Access denied