<?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 Error Handling Web Query API stops when invoked function has no result in Power Query</title>
    <link>https://community.fabric.microsoft.com/t5/Power-Query/Error-Handling-Web-Query-API-stops-when-invoked-function-has-no/m-p/1090401#M36282</link>
    <description>&lt;P&gt;Thanks in advance!&amp;nbsp; I have a query pulling taxonomies from the NPPES Npi lookup database through and invoked function.&amp;nbsp; The issue is when I expand the column to display the specialty of the NPI referenced from my table, it results in an error (provider has been de-activated in the NPI registry) and stops the rest of the query from working.&amp;nbsp; I would be fine if it continued to display rows with error or "deactivated", but it just stops altogether.&amp;nbsp; Can anyone help me here?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;let&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Source = Access.Database(File.Contents("P:\aaaaaa\folderstructurefile.accdb"), [CreateNavigationProperties=true]),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #"ACCESSQUERY" = Source{[Schema="",Item="ACCESSQUERY"]}[Data],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #"Invoked Custom Function" = Table.AddColumn(#"ACCESSQUERY”, "SPECIALIST", each NPIFUN([TEXTNPI])),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #"Expanded SPECIALIST" = Table.ExpandTableColumn(#"Invoked Custom Function", "SPECIALIST", {"Value"}, {"SPECIALIST.Value"}),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Value = #"Expanded SPECIALIST"[Value]&lt;/P&gt;&lt;P&gt;in&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Value&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is from advanced editor.&amp;nbsp; I just want all records to show, whether or not there is information associated with it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, here is the function&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;let&lt;BR /&gt;Source = (#"NPI LOOKUP" as text) =&amp;gt; let&lt;BR /&gt;Source = try Json.Document(Web.Contents("&lt;A href="https://npiregistry.cms.hhs.gov/api/?version=2.1&amp;amp;number=" target="_blank" rel="noopener"&gt;https://npiregistry.cms.hhs.gov/api/?version=2.1&amp;amp;number=&lt;/A&gt;" &amp;amp; #"NPI LOOKUP"))otherwise null,&lt;BR /&gt;results = Source[results],&lt;BR /&gt;results1 = results{0},&lt;BR /&gt;taxonomies = results1[taxonomies],&lt;BR /&gt;taxonomies1 = taxonomies{0},&lt;BR /&gt;#"Converted to Table" = Record.ToTable(taxonomies1),&lt;BR /&gt;#"Filtered Rows" = Table.SelectRows(#"Converted to Table", each ([Name] = "desc")),&lt;BR /&gt;#"Removed Columns" = Table.RemoveColumns(#"Filtered Rows",{"Name"})&lt;BR /&gt;in&lt;BR /&gt;#"Removed Columns"&lt;BR /&gt;in&lt;BR /&gt;Source&lt;/P&gt;</description>
    <pubDate>Thu, 14 May 2020 21:15:50 GMT</pubDate>
    <dc:creator>black6spd</dc:creator>
    <dc:date>2020-05-14T21:15:50Z</dc:date>
    <item>
      <title>Error Handling Web Query API stops when invoked function has no result</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Error-Handling-Web-Query-API-stops-when-invoked-function-has-no/m-p/1090401#M36282</link>
      <description>&lt;P&gt;Thanks in advance!&amp;nbsp; I have a query pulling taxonomies from the NPPES Npi lookup database through and invoked function.&amp;nbsp; The issue is when I expand the column to display the specialty of the NPI referenced from my table, it results in an error (provider has been de-activated in the NPI registry) and stops the rest of the query from working.&amp;nbsp; I would be fine if it continued to display rows with error or "deactivated", but it just stops altogether.&amp;nbsp; Can anyone help me here?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;let&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Source = Access.Database(File.Contents("P:\aaaaaa\folderstructurefile.accdb"), [CreateNavigationProperties=true]),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #"ACCESSQUERY" = Source{[Schema="",Item="ACCESSQUERY"]}[Data],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #"Invoked Custom Function" = Table.AddColumn(#"ACCESSQUERY”, "SPECIALIST", each NPIFUN([TEXTNPI])),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #"Expanded SPECIALIST" = Table.ExpandTableColumn(#"Invoked Custom Function", "SPECIALIST", {"Value"}, {"SPECIALIST.Value"}),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Value = #"Expanded SPECIALIST"[Value]&lt;/P&gt;&lt;P&gt;in&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Value&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is from advanced editor.&amp;nbsp; I just want all records to show, whether or not there is information associated with it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, here is the function&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;let&lt;BR /&gt;Source = (#"NPI LOOKUP" as text) =&amp;gt; let&lt;BR /&gt;Source = try Json.Document(Web.Contents("&lt;A href="https://npiregistry.cms.hhs.gov/api/?version=2.1&amp;amp;number=" target="_blank" rel="noopener"&gt;https://npiregistry.cms.hhs.gov/api/?version=2.1&amp;amp;number=&lt;/A&gt;" &amp;amp; #"NPI LOOKUP"))otherwise null,&lt;BR /&gt;results = Source[results],&lt;BR /&gt;results1 = results{0},&lt;BR /&gt;taxonomies = results1[taxonomies],&lt;BR /&gt;taxonomies1 = taxonomies{0},&lt;BR /&gt;#"Converted to Table" = Record.ToTable(taxonomies1),&lt;BR /&gt;#"Filtered Rows" = Table.SelectRows(#"Converted to Table", each ([Name] = "desc")),&lt;BR /&gt;#"Removed Columns" = Table.RemoveColumns(#"Filtered Rows",{"Name"})&lt;BR /&gt;in&lt;BR /&gt;#"Removed Columns"&lt;BR /&gt;in&lt;BR /&gt;Source&lt;/P&gt;</description>
      <pubDate>Thu, 14 May 2020 21:15:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Error-Handling-Web-Query-API-stops-when-invoked-function-has-no/m-p/1090401#M36282</guid>
      <dc:creator>black6spd</dc:creator>
      <dc:date>2020-05-14T21:15:50Z</dc:date>
    </item>
    <item>
      <title>Re: Error Handling Web Query API stops when invoked function has no result</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Error-Handling-Web-Query-API-stops-when-invoked-function-has-no/m-p/1090815#M36296</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="230963" data-lia-user-login="black6spd" class="lia-mention lia-mention-user"&gt;black6spd&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You said that you get error when invoke function, so, if possible, could you please inform me more detailed information? And whether there is tutorial document of your function?&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Zoe Zhi&lt;/P&gt;</description>
      <pubDate>Fri, 15 May 2020 05:45:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Error-Handling-Web-Query-API-stops-when-invoked-function-has-no/m-p/1090815#M36296</guid>
      <dc:creator>dax</dc:creator>
      <dc:date>2020-05-15T05:45:18Z</dc:date>
    </item>
    <item>
      <title>Re: Error Handling Web Query API stops when invoked function has no result</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Error-Handling-Web-Query-API-stops-when-invoked-function-has-no/m-p/1091543#M36314</link>
      <description>&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Desktop/New-user-add-custom-column-that-queries-data-from-Web-Content/td-p/788623" target="_blank"&gt;https://community.powerbi.com/t5/Desktop/New-user-add-custom-column-that-queries-data-from-Web-Content/td-p/788623&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I re-read this again and replaced errors with null.&amp;nbsp; It is working now.&amp;nbsp; I had to do that before expanding the column.&lt;/P&gt;</description>
      <pubDate>Fri, 15 May 2020 12:29:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Error-Handling-Web-Query-API-stops-when-invoked-function-has-no/m-p/1091543#M36314</guid>
      <dc:creator>black6spd</dc:creator>
      <dc:date>2020-05-15T12:29:56Z</dc:date>
    </item>
  </channel>
</rss>

