<?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 Connector - anonymous Authentication issue in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Custom-Connector-anonymous-Authentication-issue/m-p/1680041#M28008</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/19420"&gt;@ronenbitman&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your custom connector project can't run in VS but it can run in Power BI Desktop?&lt;/P&gt;
&lt;P&gt;Please provide screenshot&amp;nbsp;of the relevant error message.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Lionel Chen&lt;/P&gt;
&lt;P&gt;If this post&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;I&gt;helps&lt;/I&gt;&lt;/STRONG&gt;, then please consider&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;I&gt;Accept it as the solution&lt;/I&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to help the other members find it more quickly.&lt;/P&gt;</description>
    <pubDate>Mon, 22 Feb 2021 07:13:28 GMT</pubDate>
    <dc:creator>v-lionel-msft</dc:creator>
    <dc:date>2021-02-22T07:13:28Z</dc:date>
    <item>
      <title>Custom Connector - anonymous Authentication issue</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Custom-Connector-anonymous-Authentication-issue/m-p/1673612#M27923</link>
      <description>&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;I have a sharepoint excel file with a list of tickers, and i have Web.Contents() that parses these. all was great till i got to the depolying on the Web BI portal and scheduling a refresh, where the FW gave the regular issues&lt;BR /&gt;one of the &lt;A href="https://www.poweredsolutions.co/2019/03/12/data-privacy-and-the-formula-firewall/" target="_self"&gt;articales&lt;/A&gt; i browsed suggested resolving this by creating a custom connector so i followed the guidelines&lt;/P&gt;&lt;P&gt;1. installed the SDK on my VS2017,&lt;/P&gt;&lt;P&gt;2. type the PQ code&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;// This file contains your Data Connector logic
section SecGovFillings;

[DataSource.Kind="SecGovFillings", Publish="SecGovFillings.Publish"]
//shared SecGovFillings.GetSecID = (SecID as text) as text =&amp;gt; 
shared SecGovFillings.GetSecID = () as text =&amp;gt; 
    let
        //Source = Web.Page(Web.Contents("https://sec.report/",[RelativePath="ticker/"&amp;amp;SecID])),
        //Source = Web.Page(Web.Contents("https://sec.report/ticker/"&amp;amp;SecID)),
        Source = Web.Page(Web.Contents("https://sec.report/Ticker/NKLA")),
        #"Filtered Rows" = Table.SelectRows(Source, each ([Caption] = "Document")),
        Data = #"Filtered Rows"{0}[Data],
        Children1 = Data{0}[Children],
        #"Filtered Rows1" = Table.SelectRows(Children1, each ([Name] = "BODY")),
        Children2 = #"Filtered Rows1"{0}[Children],
        #"Filtered Rows2" = Table.SelectRows(Children2, each ([Name] = "DIV")),
        Children3 = #"Filtered Rows2"{0}[Children],
        Children4 = Children3{0}[Children],
        #"Filtered Rows3" = Table.SelectRows(Children4, each ([Name] = "H2")),
        Children5 = #"Filtered Rows3"{0}[Children],
        Text = Children5{0}[Text],
        #"Split Text" = Text.Split(Text, " "),
        #"Kept Last Items" = List.Last(#"Split Text")
    in
        #"Kept Last Items";

// Data Source Kind description
SecGovFillings = [
    Authentication = [
        // Key = [],
        // UsernamePassword = [],
        // Windows = [],
        Implicit = []
    ],
    Label = Extension.LoadString("DataSourceLabel")
];

// Data Source UI publishing description
SecGovFillings.Publish = [
    Beta = true,
    Category = "Other",
    ButtonText = { Extension.LoadString("ButtonTitle"), Extension.LoadString("ButtonHelp") },
    LearnMoreUrl = "https://powerbi.microsoft.com/",
    SourceImage = SecGovFillings.Icons,
    SourceTypeImage = SecGovFillings.Icons
];

SecGovFillings.Icons = [
    Icon16 = { Extension.Contents("SecGovFillings16.png"), Extension.Contents("SecGovFillings20.png"), Extension.Contents("SecGovFillings24.png"), Extension.Contents("SecGovFillings32.png") },
    Icon32 = { Extension.Contents("SecGovFillings32.png"), Extension.Contents("SecGovFillings40.png"), Extension.Contents("SecGovFillings48.png"), Extension.Contents("SecGovFillings64.png") }
];&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3. ran the code and although &amp;amp; set the authentication as&amp;nbsp;anonymous&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;// Use this file to write queries to test your data connector
let
    //result = SecGovFillings.GetSecID("GOEV")
    result = SecGovFillings.GetSecID()
