<?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: Resource Limitation Issue with Microsoft Fabric Pipeline in Data Engineering</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Resource-Limitation-Issue-with-Microsoft-Fabric-Pipeline/m-p/3506988#M1398</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/631700"&gt;@akanane&lt;/a&gt;&amp;nbsp;unfortunately there is no ability to execute notebooks in a high concurrency session via pipelines, the only way I've been able to solve your challenge is either:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Don't run the Notebook in a ForEach, but rather pass in values into a single Notebook run and then code a loop in the notebook itself.&amp;nbsp; E.G in the following I pass in a json array of folders and then loop through (sequentially)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AndyDDC_0-1698750180448.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/989296i253BDD724FE5ADFC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AndyDDC_0-1698750180448.png" alt="AndyDDC_0-1698750180448.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;or utilise multi-threading in the notenook to run code in parallel&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AndyDDC_1-1698750292465.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/989298iDE3E604F0A0EA019/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AndyDDC_1-1698750292465.png" alt="AndyDDC_1-1698750292465.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You could also have a read through this post by Lilliam&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://blog.fabric.microsoft.com/en-us/blog/microsoft-fabric-changing-the-game-exporting-data-and-building-the-lakehouse?ft=All:" target="_blank"&gt;Microsoft Fabric changing the game: Exporting data and building the Lakehouse | Microsoft Fabric Blog | Microsoft Fabric&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 31 Oct 2023 11:05:55 GMT</pubDate>
    <dc:creator>AndyDDC</dc:creator>
    <dc:date>2023-10-31T11:05:55Z</dc:date>
    <item>
      <title>Resource Limitation Issue with Microsoft Fabric Pipeline</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Resource-Limitation-Issue-with-Microsoft-Fabric-Pipeline/m-p/3506892#M1397</link>
      <description>&lt;P class=""&gt;Hello,&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;I am currently working with Microsoft Fabric and I am encountering an issue related to resource limitations when running notebooks in a foreach loop.&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;From the documentation, I understood that job types are classified into two categories: interactive (notebook &amp;amp; lakehouse-based) and batch (spark job definitions). Given that we are using a notebook in the pipeline, it is considered as an interactive job and after a couple of iterations we reach the capacity limit:&lt;EM&gt;Response code 430: Unable to submit this request because all the available capacity is currently being used. The suggested solutions are to cancel a currently running job, increase the available capacity, or try again later.&lt;/EM&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;On the other hand, for batch jobs, with queueing enabled, batch jobs are added to the queue and automatically retried when the capacity is freed up. But it seems we cannot trigger batch jobs via pipeline, only manually or by schedule.&lt;/P&gt;&lt;P class=""&gt;One workaround is to go through the loop sequentially (doesn't work when invoking a child pipeline with a notebook activity) but i was wondering if there is a better way to do this.&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;Any help or guidance would be greatly appreciated.&lt;/P&gt;&lt;P class=""&gt;Thank you,&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;Amnay&lt;/P&gt;</description>
      <pubDate>Tue, 31 Oct 2023 10:26:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Resource-Limitation-Issue-with-Microsoft-Fabric-Pipeline/m-p/3506892#M1397</guid>
      <dc:creator>akanane</dc:creator>
      <dc:date>2023-10-31T10:26:22Z</dc:date>
    </item>
    <item>
      <title>Re: Resource Limitation Issue with Microsoft Fabric Pipeline</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Resource-Limitation-Issue-with-Microsoft-Fabric-Pipeline/m-p/3506988#M1398</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/631700"&gt;@akanane&lt;/a&gt;&amp;nbsp;unfortunately there is no ability to execute notebooks in a high concurrency session via pipelines, the only way I've been able to solve your challenge is either:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Don't run the Notebook in a ForEach, but rather pass in values into a single Notebook run and then code a loop in the notebook itself.&amp;nbsp; E.G in the following I pass in a json array of folders and then loop through (sequentially)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AndyDDC_0-1698750180448.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/989296i253BDD724FE5ADFC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AndyDDC_0-1698750180448.png" alt="AndyDDC_0-1698750180448.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;or utilise multi-threading in the notenook to run code in parallel&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AndyDDC_1-1698750292465.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/989298iDE3E604F0A0EA019/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AndyDDC_1-1698750292465.png" alt="AndyDDC_1-1698750292465.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You could also have a read through this post by Lilliam&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://blog.fabric.microsoft.com/en-us/blog/microsoft-fabric-changing-the-game-exporting-data-and-building-the-lakehouse?ft=All:" target="_blank"&gt;Microsoft Fabric changing the game: Exporting data and building the Lakehouse | Microsoft Fabric Blog | Microsoft Fabric&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Oct 2023 11:05:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Resource-Limitation-Issue-with-Microsoft-Fabric-Pipeline/m-p/3506988#M1398</guid>
      <dc:creator>AndyDDC</dc:creator>
      <dc:date>2023-10-31T11:05:55Z</dc:date>
    </item>
    <item>
      <title>Re: Resource Limitation Issue with Microsoft Fabric Pipeline</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Resource-Limitation-Issue-with-Microsoft-Fabric-Pipeline/m-p/3507206#M1399</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/265587"&gt;@AndyDDC&lt;/a&gt;, I had those two options in mind but the notebook becomes a "black-box" and requires additional development effort of error handling, logs etc...&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Anyway, thank you for your insight! I will definitely checkout the post &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Have a good day &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Oct 2023 13:05:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Resource-Limitation-Issue-with-Microsoft-Fabric-Pipeline/m-p/3507206#M1399</guid>
      <dc:creator>akanane</dc:creator>
      <dc:date>2023-10-31T13:05:49Z</dc:date>
    </item>
    <item>
      <title>Re: Resource Limitation Issue with Microsoft Fabric Pipeline</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Resource-Limitation-Issue-with-Microsoft-Fabric-Pipeline/m-p/3507841#M1400</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/631700"&gt;@akanane&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Thanks for using Fabric Capacity.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Notebooks are considered as interactive jobs, and there is a limit on the number of interactive jobs that can run simultaneously. When you run a foreach loop in a notebook, each iteration of the loop is treated as a separate interactive job. If the number of iterations exceeds the capacity limit, you will receive the error message you described.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;There are a few workarounds that you can use:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Increase the available capacity.&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;Run the foreach loop sequentially.&amp;nbsp;This will reduce the number of interactive jobs that are running simultaneously, but it will also make the pipeline slower.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vgchennamsft_0-1698773561174.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/989550i94BFC97DD845EBE1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vgchennamsft_0-1698773561174.png" alt="vgchennamsft_0-1698773561174.png" /&gt;&lt;/span&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Hope this is helpful.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Oct 2023 17:32:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Resource-Limitation-Issue-with-Microsoft-Fabric-Pipeline/m-p/3507841#M1400</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-10-31T17:32:49Z</dc:date>
    </item>
    <item>
      <title>Re: Resource Limitation Issue with Microsoft Fabric Pipeline</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Resource-Limitation-Issue-with-Microsoft-Fabric-Pipeline/m-p/3517989#M1401</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/631700"&gt;@akanane&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Glad to know you got some insights. Please continue using Fabric Community incase of any queries.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2023 15:09:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Resource-Limitation-Issue-with-Microsoft-Fabric-Pipeline/m-p/3517989#M1401</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-11-06T15:09:20Z</dc:date>
    </item>
    <item>
      <title>Re: Resource Limitation Issue with Microsoft Fabric Pipeline</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Resource-Limitation-Issue-with-Microsoft-Fabric-Pipeline/m-p/3522329#M1402</link>
      <description>&lt;P&gt;Hello again,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I appreciate your answers&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/265587"&gt;@AndyDDC&lt;/a&gt;&amp;nbsp;,&amp;nbsp;@Anonymous&lt;/a&gt;&amp;nbsp;as it represents a valid workaround to achieve the goal. However, loading/transforming is considered a batch job so according to the documentation, it shouldn't be done with notebook as they're interactive and not designed for batch job.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;What should be done in production though? Will we be able to trigger spark definition job from pipelines in the future ?&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2023 12:00:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Resource-Limitation-Issue-with-Microsoft-Fabric-Pipeline/m-p/3522329#M1402</guid>
      <dc:creator>akanane</dc:creator>
      <dc:date>2023-11-08T12:00:24Z</dc:date>
    </item>
    <item>
      <title>Re: Resource Limitation Issue with Microsoft Fabric Pipeline</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Resource-Limitation-Issue-with-Microsoft-Fabric-Pipeline/m-p/3522364#M1403</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/631700"&gt;@akanane&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;We can also use notebooks as a batch job based on our requirment as they can be used for both (interactive and batch operations).&lt;BR /&gt;&lt;BR /&gt;At present we cannot trigger spark definition job from pipelines.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Appreciate if you could share the feedback on our&amp;nbsp;&lt;A href="https://ideas.fabric.microsoft.com/" target="_blank" rel="noopener"&gt;feedback channel&lt;/A&gt;.&amp;nbsp;Which would be open for the user community to upvote &amp;amp; comment on. This allows our product teams to effectively prioritize your request against our existing feature backlog and gives insight into the potential impact of implementing the suggested feature.&lt;BR /&gt;&lt;BR /&gt;In mean while, I will try to check with team whether these activities are already in internal roadmap or not.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps. Please let me know if you have any further queries.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2023 12:17:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Resource-Limitation-Issue-with-Microsoft-Fabric-Pipeline/m-p/3522364#M1403</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-11-08T12:17:51Z</dc:date>
    </item>
  </channel>
</rss>

