<?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: Web API in Dataflow Gen2 fails on publish to my Lakehouse? in Dataflow</title>
    <link>https://community.fabric.microsoft.com/t5/Dataflow/Web-API-in-Dataflow-Gen2-fails-on-publish-to-my-Lakehouse/m-p/3393365#M718</link>
    <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt; Please see attached.&lt;/P&gt;</description>
    <pubDate>Tue, 22 Aug 2023 20:19:29 GMT</pubDate>
    <dc:creator>mwaltercpa</dc:creator>
    <dc:date>2023-08-22T20:19:29Z</dc:date>
    <item>
      <title>Web API in Dataflow Gen2 fails on publish to my Lakehouse?</title>
      <link>https://community.fabric.microsoft.com/t5/Dataflow/Web-API-in-Dataflow-Gen2-fails-on-publish-to-my-Lakehouse/m-p/3391229#M708</link>
      <description>&lt;P&gt;I am using the Web API datasource to connect to a JSON source table via Dataflows Gen2. If I leave the M code as is, I get the first page (50 records) in my preview. I am then able to Publish to my lakehouse and view the table as a delta formated table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, when I add a M function to page through more than the first page (50 records), even though I am still able to view the exact same result in my preview window (50 records, limited to just page 1), I am unsuccessful in posting this same table, same schema etc. to my lakehouse. Using the later M code, I get an error when publishing to the lakehouse.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Here are the two different versions of my M code, the first works, the second fails. But they both succesffuly display in the DF preview.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please note that I masked my URL with zeros.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;**** This version completes the table in Dataflows, and allows me to post as Delta in my Lakehouse ******&lt;/P&gt;&lt;P&gt;let&lt;BR /&gt;Source = Json.Document(Web.Contents("&lt;A href="http://192.000.00.18:20002/api/CUSTOMERS.PBI" target="_blank" rel="noopener"&gt;http://192.000.00.18:20002/api/CUSTOMERS.PBI&lt;/A&gt;")),&lt;BR /&gt;#"Converted to table" = Table.FromRecords({Source}),&lt;BR /&gt;#"Expanded customers" = Table.ExpandListColumn(#"Converted to table", "customers"),&lt;BR /&gt;#"Expanded customers1" = Table.ExpandRecordColumn(#"Expanded customers", "customers", {"id", "date_entered", "name", "full_name", "phone", "customer_type", "customer_type_desc", "email", "terrritory", "rank", "sales_rep", "sales_rep_name", "vendor_nbr", "credit_limit", "cat_tax", "tax_nbr", "shop_name", "billing_address"}, {"customers.id", "customers.date_entered", "customers.name", "customers.full_name", "customers.phone", "customers.customer_type", "customers.customer_type_desc", "customers.email", "customers.terrritory", "customers.rank", "customers.sales_rep", "customers.sales_rep_name", "customers.vendor_nbr", "customers.credit_limit", "customers.cat_tax", "customers.tax_nbr", "customers.shop_name", "customers.billing_address"}),&lt;BR /&gt;#"Expanded customers.billing_address" = Table.ExpandListColumn(#"Expanded customers1", "customers.billing_address"),&lt;BR /&gt;#"Expanded customers.billing_address1" = Table.ExpandRecordColumn(#"Expanded customers.billing_address", "customers.billing_address", {"id", "company_id", "address1", "address2", "city", "province", "zip"}, {"customers.billing_address.id", "customers.billing_address.company_id", "customers.billing_address.address1", "customers.billing_address.address2", "customers.billing_address.city", "customers.billing_address.province", "customers.billing_address.zip"}),&lt;BR /&gt;#"Changed column type" = Table.TransformColumnTypes(#"Expanded customers.billing_address1", {&lt;BR /&gt;{"customers.id", Int64.Type},&lt;BR /&gt;{"customers.date_entered", type date},&lt;BR /&gt;{"customers.name", type text},&lt;BR /&gt;{"customers.full_name", type text},&lt;BR /&gt;{"customers.phone", Int64.Type},&lt;BR /&gt;{"customers.customer_type", type text},&lt;BR /&gt;{"customers.customer_type_desc", type text},&lt;BR /&gt;{"customers.email", type text},&lt;BR /&gt;{"customers.terrritory", Int64.Type},&lt;BR /&gt;{"customers.rank", type text},&lt;BR /&gt;{"customers.sales_rep", Int64.Type},&lt;BR /&gt;{"customers.sales_rep_name", type text},&lt;BR /&gt;{"customers.vendor_nbr", type text},&lt;BR /&gt;{"customers.credit_limit", Int64.Type},&lt;BR /&gt;{"customers.cat_tax", type text},&lt;BR /&gt;{"customers.tax_nbr", type text},&lt;BR /&gt;{"customers.shop_name", type text},&lt;BR /&gt;{"customers.billing_address.id", Int64.Type},&lt;BR /&gt;{"customers.billing_address.company_id", type text},&lt;BR /&gt;{"customers.billing_address.address1", type text},&lt;BR /&gt;{"customers.billing_address.address2", type text},&lt;BR /&gt;{"customers.billing_address.city", type text},&lt;BR /&gt;{"customers.billing_address.province", type text},&lt;BR /&gt;{"customers.billing_address.zip", type text},&lt;BR /&gt;{"status", type text},&lt;BR /&gt;{"statusmsg", type text}&lt;BR /&gt;})&lt;BR /&gt;in&lt;BR /&gt;#"Changed column type"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;//----------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;**** This version completes the table in Dataflows, but ERRORS when trying to post to my Lakehouse ******&lt;BR /&gt;Dataflow ID: 4c893113-92f1-411f-835a-68eb7801be47&lt;BR /&gt;Session ID: d4fc34fa-7e6b-9edf-3c01-ea927ed87749&lt;BR /&gt;Root activity ID: e28dab67-5c68-46ae-a659-20be76b3a0e4&lt;BR /&gt;Time: 2023-08-21T18:23:35.257Z&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;/*let&lt;BR /&gt;// Define the base URL&lt;BR /&gt;baseUrl = "&lt;A href="http://192.000.00.18:20002/api/CUSTOMERS.PBI" target="_blank" rel="noopener"&gt;http://192.000.00.18:20002/api/CUSTOMERS.PBI&lt;/A&gt;",&lt;/P&gt;&lt;P&gt;// ****** Function to get data from a specific pages *******&lt;/P&gt;&lt;P&gt;GetDataFromPage = (page) =&amp;gt;&lt;BR /&gt;let&lt;BR /&gt;// Append page number to the URL&lt;BR /&gt;url = baseUrl &amp;amp; "?page=" &amp;amp; Text.From(page),&lt;BR /&gt;Source = Json.Document(Web.Contents(url)),&lt;BR /&gt;ConvertedTable = Table.FromRecords({Source})&lt;BR /&gt;&lt;BR /&gt;in&lt;BR /&gt;ConvertedTable,&lt;/P&gt;&lt;P&gt;// ******* END NESTED FUNCTION ***********************&lt;BR /&gt;&lt;BR /&gt;// "PAGES" Define the number of pages available (adjust as needed)&lt;BR /&gt;maxPages = 1,&lt;BR /&gt;&lt;BR /&gt;// Create a list that holds the data from all pages&lt;BR /&gt;allData = List.Generate(&lt;BR /&gt;() =&amp;gt; [page = 1, data = GetDataFromPage(1)],&lt;BR /&gt;each [page] &amp;lt;= maxPages,&lt;BR /&gt;each [page = [page] + 1, data = GetDataFromPage([page])],&lt;BR /&gt;each [data]&lt;BR /&gt;),&lt;BR /&gt;&lt;BR /&gt;// Combine all the data from different pages&lt;BR /&gt;combinedData = Table.Combine(allData),&lt;BR /&gt;&lt;BR /&gt;// Expand customers&lt;BR /&gt;#"Expanded customers" = Table.ExpandListColumn(combinedData, "customers"),&lt;/P&gt;&lt;P&gt;#"Expanded customers1" = Table.ExpandRecordColumn(#"Expanded customers", "customers", {"id", "date_entered", "name", "full_name", "phone", "customer_type", "customer_type_desc", "email", "terrritory", "rank", "sales_rep", "sales_rep_name", "vendor_nbr", "credit_limit", "cat_tax", "tax_nbr", "shop_name", "billing_address"}, {"customers.id", "customers.date_entered", "customers.name", "customers.full_name", "customers.phone", "customers.customer_type", "customers.customer_type_desc", "customers.email", "customers.terrritory", "customers.rank", "customers.sales_rep", "customers.sales_rep_name", "customers.vendor_nbr", "customers.credit_limit", "customers.cat_tax", "customers.tax_nbr", "customers.shop_name", "customers.billing_address"}),&lt;BR /&gt;#"Expanded customers.billing_address" = Table.ExpandListColumn(#"Expanded customers1", "customers.billing_address"),&lt;BR /&gt;#"Expanded customers.billing_address1" = Table.ExpandRecordColumn(#"Expanded customers.billing_address", "customers.billing_address", {"id", "company_id", "address1", "address2", "city", "province", "zip"}, {"customers.billing_address.id", "customers.billing_address.company_id", "customers.billing_address.address1", "customers.billing_address.address2", "customers.billing_address.city", "customers.billing_address.province", "customers.billing_address.zip"}),&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;// Change column schema&lt;BR /&gt;#"Changed column type" = Table.TransformColumnTypes(#"Expanded customers.billing_address1", {&lt;BR /&gt;{"customers.id", Int64.Type},&lt;BR /&gt;{"customers.date_entered", type date},&lt;BR /&gt;{"customers.name", type text},&lt;BR /&gt;{"customers.full_name", type text},&lt;BR /&gt;{"customers.phone", Int64.Type},&lt;BR /&gt;{"customers.customer_type", type text},&lt;BR /&gt;{"customers.customer_type_desc", type text},&lt;BR /&gt;{"customers.email", type text},&lt;BR /&gt;{"customers.terrritory", Int64.Type},&lt;BR /&gt;{"customers.rank", type text},&lt;BR /&gt;{"customers.sales_rep", Int64.Type},&lt;BR /&gt;{"customers.sales_rep_name", type text},&lt;BR /&gt;{"customers.vendor_nbr", type text},&lt;BR /&gt;{"customers.credit_limit", Int64.Type},&lt;BR /&gt;{"customers.cat_tax", type text},&lt;BR /&gt;{"customers.tax_nbr", type text},&lt;BR /&gt;{"customers.shop_name", type text},&lt;BR /&gt;{"customers.billing_address.id", type text},&lt;BR /&gt;{"customers.billing_address.company_id", type text},&lt;BR /&gt;{"customers.billing_address.address1", type text},&lt;BR /&gt;{"customers.billing_address.address2", type text},&lt;BR /&gt;{"customers.billing_address.city", type text},&lt;BR /&gt;{"customers.billing_address.province", type text},&lt;BR /&gt;{"customers.billing_address.zip", type text},&lt;BR /&gt;{"status", type text},&lt;BR /&gt;{"statusmsg", type text}&lt;BR /&gt;})&lt;BR /&gt;&lt;BR /&gt;in&lt;BR /&gt;#"Changed column type"*/&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Aug 2023 23:47:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Dataflow/Web-API-in-Dataflow-Gen2-fails-on-publish-to-my-Lakehouse/m-p/3391229#M708</guid>
      <dc:creator>mwaltercpa</dc:creator>
      <dc:date>2023-08-21T23:47:13Z</dc:date>
    </item>
    <item>
      <title>Re: Web API in Dataflow Gen2 fails on publish to my Lakehouse?</title>
      <link>https://community.fabric.microsoft.com/t5/Dataflow/Web-API-in-Dataflow-Gen2-fails-on-publish-to-my-Lakehouse/m-p/3392936#M714</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;What's the error message?&lt;BR /&gt;&lt;BR /&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dennes&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2023 15:59:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Dataflow/Web-API-in-Dataflow-Gen2-fails-on-publish-to-my-Lakehouse/m-p/3392936#M714</guid>
      <dc:creator>DennesTorres</dc:creator>
      <dc:date>2023-08-22T15:59:43Z</dc:date>
    </item>
    <item>
      <title>Re: Web API in Dataflow Gen2 fails on publish to my Lakehouse?</title>
      <link>https://community.fabric.microsoft.com/t5/Dataflow/Web-API-in-Dataflow-Gen2-fails-on-publish-to-my-Lakehouse/m-p/3393365#M718</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt; Please see attached.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2023 20:19:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Dataflow/Web-API-in-Dataflow-Gen2-fails-on-publish-to-my-Lakehouse/m-p/3393365#M718</guid>
      <dc:creator>mwaltercpa</dc:creator>
      <dc:date>2023-08-22T20:19:29Z</dc:date>
    </item>
    <item>
      <title>Re: Web API in Dataflow Gen2 fails on publish to my Lakehouse?</title>
      <link>https://community.fabric.microsoft.com/t5/Dataflow/Web-API-in-Dataflow-Gen2-fails-on-publish-to-my-Lakehouse/m-p/3393626#M719</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It took me a while to notice: The error message says "Dataflow Publish failed".&lt;BR /&gt;&lt;BR /&gt;This means the error happened while you were publishing the dataflow, not while it was being executed. (I believe for the execution the error would be different).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It can be something temporary, or an issue with Fabric, or some feature not supported yet. I would suspect the M code, but you highlighted a lot how it works in preview. But some feature you are using on this M code may not be well accepted by Fabric at the moment.&lt;BR /&gt;&lt;BR /&gt;Maybe a support ticket to help you find exactly what?&lt;BR /&gt;&lt;BR /&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dennes&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2023 00:37:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Dataflow/Web-API-in-Dataflow-Gen2-fails-on-publish-to-my-Lakehouse/m-p/3393626#M719</guid>
      <dc:creator>DennesTorres</dc:creator>
      <dc:date>2023-08-23T00:37:56Z</dc:date>
    </item>
  </channel>
</rss>

