<?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: Fabric Failed to create session for executing notebook in Data Engineering</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Fabric-Failed-to-create-session-for-executing-notebook/m-p/4688608#M9218</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/756518"&gt;@UdaySutar&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;The error message:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Failed to create session for executing notebook… Cluster was in terminal state=[Cancelled]"&lt;/LI-CODE&gt;
&lt;P&gt;This issue often occurs during scheduled executions because the Spark cluster is provisioned on demand. If the cluster fails to initialize in time, it may timeout or terminate unexpectedly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To improve the reliability of scheduled pipeline runs, consider configuring the environment to use High Concurrency Mode with a session tag. This allows the pipeline to reuse an existing Spark session, reducing cold start delays that often disrupt scheduled tasks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;By using an active high concurrency session, the scheduled pipeline avoids the overhead of starting a new cluster each time, ensuring smoother execution and better stability.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps....&lt;SPAN&gt;Please&amp;nbsp;&lt;STRONG&gt;Accept as solution&lt;/STRONG&gt;&amp;nbsp;if this meets your needs and a Kudos would be appreciated.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Yugandhar.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 12 May 2025 07:14:44 GMT</pubDate>
    <dc:creator>V-yubandi-msft</dc:creator>
    <dc:date>2025-05-12T07:14:44Z</dc:date>
    <item>
      <title>Fabric Failed to create session for executing notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Fabric-Failed-to-create-session-for-executing-notebook/m-p/4682256#M9112</link>
      <description>&lt;P&gt;&lt;!--   StartFragment    --&gt;&lt;/P&gt;&lt;P&gt;The pipeline contains a &lt;STRONG&gt;notebook activity&lt;/STRONG&gt;, and while it &lt;STRONG&gt;runs successfully at times&lt;/STRONG&gt;, it occasionally &lt;STRONG&gt;fails&lt;/STRONG&gt;, generating the following error.Please provide the reason of failure and how to fix this permanantly.&lt;/P&gt;&lt;P&gt;&lt;!--   EndFragment    --&gt;&lt;BR /&gt;"error": {&lt;BR /&gt;"ename": "Exception",&lt;BR /&gt;"evalue": "Failed to create session for executing notebook. SessionId: Notebook: Notebook_",&lt;BR /&gt;"traceback": [&lt;BR /&gt;"Exception: Failed to create session for executing notebook. SessionId: Notebook: Notebook_",&lt;BR /&gt;"--&amp;gt; SparkCoreError/UnexpectedSessionState: Livy session has failed. Error code: SparkCoreError/UnexpectedSessionState. SessionInfo.State from SparkCore is Error: Encountered an unexpected session state Error while waiting for session to become Idle. Error description: [plugins.. WorkspaceType:&amp;lt;&amp;gt; CCID:&amp;lt;&amp;gt;] Attempt=[1]/[3]Cluster was in terminal state=[Cancelled] before it reached 'Ready' state. Cluster job has WorkspaceName=[], SpecName=[], and JobId=[].. Source: SparkCoreService."&lt;BR /&gt;]&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 May 2025 17:53:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Fabric-Failed-to-create-session-for-executing-notebook/m-p/4682256#M9112</guid>
      <dc:creator>UdaySutar</dc:creator>
      <dc:date>2025-05-06T17:53:11Z</dc:date>
    </item>
    <item>
      <title>Re: Fabric Failed to create session for executing notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Fabric-Failed-to-create-session-for-executing-notebook/m-p/4682541#M9117</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/756518"&gt;@UdaySutar&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Thank you for engaging with the Microsoft Fabric Community.&amp;nbsp; The Spark runtime in Microsoft Fabric couldn't become ready and was shut down before execution. This happened due to limited resources, excessive job queue times, or failures in cluster setup and provisioning.&lt;/P&gt;
&lt;P&gt;To resolve the notebook execution issue in Microsoft Fabric, make sure the Spark pool has enough resources and is properly configured.&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;If sessions fail, increase the timeout duration to allow more startup time.&lt;/LI&gt;
&lt;LI&gt;If problems continue, restart the notebook block or terminate old sessions that might be causing conflicts.&lt;/LI&gt;
&lt;LI&gt;Scaling up resources in the Spark pool can improve performance, and checking for Fabric service outages ensures the issue isn't due to system disruptions&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I found similar issues in the community that might be useful for your case, so it’s worth checking them out.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Data-Engineering/In-Fabric-Failed-to-create-session-for-executing-notebook/m-p/4360888" target="_blank"&gt;Solved: In Fabric Failed to create session for executing n... - Microsoft Fabric Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Data-Engineering/Unable-to-start-spark-session-Livy-session-has-failed-Error-code/m-p/3461134" target="_blank"&gt;Solved: Unable to start spark session: Livy session has fa... - Microsoft Fabric Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-teams="true"&gt;If my response resolved your query, kindly mark it as the&amp;nbsp;&lt;STRONG&gt;Accepted Solution&lt;/STRONG&gt;&amp;nbsp;to assist others. Additionally, I would be grateful for a&amp;nbsp;&lt;STRONG&gt;'Kudos'&lt;/STRONG&gt;&amp;nbsp;if you found my response helpful.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 May 2025 04:55:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Fabric-Failed-to-create-session-for-executing-notebook/m-p/4682541#M9117</guid>
      <dc:creator>V-yubandi-msft</dc:creator>
      <dc:date>2025-05-07T04:55:01Z</dc:date>
    </item>
    <item>
      <title>Re: Fabric Failed to create session for executing notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Fabric-Failed-to-create-session-for-executing-notebook/m-p/4684922#M9148</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/756518"&gt;@UdaySutar&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Might be it is trying to spin up to multiple sessions to run the notebooks. Have you trued session tags and high concurrency session.? It can help you saving costs, startup time and it can avoid creating multiple sessions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Srisakthi&lt;/P&gt;</description>
      <pubDate>Thu, 08 May 2025 12:35:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Fabric-Failed-to-create-session-for-executing-notebook/m-p/4684922#M9148</guid>
      <dc:creator>Srisakthi</dc:creator>
      <dc:date>2025-05-08T12:35:28Z</dc:date>
    </item>
    <item>
      <title>Re: Fabric Failed to create session for executing notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Fabric-Failed-to-create-session-for-executing-notebook/m-p/4684949#M9149</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/782160"&gt;@Srisakthi&lt;/a&gt;&amp;nbsp;- can you explain in detail each steps to proceed&amp;nbsp; ?&lt;/P&gt;</description>
      <pubDate>Thu, 08 May 2025 12:38:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Fabric-Failed-to-create-session-for-executing-notebook/m-p/4684949#M9149</guid>
      <dc:creator>UdaySutar</dc:creator>
      <dc:date>2025-05-08T12:38:26Z</dc:date>
    </item>
    <item>
      <title>Re: Fabric Failed to create session for executing notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Fabric-Failed-to-create-session-for-executing-notebook/m-p/4684982#M9152</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/756518"&gt;@UdaySutar&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Step 1:&amp;nbsp; Goto your Workspace settings -&amp;gt; Spark settings -&amp;gt; High Concurrency then enable for notebooks and pipeline run options.&lt;/P&gt;&lt;P&gt;Step 2 : In your notebook attach to high concurrency session(use when you want to run manually)&lt;/P&gt;&lt;P&gt;Step 3: In your data pipeline -&amp;gt; notebook activity -&amp;gt; settings -&amp;gt; Advanced settings -&amp;gt; give your session tag name(anything)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So now when you run your pipeline, if no high concurrency session available it will create high concurrency session and in one session it can execute 5 notebooks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Reference :&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/fabric/data-engineering/configure-high-concurrency-session-notebooks-in-pipelines" target="_blank"&gt;https://learn.microsoft.com/en-us/fabric/data-engineering/configure-high-concurrency-session-notebooks-in-pipelines&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Srisakthi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 May 2025 12:45:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Fabric-Failed-to-create-session-for-executing-notebook/m-p/4684982#M9152</guid>
      <dc:creator>Srisakthi</dc:creator>
      <dc:date>2025-05-08T12:45:31Z</dc:date>
    </item>
    <item>
      <title>Re: Fabric Failed to create session for executing notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Fabric-Failed-to-create-session-for-executing-notebook/m-p/4685378#M9159</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/782160"&gt;@Srisakthi&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;this is failing for scheduled pipeline. can we connect on this .&lt;/P&gt;</description>
      <pubDate>Thu, 08 May 2025 16:33:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Fabric-Failed-to-create-session-for-executing-notebook/m-p/4685378#M9159</guid>
      <dc:creator>UdaySutar</dc:creator>
      <dc:date>2025-05-08T16:33:46Z</dc:date>
    </item>
    <item>
      <title>Re: Fabric Failed to create session for executing notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Fabric-Failed-to-create-session-for-executing-notebook/m-p/4688608#M9218</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/756518"&gt;@UdaySutar&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;The error message:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Failed to create session for executing notebook… Cluster was in terminal state=[Cancelled]"&lt;/LI-CODE&gt;
&lt;P&gt;This issue often occurs during scheduled executions because the Spark cluster is provisioned on demand. If the cluster fails to initialize in time, it may timeout or terminate unexpectedly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To improve the reliability of scheduled pipeline runs, consider configuring the environment to use High Concurrency Mode with a session tag. This allows the pipeline to reuse an existing Spark session, reducing cold start delays that often disrupt scheduled tasks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;By using an active high concurrency session, the scheduled pipeline avoids the overhead of starting a new cluster each time, ensuring smoother execution and better stability.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps....&lt;SPAN&gt;Please&amp;nbsp;&lt;STRONG&gt;Accept as solution&lt;/STRONG&gt;&amp;nbsp;if this meets your needs and a Kudos would be appreciated.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Yugandhar.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 12 May 2025 07:14:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Fabric-Failed-to-create-session-for-executing-notebook/m-p/4688608#M9218</guid>
      <dc:creator>V-yubandi-msft</dc:creator>
      <dc:date>2025-05-12T07:14:44Z</dc:date>
    </item>
    <item>
      <title>Re: Fabric Failed to create session for executing notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Fabric-Failed-to-create-session-for-executing-notebook/m-p/4688685#M9220</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/756518"&gt;@UdaySutar&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We can connect.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Srisakthi&lt;/P&gt;</description>
      <pubDate>Mon, 12 May 2025 08:31:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Fabric-Failed-to-create-session-for-executing-notebook/m-p/4688685#M9220</guid>
      <dc:creator>Srisakthi</dc:creator>
      <dc:date>2025-05-12T08:31:57Z</dc:date>
    </item>
    <item>
      <title>Re: Fabric Failed to create session for executing notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Fabric-Failed-to-create-session-for-executing-notebook/m-p/4694332#M9320</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/756518"&gt;@UdaySutar&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-teams="true"&gt;Can you please confirm if the solution worked for you. If it did, please consider marking the answer&amp;nbsp;&lt;STRONG&gt;'Accept as Solution&lt;/STRONG&gt;' so others with similar queries may find it more easily.&amp;nbsp;If not, please share the details.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 May 2025 12:42:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Fabric-Failed-to-create-session-for-executing-notebook/m-p/4694332#M9320</guid>
      <dc:creator>V-yubandi-msft</dc:creator>
      <dc:date>2025-05-15T12:42:01Z</dc:date>
    </item>
    <item>
      <title>Re: Fabric Failed to create session for executing notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Fabric-Failed-to-create-session-for-executing-notebook/m-p/4697667#M9365</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/756518"&gt;@UdaySutar&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;May I ask if you have resolved this issue? If so, please mark the helpful reply and &lt;STRONG&gt;accept it as the solution.&lt;/STRONG&gt; This will be helpful for other community members who have similar problems to solve it faster.&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 May 2025 05:09:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Fabric-Failed-to-create-session-for-executing-notebook/m-p/4697667#M9365</guid>
      <dc:creator>V-yubandi-msft</dc:creator>
      <dc:date>2025-05-19T05:09:47Z</dc:date>
    </item>
    <item>
      <title>Re: Fabric Failed to create session for executing notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Fabric-Failed-to-create-session-for-executing-notebook/m-p/4701070#M9456</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/756518"&gt;@UdaySutar&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;We noticed we haven't received a response from you yet, so we wanted to follow up and ensure the solution we provided addressed your issue. If you require any further assistance or have additional questions, please let us know.&lt;/P&gt;
&lt;P&gt;Your feedback is valuable to us, and we look forward to hearing from you soon.&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 May 2025 07:02:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Fabric-Failed-to-create-session-for-executing-notebook/m-p/4701070#M9456</guid>
      <dc:creator>V-yubandi-msft</dc:creator>
      <dc:date>2025-05-21T07:02:36Z</dc:date>
    </item>
    <item>
      <title>Re: Fabric Failed to create session for executing notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Fabric-Failed-to-create-session-for-executing-notebook/m-p/4719521#M9890</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/756518"&gt;@UdaySutar&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;We’re following up on your query to check if the issue has been resolved. Could you please confirm the status?&lt;/P&gt;
&lt;P&gt;If the issue has been resolved, we kindly request you to &lt;STRONG&gt;share your resolution or key insights&lt;/STRONG&gt; in this thread. This will help other community members facing similar challenges.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the issue persists, we recommend &lt;STRONG&gt;raising a support ticket&lt;/STRONG&gt; instead of connecting via a call. You can submit a request here: &lt;A href="https://learn.microsoft.com/en-us/power-bi/support/create-support-ticket" target="_self"&gt;Create a Support Ticket.&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If we do not hear back, we’ll proceed with closing this thread. However, should you need further assistance in the future, feel free to reach out via the Microsoft Fabric Community Forum and create a new thread. Our team will be happy to assist you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;— Yugandhar&lt;BR /&gt;Community Support Team&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 09:21:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Fabric-Failed-to-create-session-for-executing-notebook/m-p/4719521#M9890</guid>
      <dc:creator>V-yubandi-msft</dc:creator>
      <dc:date>2025-06-04T09:21:44Z</dc:date>
    </item>
  </channel>
</rss>

