<?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: API issue creating pbiviz package in Custom Visuals Development Discussion</title>
    <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/API-issue-creating-pbiviz-package/m-p/4240222#M11561</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/818282"&gt;@E3_DLC&lt;/a&gt;&amp;nbsp;- you would need to enable/update the API, see what breaks, and make the necessary remediations. I don't have any documentation, but the two things that stick out from memory for the MS APIs are:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;FONT face="courier new,courier"&gt;capabilities.json&lt;/FONT&gt; needing a mandatory&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/power-bi/developer/visuals/capabilities#privileges-define-the-special-permissions-that-your-visual-requires" target="_self"&gt;&lt;FONT face="courier new,courier"&gt;privileges&lt;/FONT&gt; array&lt;/A&gt; (&amp;gt;= &lt;A href="https://learn.microsoft.com/en-us/power-bi/developer/visuals/changelog#api-v460" target="_self"&gt;4.6.0&lt;/A&gt;)&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://learn.microsoft.com/en-us/power-bi/developer/visuals/visuals-interactions" target="_self"&gt;Host capabilities checks&lt;/A&gt; moving to a new property (undocumented breaking change in &amp;gt;= &lt;A href="https://learn.microsoft.com/en-us/power-bi/developer/visuals/changelog#api-v380" target="_self"&gt;3.8.0&lt;/A&gt;)&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;If you are planning to modernize any of the other packages, you will need to refer to the change logs of those libraries to see what the breaking changes and migration paths are.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;</description>
    <pubDate>Sun, 13 Oct 2024 21:53:46 GMT</pubDate>
    <dc:creator>dm-p</dc:creator>
    <dc:date>2024-10-13T21:53:46Z</dc:date>
    <item>
      <title>API issue creating pbiviz package</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/API-issue-creating-pbiviz-package/m-p/4233270#M11532</link>
      <description>&lt;P&gt;Hi, i'm completly new to the development of Custom Visuals. I'm trying to modifing an existing visual, Force Direct Graph.&lt;BR /&gt;Here is the link to the official repo: &lt;A href="https://github.com/Microsoft/powerbi-visuals-forcegraph/" target="_blank"&gt;https://github.com/Microsoft/powerbi-visuals-forcegraph/&lt;/A&gt;&lt;BR /&gt;I'm encountering API problems when "pbiviz packge" is used. (related image)&lt;BR /&gt;I've tried to change the API from 5.3.0 to 2.3.1 but it has resolte in another error 'API should be 4.7.0 or higher'.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="E3_DLC_2-1728376903951.png" style="width: 876px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1179507i7FACA997EBF82F62/image-size/large?v=v2&amp;amp;px=999" role="button" title="E3_DLC_2-1728376903951.png" alt="E3_DLC_2-1728376903951.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Even though i've faced this errors the package was create but is not visibile at all on power bi desktop.&lt;BR /&gt;Have been reased this error for the "Format Pane" but while using "pbiviz start", i only encounterd the API error but even tough the error still it is visible and usable. I don't know why.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="E3_DLC_3-1728376986525.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1179508i037381D86238FC61/image-size/medium?v=v2&amp;amp;px=400" role="button" title="E3_DLC_3-1728376986525.png" alt="E3_DLC_3-1728376986525.png" /&gt;&lt;/span&gt;&lt;BR /&gt;Maybe the problem is only related to the API?&lt;BR /&gt;Does anybody have face the same issue? How can i fix it? Thanks in advance for everybody that is going to help me with it&lt;span class="lia-unicode-emoji" title=":folded_hands:"&gt;🙏&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Oct 2024 08:57:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/API-issue-creating-pbiviz-package/m-p/4233270#M11532</guid>
      <dc:creator>E3_DLC</dc:creator>
      <dc:date>2024-10-08T08:57:33Z</dc:date>
    </item>
    <item>
      <title>Re: API issue creating pbiviz package</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/API-issue-creating-pbiviz-package/m-p/4234138#M11534</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/818282"&gt;@E3_DLC&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to use an API version lower than 4.7.0, you will either need to:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;SPAN&gt;Use the version of &lt;FONT face="courier new,courier"&gt;powerbi-visuals-tools&lt;/FONT&gt; included with the visual dependencies (&lt;A href="https://github.com/microsoft/PowerBI-visuals-ForceGraph/blob/main/package.json#L71" target="_self"&gt;from looking at package.json&lt;/A&gt;, v3.0.9, which, along with API 2.3.1, are both &lt;STRONG&gt;very&lt;/STRONG&gt; old and no longer supported).&lt;/SPAN&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;SPAN&gt;If you're running &lt;FONT face="courier new,courier"&gt;pbiviz package&lt;/FONT&gt; to package the visual, you're likely using a globally installed version, which is too new to use the visual APIs it was designed with.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Instead, try using&amp;nbsp;&lt;FONT face="courier new,courier"&gt;npm run package&lt;/FONT&gt;, which will use the version of powerbi-visuals-tools local to the project.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;You should also do a similar workaround when developing (i.e., &lt;FONT face="courier new,courier"&gt;npm run start&lt;/FONT&gt; instead of &lt;FONT face="courier new,courier"&gt;pbiviz start&lt;/FONT&gt;)&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;Migrate the visual code to use API &amp;gt;= 4.7.0. This is not ideal in the short term, but better if you are planning to do any kind of substantial work on this older visual, particularly if you want to add modern features, as many things have been introduced since API 2.3.1.&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;If you have installed &lt;FONT face="courier new,courier"&gt;powerbi-visuals-tools&lt;/FONT&gt; globally and want to run this way, downgrade it to a suitable version that uses the older APIs, as the latest versions will only work with newer APIs. &lt;/SPAN&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;SPAN&gt;From looking at the changelog, &lt;A href="https://github.com/microsoft/PowerBI-visuals-tools/blob/main/Changelog.md#330" target="_self"&gt;major breaking changes were introduced in 3.3.0&lt;/A&gt;, so you may be able to get away with 3.2.2.&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;You would install this using &lt;FONT face="courier new,courier"&gt;npm i -g powerbi-visuals-tools@3.2.2&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;SPAN&gt;Option #1 will probably be the lowest barrier to entry, but you will have significantly less problems, maintenance-wise, if you go for option #2, as there will be no support from MS if going with option #1 - they will likely tell you to migrate tools, API and codebase first before they can provide any specific assistance if you're having trouble.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Hopefully some of this will be useful. Good luck!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Daniel&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Oct 2024 20:33:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/API-issue-creating-pbiviz-package/m-p/4234138#M11534</guid>
      <dc:creator>dm-p</dc:creator>
      <dc:date>2024-10-08T20:33:52Z</dc:date>
    </item>
    <item>
      <title>Re: API issue creating pbiviz package</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/API-issue-creating-pbiviz-package/m-p/4239044#M11544</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Thank you&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/397" target="_blank"&gt;@dm-p&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Your advice helped me to fix my problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If i have to do a porting from the older API to the newst, what i need to do? Do you have any documentation about it?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Oct 2024 14:46:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/API-issue-creating-pbiviz-package/m-p/4239044#M11544</guid>
      <dc:creator>E3_DLC</dc:creator>
      <dc:date>2024-10-11T14:46:08Z</dc:date>
    </item>
    <item>
      <title>Re: API issue creating pbiviz package</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/API-issue-creating-pbiviz-package/m-p/4240222#M11561</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/818282"&gt;@E3_DLC&lt;/a&gt;&amp;nbsp;- you would need to enable/update the API, see what breaks, and make the necessary remediations. I don't have any documentation, but the two things that stick out from memory for the MS APIs are:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;FONT face="courier new,courier"&gt;capabilities.json&lt;/FONT&gt; needing a mandatory&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/power-bi/developer/visuals/capabilities#privileges-define-the-special-permissions-that-your-visual-requires" target="_self"&gt;&lt;FONT face="courier new,courier"&gt;privileges&lt;/FONT&gt; array&lt;/A&gt; (&amp;gt;= &lt;A href="https://learn.microsoft.com/en-us/power-bi/developer/visuals/changelog#api-v460" target="_self"&gt;4.6.0&lt;/A&gt;)&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://learn.microsoft.com/en-us/power-bi/developer/visuals/visuals-interactions" target="_self"&gt;Host capabilities checks&lt;/A&gt; moving to a new property (undocumented breaking change in &amp;gt;= &lt;A href="https://learn.microsoft.com/en-us/power-bi/developer/visuals/changelog#api-v380" target="_self"&gt;3.8.0&lt;/A&gt;)&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;If you are planning to modernize any of the other packages, you will need to refer to the change logs of those libraries to see what the breaking changes and migration paths are.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Sun, 13 Oct 2024 21:53:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/API-issue-creating-pbiviz-package/m-p/4240222#M11561</guid>
      <dc:creator>dm-p</dc:creator>
      <dc:date>2024-10-13T21:53:46Z</dc:date>
    </item>
  </channel>
</rss>

