<?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: In Fabric Failed to create session for executing notebook in Data Engineering</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Engineering/In-Fabric-Failed-to-create-session-for-executing-notebook/m-p/4371604#M6237</link>
    <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you for reaching out to Microsoft Fabric Community.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As we haven’t heard back from you, we wanted to kindly follow up to check if the solution I have provided for the issue worked? or let us know if you need any further assistance?&lt;BR /&gt;If my response addressed, please mark it as&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Accept as solution&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and click Yes if you found it helpful.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Anjan Kumar Chippa&lt;/P&gt;</description>
    <pubDate>Mon, 20 Jan 2025 10:03:47 GMT</pubDate>
    <dc:creator>v-achippa</dc:creator>
    <dc:date>2025-01-20T10:03:47Z</dc:date>
    <item>
      <title>In Fabric Failed to create session for executing notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/In-Fabric-Failed-to-create-session-for-executing-notebook/m-p/4360888#M6059</link>
      <description>&lt;P&gt;&lt;SPAN&gt;In Fabric, a user has set up a pipeline that includes a notebook, scheduled to run every 15 minutes. The pipeline runs 96 times a day, and it encountered 7 errors. The error message reads: {"ename":"Exception","evalue":"Failed to create session for executing notebook.traceback":["Exception: Failed to create session for executing notebook.SparkCoreError/Other: Livy session has failed. Error code: SparkCoreError/Other. SessionInfo.State from SparkCore is Error: Session acquisition failed due to session post personalization failure. Error code: LM_LibraryManagementPersonalizationStatement_Error Source: System."]}，message":"Notebook execution is in Failed state.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;Please pay attention to:&amp;nbsp;&lt;SPAN&gt;The pipeline consists of only one activity, which is a notebook. In most cases, the pipeline runs successfully. However, the user needs to understand the reasons behind the 7 failures of the pipeline runs, as this impacts the actual production environment.&amp;nbsp;The user encountered 7 failures out of 96 pipeline runs after modifying the following configurations.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The old configuration:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Richardzhu_0-1736747311950.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1225171iE5CD9A3C8FB0945C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Richardzhu_0-1736747311950.png" alt="Richardzhu_0-1736747311950.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The new configuration:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Richardzhu_1-1736747333789.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1225172i327B819269DE8C56/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Richardzhu_1-1736747333789.png" alt="Richardzhu_1-1736747333789.png" /&gt;&lt;/span&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&gt;&lt;SPAN&gt;&lt;STRONG&gt;Ask:&amp;nbsp;&lt;/STRONG&gt;&lt;BR /&gt;1&amp;nbsp;What is the reason for the 7 pipeline run failures out of the 96 runs in Fabric?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2&amp;nbsp;Can I reduce the likelihood of pipeline run errors by modifying the settings in the Fabric interface?&amp;nbsp;If possible, how can I make the specific modifications?&lt;BR /&gt;3&amp;nbsp;Could these settings potentially cause the pipeline runs to fail? If so, could you please explain the reasons for the errors?&lt;BR /&gt;&lt;BR /&gt;Here are some screenshot details:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Richardzhu_2-1736749974793.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1225189iC88535E3BF3BF43E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Richardzhu_2-1736749974793.png" alt="Richardzhu_2-1736749974793.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Richardzhu_3-1736750079664.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1225190i8277E0EE05994A1B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Richardzhu_3-1736750079664.png" alt="Richardzhu_3-1736750079664.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jan 2025 06:35:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/In-Fabric-Failed-to-create-session-for-executing-notebook/m-p/4360888#M6059</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-01-13T06:35:20Z</dc:date>
    </item>
    <item>
      <title>Re: In Fabric Failed to create session for executing notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/In-Fabric-Failed-to-create-session-for-executing-notebook/m-p/4365393#M6115</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi @Anonymous&lt;/a&gt;&amp;nbsp;The error message indicates that the failures occurred due to an inability to create a Spark session for executing the notebook. The root cause of these failures is likely related to&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;resource constraints&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;or&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;session management issues&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;within the Spark environment.&lt;BR /&gt;&lt;BR /&gt;Could you please share if for those 7 failures , no others jobs were running the Fabric Enviroment?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jan 2025 15:24:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/In-Fabric-Failed-to-create-session-for-executing-notebook/m-p/4365393#M6115</guid>
      <dc:creator>nilendraFabric</dc:creator>
      <dc:date>2025-01-15T15:24:55Z</dc:date>
    </item>
    <item>
      <title>Re: In Fabric Failed to create session for executing notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/In-Fabric-Failed-to-create-session-for-executing-notebook/m-p/4366019#M6136</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/913195"&gt;@nilendraFabric&lt;/a&gt;&amp;nbsp;, i&lt;SPAN&gt;n the Fabric environment, there were no other pipeline runs, only a single pipeline containing a Notebook activity was running.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2025 01:40:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/In-Fabric-Failed-to-create-session-for-executing-notebook/m-p/4366019#M6136</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-01-16T01:40:59Z</dc:date>
    </item>
    <item>
      <title>Re: In Fabric Failed to create session for executing notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/In-Fabric-Failed-to-create-session-for-executing-notebook/m-p/4366908#M6155</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you for reaching out to Microsoft Fabric Community.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The error message indicates the pipeline failed due to an issue with creating a Spark session. please follow the below solutions:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;In the new configuration, the minimum executor instances were increased, this higher demand may exceed the cluster's available resources during peak load times, leading to session initialization failures. Adjust the number of executors to a more manageable range (similar to the old configuration). This reduces the likelihood of cluster resource exhaustion.&lt;/LI&gt;