in
    result&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;4. ran the code again but was still reciving an error as authentication was not succeeding.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;then i went and tried to deploy and check maybe its an issue with VS&lt;/P&gt;&lt;P&gt;1. i copied the file to the Custom connector folder&lt;/P&gt;&lt;P&gt;2. open Power BI Desktop&lt;/P&gt;&lt;P&gt;3. added a new data connector&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;= SecGovFillings.GetSecID()&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the athentication window showed up, selected&amp;nbsp;anonymous and it kept showing up as if it wasn't correct&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the website i am trying to reach is opening regularly on browser&amp;nbsp;&lt;A href="https://sec.report/Ticker/frx" target="_blank" rel="noopener"&gt;https://sec.report/Ticker/frx&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;next, i tried creating a regular PQ&lt;/P&gt;&lt;P&gt;1. i added the code,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;let
        Source = Web.Page(Web.Contents("https://sec.report/Ticker/NKLA")),
        #"Filtered Rows" = Table.SelectRows(Source, each ([Caption] = "Document")),
        Data = #"Filtered Rows"{0}[Data],
        Children1 = Data{0}[Children],
        #"Filtered Rows1" = Table.SelectRows(Children1, each ([Name] = "BODY")),
        Children2 = #"Filtered Rows1"{0}[Children],
        #"Filtered Rows2" = Table.SelectRows(Children2, each ([Name] = "DIV")),
        Children3 = #"Filtered Rows2"{0}[Children],
        Children4 = Children3{0}[Children],
        #"Filtered Rows3" = Table.SelectRows(Children4, each ([Name] = "H2")),
        Children5 = #"Filtered Rows3"{0}[Children],
        Text = Children5{0}[Text],
        #"Split Text" = Text.Split(Text, " "),
        #"Kept Last Items" = List.Last(#"Split Text")
    in
        #"Kept Last Items"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. got the athentication window, selected&amp;nbsp;anonymous&lt;/P&gt;&lt;P&gt;it worked on the regular PQ!&lt;/P&gt;&lt;P&gt;so it didn't work on VS, my custom data connector didn't work but PQ on desktop BI worked with the same PQ code (attached)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;btw my custom data connector started working after the PQ code worked&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;how can i resolve this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2021 06:16:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Custom-Connector-anonymous-Authentication-issue/m-p/1673612#M27923</guid>
      <dc:creator>ronenbitman</dc:creator>
      <dc:date>2021-02-18T06:16:20Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Connector - anonymous Authentication issue</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Custom-Connector-anonymous-Authentication-issue/m-p/1680041#M28008</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/19420"&gt;@ronenbitman&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your custom connector project can't run in VS but it can run in Power BI Desktop?&lt;/P&gt;
&lt;P&gt;Please provide screenshot&amp;nbsp;of the relevant error message.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Lionel Chen&lt;/P&gt;
&lt;P&gt;If this post&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;I&gt;helps&lt;/I&gt;&lt;/STRONG&gt;, then please consider&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;I&gt;Accept it as the solution&lt;/I&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Feb 2021 07:13:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Custom-Connector-anonymous-Authentication-issue/m-p/1680041#M28008</guid>
      <dc:creator>v-lionel-msft</dc:creator>
      <dc:date>2021-02-22T07:13:28Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Connector - anonymous Authentication issue</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Custom-Connector-anonymous-Authentication-issue/m-p/1685377#M28049</link>
      <description>&lt;P&gt;Hi Lionel,&lt;/P&gt;&lt;P&gt;Seems i had an issue with the authentication Microsoft, and a restrart to the computer resolved it.&lt;/P&gt;&lt;P&gt;so now all is good and working as expected&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Wed, 24 Feb 2021 05:34:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Custom-Connector-anonymous-Authentication-issue/m-p/1685377#M28049</guid>
      <dc:creator>ronenbitman</dc:creator>
      <dc:date>2021-02-24T05:34:53Z</dc:date>
    </item>
  </channel>
</rss>

