<?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: Error when called StoreProcedure from Pipeline / failed to generate query plan in Pipelines</title>
    <link>https://community.fabric.microsoft.com/t5/Pipelines/Error-when-called-StoreProcedure-from-Pipeline-failed-to/m-p/4602747#M7253</link>
    <description>&lt;P&gt;I have a similar problem , My StoreProcedure is&amp;nbsp; doing Update and insert opwration, but when i am running in the Pipeline with the StoredProcedure Activity and also script activity the updae and insert statement not populating correctly. Please give a suggistion how to solve it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;kavya Bhat.&lt;/P&gt;</description>
    <pubDate>Mon, 10 Mar 2025 07:41:51 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2025-03-10T07:41:51Z</dc:date>
    <item>
      <title>Error when called StoreProcedure from Pipeline / failed to generate query plan</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Error-when-called-StoreProcedure-from-Pipeline-failed-to/m-p/4154779#M5428</link>
      <description>&lt;P&gt;Dear all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am calling a stored procedure in my Fabric DWH from a pipeline.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Proc is for incremental data load.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It performs the following operations in order to merge a table with new/modified records into the main table.&lt;/P&gt;&lt;P&gt;- Update modified records&lt;/P&gt;&lt;P&gt;- Insert new records&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That works well for a lot of tables, but for few tables I'm get the following error message during the update step:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"Request to perform an external distributed computation has failed with error "100001;Failed to generate query plan.".&lt;/P&gt;&lt;P&gt;Statement ID: {C98...."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone help with an idea what this is about and how to solve?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks and best regards!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2024 15:36:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Error-when-called-StoreProcedure-from-Pipeline-failed-to/m-p/4154779#M5428</guid>
      <dc:creator>GHerz</dc:creator>
      <dc:date>2024-09-17T15:36:08Z</dc:date>
    </item>
    <item>
      <title>Re: Error when called StoreProcedure from Pipeline / failed to generate query plan</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Error-when-called-StoreProcedure-from-Pipeline-failed-to/m-p/4155466#M5432</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="361113" data-lia-user-login="GHerz" class="lia-mention lia-mention-user"&gt;GHerz&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I noticed in your error you mentioned “100001;Failed to generate query plan.”. This error is due to a query plan generation issue in distributed environments such as Microsoft Fabric DWH.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sometimes, complex queries, especially those involving COUNT(DISTINCT ...) can cause problems. Simplifying the query or using a function such as APPROX_COUNT_DISTINCT may help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Errors may be related to the distribution of queries across nodes. Ensure that data distribution and degree of parallelism (DOP) are properly configured.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;If you want to know more about this error, I think you can look at this topic:&amp;nbsp;&lt;A href="https://techcommunity.microsoft.com/t5/sql-server-support-blog/polybase-error-100001-failed-to-generate-query-plan/ba-p/2174693" target="_blank"&gt;PolyBase error - 100001;Failed to generate query plan. - Microsoft Community Hub&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin-bottom: 6.0pt;"&gt;&lt;SPAN&gt;Best Regards&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin-bottom: 6.0pt;"&gt;&lt;SPAN&gt;Yilong Zhou&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin-bottom: 6.0pt;"&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;I&gt;helps&lt;/I&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;I&gt;Accept it as the solution&lt;/I&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Sep 2024 01:58:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Error-when-called-StoreProcedure-from-Pipeline-failed-to/m-p/4155466#M5432</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-09-18T01:58:01Z</dc:date>
    </item>
    <item>
      <title>Re: Error when called StoreProcedure from Pipeline / failed to generate query plan</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Error-when-called-StoreProcedure-from-Pipeline-failed-to/m-p/4156258#M5437</link>
      <description>&lt;P&gt;Dear&amp;nbsp;&lt;SPAN&gt;Yilong Zhou&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;your comment pointed me in the right direction.&amp;nbsp;&lt;/P&gt;&lt;P&gt;My Procedure, that runs in the DWH, uses a view from the Lakehouse.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to materialize the view into a DWH Table and using this table instead seems to solve my problem.&lt;/P&gt;&lt;P&gt;Thanks, Gunnar&lt;/P&gt;</description>
      <pubDate>Wed, 18 Sep 2024 09:00:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Error-when-called-StoreProcedure-from-Pipeline-failed-to/m-p/4156258#M5437</guid>
      <dc:creator>GHerz</dc:creator>
      <dc:date>2024-09-18T09:00:17Z</dc:date>
    </item>
    <item>
      <title>Re: Error when called StoreProcedure from Pipeline / failed to generate query plan</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Error-when-called-StoreProcedure-from-Pipeline-failed-to/m-p/4602747#M7253</link>
      <description>&lt;P&gt;I have a similar problem , My StoreProcedure is&amp;nbsp; doing Update and insert opwration, but when i am running in the Pipeline with the StoredProcedure Activity and also script activity the updae and insert statement not populating correctly. Please give a suggistion how to solve it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;kavya Bhat.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Mar 2025 07:41:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Error-when-called-StoreProcedure-from-Pipeline-failed-to/m-p/4602747#M7253</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-03-10T07:41:51Z</dc:date>
    </item>
  </channel>
</rss>

