<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: TypeError: Cannot read properties of undefined (reading 'tokenType') in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/TypeError-Cannot-read-properties-of-undefined-reading-tokenType/m-p/3985279#M53304</link>
    <description>&lt;P&gt;facing the same issue, btw how did you see those internal functions.&lt;/P&gt;</description>
    <pubDate>Tue, 11 Jun 2024 07:28:23 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-06-11T07:28:23Z</dc:date>
    <item>
      <title>TypeError: Cannot read properties of undefined (reading 'tokenType')</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/TypeError-Cannot-read-properties-of-undefined-reading-tokenType/m-p/3983570#M53285</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We recently started have issues loading some Embedded PowerBI embedded dashboards.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;TypeError: Cannot read properties of undefined (reading 'tokenType')&lt;BR /&gt;    at isSaaSEmbedWithAADToken (reportEmbed?reportId…d&amp;amp;uid=cslgcq:586:38)&lt;BR /&gt;    at getModelsAndExploration (reportEmbed?reportId…d&amp;amp;uid=cslgcq:696:17)&lt;BR /&gt;    at getModelsAndExplorationAndConceptualSchema (reportEmbed?reportId…3d&amp;amp;uid=cslgcq:840:9)&lt;BR /&gt;    at xhr.onreadystatechange (reportEmbed?reportId…d&amp;amp;uid=cslgcq:505:37)&lt;BR /&gt;    getModelsAndExploration @ reportEmbed?reportId…0%3d&amp;amp;uid=cslgcq:739&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is an Stack Overflow user reporting the exact same issue, from 2 days ago. He took a look into the implementation and even found the source of the bug.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/78592107/typeerror-cannot-read-properties-of-undefined-reading-tokentype" target="_blank" rel="noopener"&gt;https://stackoverflow.com/questions/78592107/typeerror-cannot-read-properties-of-undefined-reading-tokentype&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The exception is coming from the lack of a "config" parameter when calling the internal&amp;nbsp;&lt;FONT face="andale mono,times"&gt;isSaaSEmbedWithAADToken&lt;/FONT&gt; function.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is affecting our users because their dashboards fail to be displayed correctly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there anything that can be done on our side?&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2024 12:42:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/TypeError-Cannot-read-properties-of-undefined-reading-tokenType/m-p/3983570#M53285</guid>
      <dc:creator>OnSignTV</dc:creator>
      <dc:date>2024-06-10T12:42:18Z</dc:date>
    </item>
    <item>
      <title>Re: TypeError: Cannot read properties of undefined (reading 'tokenType')</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/TypeError-Cannot-read-properties-of-undefined-reading-tokenType/m-p/3984618#M53295</link>
      <description>&lt;P style="margin: 0in; font-family: tahoma; font-size: 11.0pt;"&gt;Hi &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/757333"&gt;@OnSignTV&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: tahoma; font-size: 11.0pt;"&gt;Can you please share some more detail information about this issue? They should help us clarify your scenario and test to troubleshoot.&lt;/P&gt;
