<?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 Custom connector for proprietary file type in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Custom-connector-for-proprietary-file-type/m-p/497360#M15234</link>
    <description>&lt;P&gt;We'd like Power BI Desktop to understand a custom file format and for users to be able to select a file of that type and have Power BI Desktop open it (generating probably multiple tables). Were I'm currently at with this is trying to create a custom connector for this and coming up against a number of issues. So a general question - is a custom connector the right way to go, or is there some other way to open a particular file type and have Power BI apply some Power/M query to extract the relevant data (bearing in mind the ideal is for the user to be able to select a file and have the data appear without delving into any data manipulation themselves)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One of the issues I'm getting is with credentials - relevant section of code below. Accessing a test file using Visual Studio to debug (e.g.&amp;nbsp;&lt;FONT face="courier new,courier"&gt;PQExtension1.Contents("\\path\to\test\file")&lt;/FONT&gt;) requests credentials when first running for Data Source Kind PQExtension1 (I select 'Windows' and Set Credential), but then requests credentials again when running subsequently, this time for Data Source Kind &lt;EM&gt;&lt;STRONG&gt;File&lt;/STRONG&gt;&lt;/EM&gt;. How to reuse the credentials previously entered?&lt;/P&gt;&lt;PRE&gt;section PQExtension1;

[DataSource.Kind="PQExtension1", Publish="PQExtension1.Publish"]
shared PQExtension1.Contents = (path as text) =&amp;gt;
    let
        Source = Xml.Tables(File.Contents(path)),
        pkg = Source{0}[pkg],
        pkgNav = GetLevelAsTable(pkg) //not getting as far as this
    in
        pkgNav;

PQExtension1 = [
    Authentication = [
        Windows = []
    ],
    Label = Extension.LoadString("DataSourceLabel")
];&lt;BR /&gt;...&lt;/PRE&gt;&lt;P&gt;So - is there a better way than&amp;nbsp;&lt;EM&gt;custom connector&lt;/EM&gt; and if not, can I reuse those credentials?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Craig&lt;/P&gt;</description>
    <pubDate>Thu, 23 Aug 2018 12:17:50 GMT</pubDate>
    <dc:creator>cxb</dc:creator>
    <dc:date>2018-08-23T12:17:50Z</dc:date>
    <item>
      <title>Custom connector for proprietary file type</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Custom-connector-for-proprietary-file-type/m-p/497360#M15234</link>
      <description>&lt;P&gt;We'd like Power BI Desktop to understand a custom file format and for users to be able to select a file of that type and have Power BI Desktop open it (generating probably multiple tables). Were I'm currently at with this is trying to create a custom connector for this and coming up against a number of issues. So a general question - is a custom connector the right way to go, or is there some other way to open a particular file type and have Power BI apply some Power/M query to extract the relevant data (bearing in mind the ideal is for the user to be able to select a file and have the data appear without delving into any data manipulation themselves)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One of the issues I'm getting is with credentials - relevant section of code below. Accessing a test file using Visual Studio to debug (e.g.&amp;nbsp;&lt;FONT face="courier new,courier"&gt;PQExtension1.Contents("\\path\to\test\file")&lt;/FONT&gt;) requests credentials when first running for Data Source Kind PQExtension1 (I select 'Windows' and Set Credential), but then requests credentials again when running subsequently, this time for Data Source Kind &lt;EM&gt;&lt;STRONG&gt;File&lt;/STRONG&gt;&lt;/EM&gt;. How to reuse the credentials previously entered?&lt;/P&gt;&lt;PRE&gt;section PQExtension1;

[DataSource.Kind="PQExtension1", Publish="PQExtension1.Publish"]
shared PQExtension1.Contents = (path as text) =&amp;gt;
    let
        Source = Xml.Tables(File.Contents(path)),
        pkg = Source{0}[pkg],
        pkgNav = GetLevelAsTable(pkg) //not getting as far as this
    in
        pkgNav;

PQExtension1 = [
    Authentication = [
        Windows = []
    ],
    Label = Extension.LoadString("DataSourceLabel")
];&lt;BR /&gt;...&lt;/PRE&gt;&lt;P&gt;So - is there a better way than&amp;nbsp;&lt;EM&gt;custom connector&lt;/EM&gt; and if not, can I reuse those credentials?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Craig&lt;/P&gt;</description>
      <pubDate>Thu, 23 Aug 2018 12:17:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Custom-connector-for-proprietary-file-type/m-p/497360#M15234</guid>
      <dc:creator>cxb</dc:creator>
      <dc:date>2018-08-23T12:17:50Z</dc:date>
    </item>
    <item>
      <title>Re: Custom connector for proprietary file type</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Custom-connector-for-proprietary-file-type/m-p/498140#M15283</link>
      <description>&lt;P&gt;Hi Craig,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After a lot of tests, I'm afraid the&amp;nbsp;Xml.Tables could be unsupported for now. Please refer to&amp;nbsp;&lt;A href="https://github.com/Microsoft/DataConnectors/blob/master/docs/m-extensions.md#data-source-functions" target="_self"&gt;docs/m-extensions.md#data-source-functions&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&amp;gt;&amp;gt;&amp;gt;&amp;nbsp;Currently, a limited set of data source functions have been enabled to support extensibility.&lt;/EM&gt;&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;Best Regards,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Dale&lt;/P&gt;</description>
      <pubDate>Fri, 24 Aug 2018 07:39:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Custom-connector-for-proprietary-file-type/m-p/498140#M15283</guid>
      <dc:creator>v-jiascu-msft</dc:creator>
      <dc:date>2018-08-24T07:39:47Z</dc:date>
    </item>
    <item>
      <title>Re: Custom connector for proprietary file type</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Custom-connector-for-proprietary-file-type/m-p/500975#M15397</link>
      <description>&lt;P&gt;Thanks Dale (many thanks for the &lt;EM&gt;lot of tests&lt;/EM&gt;!). So no to the custom connector route. Is there any means of using a particular M/power query to load a file with a specific extension though (or something similar)? E.g. .xyz files open (get pre-processed, effectively) with XYZ.pq.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Aug 2018 08:36:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Custom-connector-for-proprietary-file-type/m-p/500975#M15397</guid>
      <dc:creator>cxb</dc:creator>
      <dc:date>2018-08-28T08:36:02Z</dc:date>
    </item>
    <item>
      <title>Re: Custom connector for proprietary file type</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Custom-connector-for-proprietary-file-type/m-p/501347#M15410</link>
      <description>&lt;P&gt;I've raised this as a &lt;A href="https://ideas.powerbi.com/forums/265200-power-bi-ideas/suggestions/35231557-apply-saved-m-query-to-file-with-particular-extens" target="_self"&gt;feature request&lt;/A&gt;&amp;nbsp;- also sounds similar to &lt;A href="https://ideas.powerbi.com/forums/265200-power-bi-ideas/suggestions/13046805-associate-queries-to-files-using-wildcards" target="_self"&gt;this other feature request&lt;/A&gt;&amp;nbsp;re applying query to file based on some filename pattern.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Aug 2018 13:44:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Custom-connector-for-proprietary-file-type/m-p/501347#M15410</guid>
      <dc:creator>cxb</dc:creator>
      <dc:date>2018-08-28T13:44:44Z</dc:date>
    </item>
  </channel>
</rss>

