<?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: Cannot import my own custom visual in Custom Visuals Development Discussion</title>
    <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Cannot-import-my-own-custom-visual/m-p/631479#M1819</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I pushed my code to github.&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/sengokyu/ex-powerbi-and-igniteui" target="_blank" rel="noopener"&gt;https://github.com/sengokyu/ex-powerbi-and-igniteui&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Following are parts of my code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;visuals.ts&lt;/P&gt;&lt;PRE&gt;module powerbi.extensibility.visual {
    'use strict';

    export class Visual implements IVisual {&lt;BR /&gt;        &lt;SPAN class="pl-k"&gt;private&lt;/SPAN&gt; table&lt;SPAN class="pl-k"&gt;:&lt;/SPAN&gt; &lt;SPAN class="pl-en"&gt;JQuery&lt;/SPAN&gt;&amp;lt;&lt;SPAN class="pl-en"&gt;HTMLElement&lt;/SPAN&gt;&amp;gt;; &lt;SPAN class="pl-c"&gt;// ignite-ui grid&lt;/SPAN&gt;
        // (snip)
        constructor(options: VisualConstructorOptions) {
            // (snip)
            try {
                this.table.igGrid(params);
            } catch (err) {
                console.log(err);
            }
        }&lt;BR /&gt;        // (snip)
    }
}&lt;/PRE&gt;&lt;P&gt;pbiviz.json&lt;/P&gt;&lt;PRE&gt;{
  /* (snip) */
  "externalJS": [
    "node_modules/jquery/dist/jquery.js",
    "src/jquery.adapter.js",
    "vendor/jquery-ui-1.12.1/jquery-ui.js",
    "vendor/ignite-ui/js/infragistics.core.js",
    "vendor/ignite-ui/js/infragistics.lob.js",
    "src/infragistics.adapter.js",
    "node_modules/powerbi-visuals-utils-dataviewutils/lib/index.js"
  ],
  /* (snip) */
}&lt;/PRE&gt;&lt;P&gt;igGrid is a component manufactured by Infragistics.&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.infragistics.com/products/ignite-ui" target="_blank" rel="noopener"&gt;https://www.infragistics.com/products/ignite-ui&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 26 Feb 2019 00:37:26 GMT</pubDate>
    <dc:creator>ziyi</dc:creator>
    <dc:date>2019-02-26T00:37:26Z</dc:date>
    <item>
      <title>Cannot import my own custom visual</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Cannot-import-my-own-custom-visual/m-p/630545#M1813</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created a custom visual with PowerBI Visuals Tools version 2.3.0.&lt;/P&gt;&lt;P&gt;It works fine at my local environment.&lt;/P&gt;&lt;P&gt;So I import it to PowerBI Online, PowerBI shows a error message.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Selection_268.png" style="width: 472px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/148536iFE1E6C7DBF889A04/image-size/large?v=v2&amp;amp;px=999" role="button" title="Selection_268.png" alt="Selection_268.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And also JavaScript shows this.&lt;/P&gt;&lt;PRE&gt;Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://wabi-south-east-asia-redirect.analysis.windows.net/powerbi/content/visual. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing).[Learn More]&lt;/PRE&gt;&lt;P&gt;How can I fix this ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Feb 2019 02:28:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Cannot-import-my-own-custom-visual/m-p/630545#M1813</guid>
      <dc:creator>ziyi</dc:creator>
      <dc:date>2019-02-25T02:28:55Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot import my own custom visual</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Cannot-import-my-own-custom-visual/m-p/631167#M1817</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Looks like your visual tries to communicate with the outer environment (outside iframe) by sending some events or so on.&lt;/P&gt;&lt;P&gt;If there is a possibility to provide access to your code, I can try to investigate the issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Evgenii Elkin,&lt;/P&gt;&lt;P&gt;Software Engineer&lt;/P&gt;&lt;P&gt;Microsoft Power BI Custom Visuals&lt;BR /&gt;pbicvsupport@microsoft.com&lt;/P&gt;</description>
      <pubDate>Mon, 25 Feb 2019 16:51:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Cannot-import-my-own-custom-visual/m-p/631167#M1817</guid>
      <dc:creator>v-evelk</dc:creator>
      <dc:date>2019-02-25T16:51:10Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot import my own custom visual</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Cannot-import-my-own-custom-visual/m-p/631479#M1819</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I pushed my code to github.&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/sengokyu/ex-powerbi-and-igniteui" target="_blank" rel="noopener"&gt;https://github.com/sengokyu/ex-powerbi-and-igniteui&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Following are parts of my code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;visuals.ts&lt;/P&gt;&lt;PRE&gt;module powerbi.extensibility.visual {
    'use strict';

    export class Visual implements IVisual {&lt;BR /&gt;        &lt;SPAN class="pl-k"&gt;private&lt;/SPAN&gt; table&lt;SPAN class="pl-k"&gt;:&lt;/SPAN&gt; &lt;SPAN class="pl-en"&gt;JQuery&lt;/SPAN&gt;&amp;lt;&lt;SPAN class="pl-en"&gt;HTMLElement&lt;/SPAN&gt;&amp;gt;; &lt;SPAN class="pl-c"&gt;// ignite-ui grid&lt;/SPAN&gt;
        // (snip)
        constructor(options: VisualConstructorOptions) {
            // (snip)
            try {
                this.table.igGrid(params);
            } catch (err) {
                console.log(err);
            }
        }&lt;BR /&gt;        // (snip)
    }
}&lt;/PRE&gt;&lt;P&gt;pbiviz.json&lt;/P&gt;&lt;PRE&gt;{
  /* (snip) */
  "externalJS": [
    "node_modules/jquery/dist/jquery.js",
    "src/jquery.adapter.js",
    "vendor/jquery-ui-1.12.1/jquery-ui.js",
    "vendor/ignite-ui/js/infragistics.core.js",
    "vendor/ignite-ui/js/infragistics.lob.js",
    "src/infragistics.adapter.js",
    "node_modules/powerbi-visuals-utils-dataviewutils/lib/index.js"
  ],
  /* (snip) */
}&lt;/PRE&gt;&lt;P&gt;igGrid is a component manufactured by Infragistics.&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.infragistics.com/products/ignite-ui" target="_blank" rel="noopener"&gt;https://www.infragistics.com/products/ignite-ui&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Feb 2019 00:37:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Cannot-import-my-own-custom-visual/m-p/631479#M1819</guid>
      <dc:creator>ziyi</dc:creator>
      <dc:date>2019-02-26T00:37:26Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot import my own custom visual</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Cannot-import-my-own-custom-visual/m-p/633075#M1830</link>
      <description>&lt;P&gt;I tried to build it but it requires some files from "vendor" folder.&lt;/P&gt;&lt;P&gt;Is it possible to provide them?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Evgenii Elkin,&lt;BR /&gt;Software Engineer&lt;BR /&gt;Microsoft Power BI Custom Visuals&lt;BR /&gt;pbicvsupport@microsoft.com&lt;/P&gt;</description>
      <pubDate>Wed, 27 Feb 2019 12:23:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Cannot-import-my-own-custom-visual/m-p/633075#M1830</guid>
      <dc:creator>v-evelk</dc:creator>
      <dc:date>2019-02-27T12:23:19Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot import my own custom visual</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Cannot-import-my-own-custom-visual/m-p/634108#M1838</link>
      <description>&lt;P&gt;I zipped some files in vendor directory.&lt;/P&gt;&lt;P&gt;&lt;A href="https://1drv.ms/f/s!AoOnXNteXYjpiQSsAS6l4wOfeDvP" target="_blank"&gt;https://1drv.ms/f/s!AoOnXNteXYjpiQSsAS6l4wOfeDvP&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Zip password: greatbi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will delete this file after a day.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Feb 2019 10:34:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Cannot-import-my-own-custom-visual/m-p/634108#M1838</guid>
      <dc:creator>ziyi</dc:creator>
      <dc:date>2019-02-28T10:34:15Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot import my own custom visual</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Cannot-import-my-own-custom-visual/m-p/634134#M1839</link>
      <description>&lt;P&gt;Thanks, I have downloaded them.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Evgenii Elkin,&lt;BR /&gt;Software Engineer&lt;BR /&gt;Microsoft Power BI Custom Visuals&lt;BR /&gt;pbicvsupport@microsoft.com&lt;/P&gt;</description>
      <pubDate>Thu, 28 Feb 2019 11:07:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Cannot-import-my-own-custom-visual/m-p/634134#M1839</guid>
      <dc:creator>v-evelk</dc:creator>
      <dc:date>2019-02-28T11:07:24Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot import my own custom visual</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Cannot-import-my-own-custom-visual/m-p/634293#M1842</link>
      <description>&lt;P&gt;The reason was found.&lt;/P&gt;&lt;P&gt;Your package has size of more than 3Mb but PowerBI Service alow to import packages of size no more than 2Mb.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In than case you should unpack a built package by any archivator and pack manually as zip file and then change the extension to PIVIZ. It must help to reduce the package size.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also you can use new tools that let to use JS modules and import 3rd party libraries as modules without including external links to pbiviz.json. It must help to reduce a package size and simplify work with outer libraries.&lt;/P&gt;&lt;P&gt;Details you can find by the following link (&lt;A href="https://community.powerbi.com/t5/Custom-Visuals-Community-Blog/New-Beta-version-of-powerbi-visual-tools-v3/ba-p/545287" target="_blank"&gt;https://community.powerbi.com/t5/Custom-Visuals-Community-Blog/New-Beta-version-of-powerbi-visual-tools-v3/ba-p/545287&lt;/A&gt;)&lt;/P&gt;</description>
      <pubDate>Thu, 28 Feb 2019 14:16:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Cannot-import-my-own-custom-visual/m-p/634293#M1842</guid>
      <dc:creator>v-evelk</dc:creator>
      <dc:date>2019-02-28T14:16:57Z</dc:date>
    </item>
    <item>
      <title>PBIVIZ file size must be less than 2MB  Re: Cannot import my own custom visual</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Cannot-import-my-own-custom-visual/m-p/634684#M1843</link>
      <description>&lt;P&gt;Thank you! You saved me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did unzip pbiviz and re-zip them.&lt;/P&gt;&lt;PRE&gt;unzip exGrid.pbiviz
zip -9 -r exGrid.zip package.json resources
mv exGrid.zip exGrid.rezip.pbiviz&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have imported my pbiviz successfully.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2019 00:27:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Cannot-import-my-own-custom-visual/m-p/634684#M1843</guid>
      <dc:creator>ziyi</dc:creator>
      <dc:date>2019-03-01T00:27:03Z</dc:date>
    </item>
    <item>
      <title>Re: PBIVIZ file size must be less than 2MB  Re: Cannot import my own custom visual</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Cannot-import-my-own-custom-visual/m-p/636394#M1849</link>
      <description>&lt;P&gt;We are integrating ZIP compression into PBIVIZ 3.x.x. It will be released soon once we are sure it works well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Ignat Vilesov,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Software Engineer&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Microsoft Power BI Custom Visuals&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;A href="mailto:pbicvsupport@microsoft.com" target="_blank"&gt;pbicvsupport@microsoft.com&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2019 16:34:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Cannot-import-my-own-custom-visual/m-p/636394#M1849</guid>
      <dc:creator>v-viig</dc:creator>
      <dc:date>2019-03-04T16:34:50Z</dc:date>
    </item>
    <item>
      <title>Re: PBIVIZ file size must be less than 2MB  Re: Cannot import my own custom visual</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Cannot-import-my-own-custom-visual/m-p/3293666#M7696</link>
      <description>&lt;P&gt;Can you elaborate how you acheived this?&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jun 2023 16:17:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Cannot-import-my-own-custom-visual/m-p/3293666#M7696</guid>
      <dc:creator>Anujshaan</dc:creator>
      <dc:date>2023-06-20T16:17:47Z</dc:date>
    </item>
  </channel>
</rss>