&lt;P style="margin: 0in; font-family: tahoma; font-size: 11.0pt;"&gt;&lt;A href="http://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;How to Get Your Question Answered Quickly&amp;nbsp;&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: tahoma; font-size: 11.0pt;"&gt;Regards,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: tahoma; font-size: 11.0pt;"&gt;Xiaoxin Sheng&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2024 01:19:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/TypeError-Cannot-read-properties-of-undefined-reading-tokenType/m-p/3984618#M53295</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-11T01:19:28Z</dc:date>
    </item>
    <item>
      <title>Re: TypeError: Cannot read properties of undefined (reading 'tokenType')</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/TypeError-Cannot-read-properties-of-undefined-reading-tokenType/m-p/3984878#M53298</link>
      <description>&lt;P&gt;Hi there!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is a bug in the page returned by the "embed_url" of a dashboard.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you search for this function:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;function isSaaSEmbedWithAADToken(config) {&lt;BR /&gt;  // Default token type is Aad (0)&lt;BR /&gt;  const tokenType = config.tokenType || 0;&lt;BR /&gt;  return (window.isSaasOrPaasEmbed === true) &amp;amp;&amp;amp; (tokenType === 0);&lt;BR /&gt;}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You will see that there is one location where it is called without the required config parameter:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;if (isSaaSEmbedWithAADToken() &amp;amp;&amp;amp; config.settings &amp;amp;&amp;amp; config.settings.personalBookmarksEnabled) {&lt;BR /&gt;  url += "&amp;amp;defaultBookmarkEnabled=true";&lt;BR /&gt;}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Which causes this exception:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;TypeError: Cannot read properties of undefined (reading 'tokenType')&lt;BR /&gt;  at isSaaSEmbedWithAADToken (reportEmbed?reportId…d&amp;amp;uid=cslgcq:586:38)&lt;BR /&gt;  at getModelsAndExploration (reportEmbed?reportId…d&amp;amp;uid=cslgcq:696:17)&lt;BR /&gt;  at getModelsAndExplorationAndConceptualSchema (reportEmbed?reportId…3d&amp;amp;uid=cslgcq:840:9)&lt;BR /&gt;  at xhr.onreadystatechange (reportEmbed?reportId…d&amp;amp;uid=cslgcq:505:37)&lt;BR /&gt;  getModelsAndExploration @ reportEmbed?reportId…0%3d&amp;amp;uid=cslgcq:739&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All this happens inside the page returned by the embed_url, so it happens regardless of my code or how I initialize the client library.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So this seems to be an internal bug of PowerBI. One that was introduced fairly recently, because this exception did not happen a couple of weeks ago.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2024 03:20:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/TypeError-Cannot-read-properties-of-undefined-reading-tokenType/m-p/3984878#M53298</guid>
      <dc:creator>OnSignTV</dc:creator>
      <dc:date>2024-06-11T03:20:35Z</dc:date>
    </item>
    <item>
      <title>Re: TypeError: Cannot read properties of undefined (reading 'tokenType')</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/TypeError-Cannot-read-properties-of-undefined-reading-tokenType/m-p/3985279#M53304</link>
      <description>&lt;P&gt;facing the same issue, btw how did you see those internal functions.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2024 07:28:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/TypeError-Cannot-read-properties-of-undefined-reading-tokenType/m-p/3985279#M53304</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-11T07:28:23Z</dc:date>
    </item>
    <item>
      <title>Re: TypeError: Cannot read properties of undefined (reading 'tokenType')</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/TypeError-Cannot-read-properties-of-undefined-reading-tokenType/m-p/3986145#M53313</link>
      <description>&lt;P&gt;I am having the same issue and noticed at around the same time as the thread on stackoverflow was open. I also confirmed that this is also happening in previous versions of our software where it didn't happen before. My problem isn't as bad as your since I am using embed instead of aad, but it does seem like a problem on Microsofts side.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2024 13:13:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/TypeError-Cannot-read-properties-of-undefined-reading-tokenType/m-p/3986145#M53313</guid>
      <dc:creator>chaimite</dc:creator>
      <dc:date>2024-06-11T13:13:39Z</dc:date>
    </item>
    <item>
      <title>Re: TypeError: Cannot read properties of undefined (reading 'tokenType')</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/TypeError-Cannot-read-properties-of-undefined-reading-tokenType/m-p/3986769#M53317</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;From my investigation, I have found that the powerbi embed works as expected in chrome version 94 and onwards but fails in older version than that. The above error appears in all versions of chrome but the reports show up fine in version 94 and onwards in spite of the error.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2024 19:11:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/TypeError-Cannot-read-properties-of-undefined-reading-tokenType/m-p/3986769#M53317</guid>
      <dc:creator>sshrestha</dc:creator>
      <dc:date>2024-06-11T19:11:15Z</dc:date>
    </item>
    <item>
      <title>Re: TypeError: Cannot read properties of undefined (reading 'tokenType')</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/TypeError-Cannot-read-properties-of-undefined-reading-tokenType/m-p/3988877#M53347</link>
      <description>&lt;P&gt;We are also having this issue. We run many devices on older chrome versions and this has affected quite a few clients. Updating webkit on devices where we are able to has resolved some issues. However, most clients are on below chrome 94 and are unable to update webkit.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2024 14:15:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/TypeError-Cannot-read-properties-of-undefined-reading-tokenType/m-p/3988877#M53347</guid>
      <dc:creator>isdanielfraser</dc:creator>
      <dc:date>2024-06-12T14:15:00Z</dc:date>
    </item>
    <item>
      <title>Re: TypeError: Cannot read properties of undefined (reading 'tokenType')</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/TypeError-Cannot-read-properties-of-undefined-reading-tokenType/m-p/3990626#M53388</link>
      <description>&lt;P&gt;We are experiencing the same issue; several screens with Power BI reports are affected. Hope Microsoft are able to fix this asap.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2024 08:43:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/TypeError-Cannot-read-properties-of-undefined-reading-tokenType/m-p/3990626#M53388</guid>
      <dc:creator>Chrissa</dc:creator>
      <dc:date>2024-06-13T08:43:05Z</dc:date>
    </item>
    <item>
      <title>Re: TypeError: Cannot read properties of undefined (reading 'tokenType')</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/TypeError-Cannot-read-properties-of-undefined-reading-tokenType/m-p/3991136#M53393</link>
      <description>&lt;P&gt;I'm having the same problem.&amp;nbsp; After this error occurrs, I then see numerous other 403 errors (see errors below).&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;All of this is recent and impacting both embedded PowerBI reports.&amp;nbsp; An updates on when this will be resolved and/or what we can do to resolve it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TypeError: Cannot read properties of undefined (reading 'tokenType')&lt;BR /&gt;at isSaaSEmbedWithAADToken&lt;BR /&gt;at getModelsAndExploration&lt;BR /&gt;at getModelsAndExplorationAndConceptualSchema&lt;BR /&gt;at startFrontLoadReportEmbed&lt;BR /&gt;at receiveMessage&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Failed to load resource: the server responded with a status of 403 ()&lt;BR /&gt;wabi-us-central-a-primary-redirect.analysis.windows.net/powerbi/metadata/models/5079221/?modelOptions=Default:1&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Failed to load resource: the server responded with a status of 403 ()&lt;BR /&gt;wabi-us-central-a-primary-redirect.analysis.windows.net/powerbi/metadata/models/5480624/?modelOptions=Default:1&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Failed to load resource: the server responded with a status of 403 ()&lt;BR /&gt;wabi-us-central-a-primary-redirect.analysis.windows.net/powerbi/metadata/models/5543953/?modelOptions=Default:1&lt;BR /&gt;&lt;BR /&gt;.... a couple dozen more appear like the ones above with different model numbers.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2024 13:03:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/TypeError-Cannot-read-properties-of-undefined-reading-tokenType/m-p/3991136#M53393</guid>
      <dc:creator>allenwilson</dc:creator>
      <dc:date>2024-06-13T13:03:39Z</dc:date>
    </item>
    <item>
      <title>Re: TypeError: Cannot read properties of undefined (reading 'tokenType')</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/TypeError-Cannot-read-properties-of-undefined-reading-tokenType/m-p/4033899#M54082</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/757333"&gt;@OnSignTV&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;I find the this issue is closed at github issue page. For this scenario, I'd like to suggest you try again to confirm if it fixed.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/microsoft/powerbi-client-angular/issues/66" target="_blank"&gt;TypeError: Cannot read properties of undefined (reading 'tokenType') · Issue #66 · microsoft/powerbi-client-angular · GitHub&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Xiaoxin Sheng&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jul 2024 07:12:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/TypeError-Cannot-read-properties-of-undefined-reading-tokenType/m-p/4033899#M54082</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-07-10T07:12:54Z</dc:date>
    </item>
    <item>
      <title>Re: TypeError: Cannot read properties of undefined (reading 'tokenType')</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/TypeError-Cannot-read-properties-of-undefined-reading-tokenType/m-p/4069755#M54443</link>
      <description>&lt;P&gt;Hi, I created a report in PBI about 13 days ago using the ArcGIS map visual. It has been published ok. Today when I try to update the source data, after I open the PBIX file, I cannot connect to the ArcGIS. If I click the "connect to ArcGIS" there is no response.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then I tested creating a new ArcGIS visual, however the login window will throw out this error message: error: cannot read properties of undefined (reading 'error').&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I even tried to uninstall and install the latest PBI, still the same issue. Please advise. Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2024 18:36:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/TypeError-Cannot-read-properties-of-undefined-reading-tokenType/m-p/4069755#M54443</guid>
      <dc:creator>fyang</dc:creator>
      <dc:date>2024-07-30T18:36:44Z</dc:date>
    </item>
  </channel>
</rss>

