<?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 PowerBIIntegration.Refresh() - Solution to Invocation of unknown or unsupported function error in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/PowerBIIntegration-Refresh-Solution-to-Invocation-of-unknown-or/m-p/822477#M21158</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;For those who may have tried to implement the &lt;STRONG&gt;PowerBIIntegration.Refresh()&lt;/STRONG&gt; method in &lt;STRONG&gt;PowerApps&lt;/STRONG&gt; and may still wonder wonder why the option was not available and probably encountered a similar error&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="UnsupportedFunction.png" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/201527iADDB07CC0B9B1A7A/image-size/large?v=v2&amp;amp;px=999" role="button" title="UnsupportedFunction.png" alt="UnsupportedFunction.png" /&gt;&lt;/span&gt;&lt;BR /&gt;I felt like providing a very subtle but working solution.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;First before going any further in my statements, perhaps it should be important to remind that the &lt;STRONG&gt;PowerApps&lt;/STRONG&gt; visualization is no longer categorized as a &lt;STRONG&gt;"custom"&lt;/STRONG&gt; visual... but has now been fully integrated in &lt;STRONG&gt;Power BI Desktop October 2019&lt;/STRONG&gt; edition.&amp;nbsp;&lt;/P&gt;&lt;P&gt;So if you installed the latest &lt;STRONG&gt;Power BI Desktop October 2019&lt;/STRONG&gt; version, then it should be displayed as followed in default &lt;STRONG&gt;Visualizations&lt;/STRONG&gt; panel.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="VisualizationPanel.png" style="width: 281px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/201528iC360DC9F3974FA84/image-size/large?v=v2&amp;amp;px=999" role="button" title="VisualizationPanel.png" alt="VisualizationPanel.png" /&gt;&lt;/span&gt;&lt;BR /&gt;Please note that you first have to establish an active connection in order to see the &lt;STRONG&gt;PowerApps&lt;/STRONG&gt; icon displayed in &lt;STRONG&gt;Visualizations&lt;/STRONG&gt; &lt;STRONG&gt;Panel&lt;/STRONG&gt;... otherwise it may not be displayed. So don't panick if you have to work offline...&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;So for the sake of testing, I tried to replicate a similar &lt;STRONG&gt;PowerApps - Power BI Integration s&lt;/STRONG&gt;cenario as the one shown by &lt;STRONG&gt;Charles Sterling&lt;/STRONG&gt; in the following video&amp;nbsp;&lt;A href="https://www.youtube.com/watch?v=3eiUR8Lo4i4" target="_self"&gt;PowerApps custom visual for Power BI V2&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;and see what I could come up with.&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;1) I first created a very simple report on&amp;nbsp;&lt;STRONG&gt;&lt;SPAN&gt;Power BI Desktop&lt;/SPAN&gt;&lt;/STRONG&gt;&amp;nbsp;and connected it to an&amp;nbsp;&lt;STRONG&gt;&lt;SPAN&gt;Azure SQL Database&lt;/SPAN&gt;&lt;/STRONG&gt;&amp;nbsp;in&amp;nbsp;&lt;STRONG&gt;&lt;SPAN&gt;DirectQuery&lt;/SPAN&gt;&lt;/STRONG&gt;&amp;nbsp;mode.&lt;BR /&gt;2) I then added a&amp;nbsp;&lt;STRONG&gt;PowerApps&lt;/STRONG&gt;&amp;nbsp;visualization in the&amp;nbsp;&lt;STRONG&gt;Power BI Desktop&lt;/STRONG&gt;&amp;nbsp;report. When prompted to select either an existing&lt;BR /&gt;&amp;nbsp; &amp;nbsp; app or create a brand new one, I chose the&lt;STRONG&gt; 2nd&lt;/STRONG&gt; option allowing me to create a brand &lt;STRONG&gt;new&lt;/STRONG&gt; one "&lt;STRONG&gt;all-from-scratch&lt;/STRONG&gt;".&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; I also used the very&amp;nbsp;same&amp;nbsp;&lt;STRONG&gt;Azure SQL Database&lt;/STRONG&gt;&amp;nbsp;as&amp;nbsp;&lt;STRONG&gt;Data Source&lt;/STRONG&gt;.&lt;BR /&gt;3) I then wanted to add the&amp;nbsp;&lt;STRONG&gt;PowerBI&amp;nbsp;PowerBIIntegration.Refresh()&lt;/STRONG&gt;&amp;nbsp;method to&amp;nbsp;&lt;STRONG&gt;OnSelect()&lt;/STRONG&gt;&amp;nbsp;option as displayed in the video,&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; though I ended up with an&amp;nbsp;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;"Invocation of unknown or unsupported function"&lt;/FONT&gt;&lt;/STRONG&gt;&amp;nbsp;error... Hummmm &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So what might have gone wrong you may ask? The answer was pretty subtle in my case... If you watch carefully in the video, the &lt;STRONG&gt;PowerApps&lt;/STRONG&gt; &lt;STRONG&gt;visual integration step&lt;/STRONG&gt; is &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;NOT&lt;/STRONG&gt;&lt;/FONT&gt; executed on &lt;STRONG&gt;Power BI Desktop&lt;/STRONG&gt; but on &lt;STRONG&gt;Power BI Online.&lt;/STRONG&gt;..&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;So I chose to execute the &lt;STRONG&gt;2nd PowerApps integration step &lt;FONT color="#FF0000"&gt;NOT&lt;/FONT&gt;&lt;/STRONG&gt; from&amp;nbsp;&lt;STRONG&gt;Power BI Desktop&lt;/STRONG&gt; but from published report on&amp;nbsp;&lt;STRONG&gt;Power BI Online.&lt;/STRONG&gt; Then voila... everything worked as expected. Hmmm okay then...&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="OnSelectRevisited.png" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/201529i3D328946B795F8D6/image-size/large?v=v2&amp;amp;px=999" role="button" title="OnSelectRevisited.png" alt="OnSelectRevisited.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Hope this will help others coping with the&amp;nbsp; &lt;SPAN&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;"Invocation of unknown or unsupported function"&amp;nbsp;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;enigma...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 19 Oct 2019 19:27:45 GMT</pubDate>
    <dc:creator>denyschamberlan</dc:creator>
    <dc:date>2019-10-19T19:27:45Z</dc:date>
    <item>
      <title>PowerBIIntegration.Refresh() - Solution to Invocation of unknown or unsupported function error</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/PowerBIIntegration-Refresh-Solution-to-Invocation-of-unknown-or/m-p/822477#M21158</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;For those who may have tried to implement the &lt;STRONG&gt;PowerBIIntegration.Refresh()&lt;/STRONG&gt; method in &lt;STRONG&gt;PowerApps&lt;/STRONG&gt; and may still wonder wonder why the option was not available and probably encountered a similar error&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="UnsupportedFunction.png" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/201527iADDB07CC0B9B1A7A/image-size/large?v=v2&amp;amp;px=999" role="button" title="UnsupportedFunction.png" alt="UnsupportedFunction.png" /&gt;&lt;/span&gt;&lt;BR /&gt;I felt like providing a very subtle but working solution.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;First before going any further in my statements, perhaps it should be important to remind that the &lt;STRONG&gt;PowerApps&lt;/STRONG&gt; visualization is no longer categorized as a &lt;STRONG&gt;"custom"&lt;/STRONG&gt; visual... but has now been fully integrated in &lt;STRONG&gt;Power BI Desktop October 2019&lt;/STRONG&gt; edition.&amp;nbsp;&lt;/P&gt;&lt;P&gt;So if you installed the latest &lt;STRONG&gt;Power BI Desktop October 2019&lt;/STRONG&gt; version, then it should be displayed as followed in default &lt;STRONG&gt;Visualizations&lt;/STRONG&gt; panel.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="VisualizationPanel.png" style="width: 281px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/201528iC360DC9F3974FA84/image-size/large?v=v2&amp;amp;px=999" role="button" title="VisualizationPanel.png" alt="VisualizationPanel.png" /&gt;&lt;/span&gt;&lt;BR /&gt;Please note that you first have to establish an active connection in order to see the &lt;STRONG&gt;PowerApps&lt;/STRONG&gt; icon displayed in &lt;STRONG&gt;Visualizations&lt;/STRONG&gt; &lt;STRONG&gt;Panel&lt;/STRONG&gt;... otherwise it may not be displayed. So don't panick if you have to work offline...&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;So for the sake of testing, I tried to replicate a similar &lt;STRONG&gt;PowerApps - Power BI Integration s&lt;/STRONG&gt;cenario as the one shown by &lt;STRONG&gt;Charles Sterling&lt;/STRONG&gt; in the following video&amp;nbsp;&lt;A href="https://www.youtube.com/watch?v=3eiUR8Lo4i4" target="_self"&gt;PowerApps custom visual for Power BI V2&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;and see what I could come up with.&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;1) I first created a very simple report on&amp;nbsp;&lt;STRONG&gt;&lt;SPAN&gt;Power BI Desktop&lt;/SPAN&gt;&lt;/STRONG&gt;&amp;nbsp;and connected it to an&amp;nbsp;&lt;STRONG&gt;&lt;SPAN&gt;Azure SQL Database&lt;/SPAN&gt;&lt;/STRONG&gt;&amp;nbsp;in&amp;nbsp;&lt;STRONG&gt;&lt;SPAN&gt;DirectQuery&lt;/SPAN&gt;&lt;/STRONG&gt;&amp;nbsp;mode.&lt;BR /&gt;2) I then added a&amp;nbsp;&lt;STRONG&gt;PowerApps&lt;/STRONG&gt;&amp;nbsp;visualization in the&amp;nbsp;&lt;STRONG&gt;Power BI Desktop&lt;/STRONG&gt;&amp;nbsp;report. When prompted to select either an existing&lt;BR /&gt;&amp;nbsp; &amp;nbsp; app or create a brand new one, I chose the&lt;STRONG&gt; 2nd&lt;/STRONG&gt; option allowing me to create a brand &lt;STRONG&gt;new&lt;/STRONG&gt; one "&lt;STRONG&gt;all-from-scratch&lt;/STRONG&gt;".&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; I also used the very&amp;nbsp;same&amp;nbsp;&lt;STRONG&gt;Azure SQL Database&lt;/STRONG&gt;&amp;nbsp;as&amp;nbsp;&lt;STRONG&gt;Data Source&lt;/STRONG&gt;.&lt;BR /&gt;3) I then wanted to add the&amp;nbsp;&lt;STRONG&gt;PowerBI&amp;nbsp;PowerBIIntegration.Refresh()&lt;/STRONG&gt;&amp;nbsp;method to&amp;nbsp;&lt;STRONG&gt;OnSelect()&lt;/STRONG&gt;&amp;nbsp;option as displayed in the video,&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; though I ended up with an&amp;nbsp;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;"Invocation of unknown or unsupported function"&lt;/FONT&gt;&lt;/STRONG&gt;&amp;nbsp;error... Hummmm &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So what might have gone wrong you may ask? The answer was pretty subtle in my case... If you watch carefully in the video, the &lt;STRONG&gt;PowerApps&lt;/STRONG&gt; &lt;STRONG&gt;visual integration step&lt;/STRONG&gt; is &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;NOT&lt;/STRONG&gt;&lt;/FONT&gt; executed on &lt;STRONG&gt;Power BI Desktop&lt;/STRONG&gt; but on &lt;STRONG&gt;Power BI Online.&lt;/STRONG&gt;..&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;So I chose to execute the &lt;STRONG&gt;2nd PowerApps integration step &lt;FONT color="#FF0000"&gt;NOT&lt;/FONT&gt;&lt;/STRONG&gt; from&amp;nbsp;&lt;STRONG&gt;Power BI Desktop&lt;/STRONG&gt; but from published report on&amp;nbsp;&lt;STRONG&gt;Power BI Online.&lt;/STRONG&gt; Then voila... everything worked as expected. Hmmm okay then...&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="OnSelectRevisited.png" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/201529i3D328946B795F8D6/image-size/large?v=v2&amp;amp;px=999" role="button" title="OnSelectRevisited.png" alt="OnSelectRevisited.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Hope this will help others coping with the&amp;nbsp; &lt;SPAN&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;"Invocation of unknown or unsupported function"&amp;nbsp;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;enigma...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 19 Oct 2019 19:27:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/PowerBIIntegration-Refresh-Solution-to-Invocation-of-unknown-or/m-p/822477#M21158</guid>
      <dc:creator>denyschamberlan</dc:creator>
      <dc:date>2019-10-19T19:27:45Z</dc:date>
    </item>
    <item>
      <title>Re: PowerBIIntegration.Refresh() - Solution to Invocation of unknown or unsupported function error</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/PowerBIIntegration-Refresh-Solution-to-Invocation-of-unknown-or/m-p/2333184#M34340</link>
      <description>&lt;P&gt;This post has been very usefull, thank you for the detailled writeup!&lt;/P&gt;&lt;P&gt;When a new app is created from a published report on Power BI Online, it defaults to a Canvas app in Phone format. Is there a known workaround to create a new app using the Tablet format instead?&lt;/P&gt;&lt;P&gt;As discussed in this article the PowerBIIntegration.Refresh() will not work if an existing app in Tablet format is selected, one has to create a new app from within the Power BI Online report.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Feb 2022 10:43:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/PowerBIIntegration-Refresh-Solution-to-Invocation-of-unknown-or/m-p/2333184#M34340</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-02-11T10:43:40Z</dc:date>
    </item>
  </channel>
</rss>

