<?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: Custom Data Connector / How to troubleshoot Testconnection Handler in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Custom-Data-Connector-How-to-troubleshoot-Testconnection-Handler/m-p/641717#M18769</link>
    <description>&lt;P&gt;Ultimately I troubleshooted my problem reviewing my code. But as a generic need, I still think it would be a good idea to implement some logging on the gateway. That would be very helpful&lt;/P&gt;</description>
    <pubDate>Mon, 11 Mar 2019 09:22:27 GMT</pubDate>
    <dc:creator>sylbae-a</dc:creator>
    <dc:date>2019-03-11T09:22:27Z</dc:date>
    <item>
      <title>Custom Data Connector / How to troubleshoot Testconnection Handler</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Custom-Data-Connector-How-to-troubleshoot-Testconnection-Handler/m-p/568482#M17629</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I built my first custom data connector (encapsulate access to authenticated Rest API).&lt;/P&gt;&lt;P&gt;It works fine with Power BI Desktop but I cannot enable scheduling of data source refresh through Enterprise Gateway.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am pretty sure this is because of incorrect implementation of mandatory TestConnection handler.&lt;/P&gt;&lt;P&gt;When trying to configure the data source from Power BI web portal, I am getting an error "Cannot be added to gateway". In documentation, it is highlighted we likely have a problem with TestConnection if getting this message.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I developped my handler based on documentation:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/power-query/handlinggatewaysupport" target="_blank"&gt;https://docs.microsoft.com/en-us/power-query/handlinggatewaysupport&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But cannot figure out the problem... Is there any logfile I could access to get further details ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;TestDataSource = [

&amp;nbsp; &amp;nbsp; TestConnection = (dataSourcePath) =&amp;gt; {"TestDataSource.Feed", dataSourcePath},

&amp;nbsp; &amp;nbsp; Authentication = [

&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; UsernamePassword = []

&amp;nbsp; &amp;nbsp; ],

&amp;nbsp; &amp;nbsp; Label = Extension.LoadString("DataSourceLabel")

];&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Nov 2018 09:53:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Custom-Data-Connector-How-to-troubleshoot-Testconnection-Handler/m-p/568482#M17629</guid>
      <dc:creator>sylbae-a</dc:creator>
      <dc:date>2018-11-19T09:53:05Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Data Connector / How to troubleshoot Testconnection Handler</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Custom-Data-Connector-How-to-troubleshoot-Testconnection-Handler/m-p/640898#M18764</link>
      <description>&lt;P&gt;&amp;nbsp;I'm having related difficulties too; sorry, no answer, but a few resources that might be useful&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The most useful (to me) was:&amp;nbsp;&lt;FONT&gt;&lt;A href="https://docs.microsoft.com/en-us/power-query/handlinggatewaysupport" target="_blank" rel="noopener"&gt;https://docs.microsoft.com/en-us/power-query/handlinggatewaysupport&lt;/A&gt;&lt;/FONT&gt;, which covers parameters, which is perhaps a common problem with TestConnector; it is necessary that your TestConnector is called with the right parameters, otherwise it will fail&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is also useful:&amp;nbsp;&lt;FONT&gt;&lt;A href="https://docs.microsoft.com/en-us/power-query/samples/trippin/9-testconnection/readme" target="_blank" rel="noopener"&gt;https://docs.microsoft.com/en-us/power-query/samples/trippin/9-testconnection/readme&lt;/A&gt;&lt;/FONT&gt;; as it says, unfortunately, there is no way to test TestConnection except in the&amp;nbsp;On-premises Data Gateway, which makes it hard to track down problems&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll come back if I myself make useful progress&lt;/P&gt;</description>
      <pubDate>Sat, 09 Mar 2019 09:28:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Custom-Data-Connector-How-to-troubleshoot-Testconnection-Handler/m-p/640898#M18764</guid>
      <dc:creator>john_dawson</dc:creator>
      <dc:date>2019-03-09T09:28:55Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Data Connector / How to troubleshoot Testconnection Handler</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Custom-Data-Connector-How-to-troubleshoot-Testconnection-Handler/m-p/641717#M18769</link>
      <description>&lt;P&gt;Ultimately I troubleshooted my problem reviewing my code. But as a generic need, I still think it would be a good idea to implement some logging on the gateway. That would be very helpful&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2019 09:22:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Custom-Data-Connector-How-to-troubleshoot-Testconnection-Handler/m-p/641717#M18769</guid>
      <dc:creator>sylbae-a</dc:creator>
      <dc:date>2019-03-11T09:22:27Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Data Connector / How to troubleshoot Testconnection Handler</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Custom-Data-Connector-How-to-troubleshoot-Testconnection-Handler/m-p/653889#M18916</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/93592"&gt;@sylbae-a&lt;/a&gt;&amp;nbsp;, I'm encountering the same issue. Could you please share how you solved this? My custom connector works fine in desktop but I cant get it to work through the gateway. I am able to enter credentials (Oauth2) but after the oauth flow the data source sign in window stays opened, nothing happens. I think it is caused by the testconnection configuration but I'm not able to find the exact cause.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Mar 2019 08:41:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Custom-Data-Connector-How-to-troubleshoot-Testconnection-Handler/m-p/653889#M18916</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-26T08:41:28Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Data Connector / How to troubleshoot Testconnection Handler</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Custom-Data-Connector-How-to-troubleshoot-Testconnection-Handler/m-p/731140#M19874</link>
      <description>&lt;P&gt;I'm in the same situation. If you guys find anything, please help. I'll do the same.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2019 17:21:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Custom-Data-Connector-How-to-troubleshoot-Testconnection-Handler/m-p/731140#M19874</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-03T17:21:51Z</dc:date>
    </item>
  </channel>
</rss>