&lt;LI&gt;The higher number of executors combined with 16 cores and 112 GB per executor can exhaust cluster capacity, especially if other workloads are running concurrently. And also driver memory was reduced drastically from &lt;STRONG&gt;224 GB to 56 GB&lt;/STRONG&gt;, while executor memory remains high (112 GB). This imbalance can lead to spark application inefficiencies. So, increase driver memory to match the executor memory more closely.&lt;/LI&gt;
&lt;LI&gt;Running the notebook every &lt;STRONG&gt;15 minutes (96 times per day)&lt;/STRONG&gt; puts significant stress on the cluster. Increase the interval (&lt;STRONG&gt;20–30&lt;/STRONG&gt; minutes) between the pipeline runs to reduce cluster load.&lt;/LI&gt;
&lt;LI&gt;Ensure all libraries or dependencies required by the notebook are pre-installed and verified to avoid personalization errors.&lt;/LI&gt;
&lt;LI&gt;Add a retry mechanism to the pipeline to handle transient failures automatically.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Implement these changes to stabilize the pipeline and reduce the likelihood of failures&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;helps, then please consider&lt;SPAN&gt;&amp;nbsp;&lt;STRONG&gt;Accepting as solution&amp;nbsp;&lt;/STRONG&gt;to help the other members find it more quickly,&amp;nbsp;don't forget to give a&amp;nbsp;&lt;STRONG&gt;"Kudos"&lt;/STRONG&gt;&amp;nbsp;– I’d truly appreciate it!&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks and regards,&lt;/P&gt;
&lt;P&gt;Anjan Kumar Chippa&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2025 09:41:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/In-Fabric-Failed-to-create-session-for-executing-notebook/m-p/4366908#M6155</guid>
      <dc:creator>v-achippa</dc:creator>
      <dc:date>2025-01-16T09:41:30Z</dc:date>
    </item>
    <item>
      <title>Re: In Fabric Failed to create session for executing notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/In-Fabric-Failed-to-create-session-for-executing-notebook/m-p/4371604#M6237</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you for reaching out to Microsoft Fabric Community.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As we haven’t heard back from you, we wanted to kindly follow up to check if the solution I have provided for the issue worked? or let us know if you need any further assistance?&lt;BR /&gt;If my response addressed, please mark it as&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Accept as solution&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and click Yes if you found it helpful.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Anjan Kumar Chippa&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jan 2025 10:03:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/In-Fabric-Failed-to-create-session-for-executing-notebook/m-p/4371604#M6237</guid>
      <dc:creator>v-achippa</dc:creator>
      <dc:date>2025-01-20T10:03:47Z</dc:date>
    </item>
  </channel>
</rss>

