<?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: Some methods in notebooks do not work when executed from Data Pipelines deployed via SPN in Data Engineering</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Some-methods-in-notebooks-do-not-work-when-executed-from-Data/m-p/4765093#M10952</link>
    <description>&lt;P&gt;Microsoft responded to my case yesterday indicating that synapsesql() does not yet support SPN and there is no deployment date for when it will.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 16 Jul 2025 10:31:28 GMT</pubDate>
    <dc:creator>annhwallinger</dc:creator>
    <dc:date>2025-07-16T10:31:28Z</dc:date>
    <item>
      <title>Some methods in notebooks do not work when executed from Data Pipelines deployed via SPN</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Some-methods-in-notebooks-do-not-work-when-executed-from-Data/m-p/4655427#M8642</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I already created the ticket with Microsoft (2504161420001430) and also opened the issue &lt;A href="https://github.com/microsoft/fabric-cicd/issues/202#issuecomment-2797384465" target="_blank" rel="noopener"&gt;here&lt;/A&gt; and also seems to be related to this issue&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://github.com/microsoft/fabric-cicd/issues/172" target="_blank" rel="noopener"&gt;here&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;`notebookutils.runtime.context.get("currentWorkspaceName")` works when executed directly from the Notebook, but does not work when executed from the DataPipeline which was deployed in another workspace using Service Principal via Fabric Core APIs (Create Item - &lt;A href="https://learn.microsoft.com/en-us/rest/api/fabric/core/items/create-item?tabs=HTTP" target="_blank" rel="noopener"&gt;https://learn.microsoft.com/en-us/rest/api/fabric/core/items/create-item?tabs=HTTP&lt;/A&gt;).&lt;/P&gt;&lt;P&gt;If I reopen the notebook with my personal account and rerun it again from the DataPipeline, then it works. This implies that the issue is coming from the service principal somehow losing permissions/token and is not able to read the current workspace name where it is running in from the notebookutils runtime context.&lt;/P&gt;&lt;P&gt;What I noticed is that this issue is also present for other built-in methods in Fabric. For example: `notebookutils.lakehouse.get()` and `synapsesql()`. Details can be found here: &lt;A href="https://github.com/microsoft/fabric-cicd/issues/202#issuecomment-2797384465" target="_blank" rel="noopener"&gt;https://github.com/microsoft/fabric-cicd/issues/202#issuecomment-2797384465&lt;/A&gt;. Same approach is being followed in the fabric-cicd library and it is using SPN auth + Fabric Core Create Item APIs (as already mentioned and referenced above).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did anyone else experience the same/similar issues?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Milos&lt;/P&gt;</description>
      <pubDate>Wed, 16 Apr 2025 09:59:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Some-methods-in-notebooks-do-not-work-when-executed-from-Data/m-p/4655427#M8642</guid>
      <dc:creator>mmilosanovic</dc:creator>
      <dc:date>2025-04-16T09:59:17Z</dc:date>
    </item>
    <item>
      <title>Re: Some methods in notebooks do not work when executed from Data Pipelines deployed via SPN</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Some-methods-in-notebooks-do-not-work-when-executed-from-Data/m-p/4655946#M8647</link>
      <description>&lt;P&gt;Yes, I'm having the same issue.. I'm using the fabric-cicd library&lt;/P&gt;</description>
      <pubDate>Wed, 16 Apr 2025 14:20:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Some-methods-in-notebooks-do-not-work-when-executed-from-Data/m-p/4655946#M8647</guid>
      <dc:creator>SparkedMy401</dc:creator>
      <dc:date>2025-04-16T14:20:39Z</dc:date>
    </item>
    <item>
      <title>Re: Some methods in notebooks do not work when executed from Data Pipelines deployed via SPN</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Some-methods-in-notebooks-do-not-work-when-executed-from-Data/m-p/4656375#M8655</link>
      <description>&lt;P&gt;we are also having the same issue&lt;/P&gt;</description>
      <pubDate>Wed, 16 Apr 2025 20:15:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Some-methods-in-notebooks-do-not-work-when-executed-from-Data/m-p/4656375#M8655</guid>
      <dc:creator>annhwallinger</dc:creator>
      <dc:date>2025-04-16T20:15:18Z</dc:date>
    </item>
    <item>
      <title>Re: Some methods in notebooks do not work when executed from Data Pipelines deployed via SPN</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Some-methods-in-notebooks-do-not-work-when-executed-from-Data/m-p/4656381#M8656</link>
      <description>&lt;P&gt;Having same issue.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Apr 2025 20:22:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Some-methods-in-notebooks-do-not-work-when-executed-from-Data/m-p/4656381#M8656</guid>
      <dc:creator>deepakagarwal</dc:creator>
      <dc:date>2025-04-16T20:22:42Z</dc:date>
    </item>
    <item>
      <title>Re: Some methods in notebooks do not work when executed from Data Pipelines deployed via SPN</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Some-methods-in-notebooks-do-not-work-when-executed-from-Data/m-p/4656717#M8659</link>
      <description>&lt;P class="" data-start="167" data-end="557"&gt;Hi &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/534058"&gt;@mmilosanovic&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P class="" data-start="167" data-end="557"&gt;Thanks for sharing the details and for raising a support ticket .&lt;/P&gt;
&lt;P class="" data-start="167" data-end="557"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="" data-start="167" data-end="557"&gt;The issue likely stems from the notebook’s runtime context not being fully initialized when triggered via a Service Principal (SPN) using the Fabric Core APIs. This affects methods like notebookutils.runtime.context.get() and others that rely on workspace-level context.&lt;/P&gt;
&lt;P class="" data-start="167" data-end="557"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="" data-start="559" data-end="607"&gt;In the meantime, please try the following steps:&lt;/P&gt;
&lt;UL data-start="608" data-end="967"&gt;
&lt;LI class="" data-start="608" data-end="683"&gt;
&lt;P class="" data-start="610" data-end="683"&gt;Ensure the SPN has Contributor or higher role at the workspace level.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI class="" data-start="684" data-end="761"&gt;
&lt;P class="" data-start="686" data-end="761"&gt;Verify that the workspace is explicitly included in the SPN’s access scope.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI class="" data-start="762" data-end="835"&gt;
&lt;P class="" data-start="764" data-end="835"&gt;Test execution using a user-assigned managed identity if supported.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI class="" data-start="836" data-end="967"&gt;
&lt;P class="" data-start="838" data-end="967"&gt;As a workaround, consider passing the required context (e.g., workspace name) as parameters to the notebook via the pipeline.&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Please continue monitoring your support case with microsoft and share any updates or guidance as it becomes available, so that other &lt;SPAN data-teams="true"&gt;community members who have similar problems to solve it faster.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Apr 2025 04:49:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Some-methods-in-notebooks-do-not-work-when-executed-from-Data/m-p/4656717#M8659</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-04-17T04:49:19Z</dc:date>
    </item>
    <item>
      <title>Re: Some methods in notebooks do not work when executed from Data Pipelines deployed via SPN</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Some-methods-in-notebooks-do-not-work-when-executed-from-Data/m-p/4656729#M8660</link>
      <description>&lt;P&gt;we have the same issue with workspace identity as executing user. There are errors from cluster just with import statements in notebook and on applying run magic command. Even&amp;nbsp;&lt;SPAN&gt;notebookutils.lakehouse.getWithProperties method also fails with 403 error. We were able to execute all of our code artefacts successfully with executing user as SPN (we generated our own SPN and added a secret to it) whereas when deploying same using workspace identity and running through it failed miserably. We even created a secret for the workspace identity and tried to use it by initializing credential class still no success.&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="g3kuser_0-1744866681504.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1261123i155120A7C96FA67B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="g3kuser_0-1744866681504.png" alt="g3kuser_0-1744866681504.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Apr 2025 05:11:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Some-methods-in-notebooks-do-not-work-when-executed-from-Data/m-p/4656729#M8660</guid>
      <dc:creator>g3kuser</dc:creator>
      <dc:date>2025-04-17T05:11:30Z</dc:date>
    </item>
    <item>
      <title>Re: Some methods in notebooks do not work when executed from Data Pipelines deployed via SPN</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Some-methods-in-notebooks-do-not-work-when-executed-from-Data/m-p/4657323#M8669</link>
      <description>&lt;P&gt;We have also raised a support request for the same issue&lt;/P&gt;</description>
      <pubDate>Thu, 17 Apr 2025 10:58:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Some-methods-in-notebooks-do-not-work-when-executed-from-Data/m-p/4657323#M8669</guid>
      <dc:creator>annhwallinger</dc:creator>
      <dc:date>2025-04-17T10:58:53Z</dc:date>
    </item>
    <item>
      <title>Re: Some methods in notebooks do not work when executed from Data Pipelines deployed via SPN</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Some-methods-in-notebooks-do-not-work-when-executed-from-Data/m-p/4657330#M8670</link>
      <description>&lt;P&gt;Thank you for the detail in your response. You said you were able to run as SPN.... do you know if you were able to run these simple lines?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;import&lt;/SPAN&gt;&lt;SPAN&gt; json&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;import&lt;/SPAN&gt;&lt;SPAN&gt; sempy.fabric &lt;/SPAN&gt;&lt;SPAN&gt;as&lt;/SPAN&gt;&lt;SPAN&gt; fabric&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;from&lt;/SPAN&gt;&lt;SPAN&gt; notebookutils &lt;/SPAN&gt;&lt;SPAN&gt;import&lt;/SPAN&gt;&lt;SPAN&gt; mssparkutils&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;#Instantiate the client&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;client = fabric.FabricRestClient()&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;# Get Workspace&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;workspaceId = fabric.resolve_workspace_id([workspace name here])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 17 Apr 2025 11:02:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Some-methods-in-notebooks-do-not-work-when-executed-from-Data/m-p/4657330#M8670</guid>
      <dc:creator>annhwallinger</dc:creator>
      <dc:date>2025-04-17T11:02:35Z</dc:date>
    </item>
    <item>
      <title>Re: Some methods in notebooks do not work when executed from Data Pipelines deployed via SPN</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Some-methods-in-notebooks-do-not-work-when-executed-from-Data/m-p/4658423#M8694</link>
      <description>&lt;P&gt;It works by explicitly creating an Service principal token implementation and passing that to fabric rest client. Here is a blog that can helped me with this implementation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://fabric.guru/using-service-principal-authentication-with-fabricrestclient" target="_blank"&gt;https://fabric.guru/using-service-principal-authentication-with-fabricrestclient&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Apr 2025 06:52:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Some-methods-in-notebooks-do-not-work-when-executed-from-Data/m-p/4658423#M8694</guid>
      <dc:creator>gaya3krishnan86</dc:creator>
      <dc:date>2025-04-18T06:52:05Z</dc:date>
    </item>
    <item>
      <title>Re: Some methods in notebooks do not work when executed from Data Pipelines deployed via SPN</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Some-methods-in-notebooks-do-not-work-when-executed-from-Data/m-p/4667598#M8844</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/534058"&gt;@mmilosanovic&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you please confirm if the issue has been resolved after raising a support case? If a solution has been found, it would be greatly appreciated if you could share your insights with the community. This would be helpful for other members who may encounter similar issues.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your understanding and assistance.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Apr 2025 04:13:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Some-methods-in-notebooks-do-not-work-when-executed-from-Data/m-p/4667598#M8844</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-04-25T04:13:49Z</dc:date>
    </item>
    <item>
      <title>Re: Some methods in notebooks do not work when executed from Data Pipelines deployed via SPN</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Some-methods-in-notebooks-do-not-work-when-executed-from-Data/m-p/4671121#M8900</link>
      <description>&lt;P&gt;hi&amp;nbsp;@Anonymous&lt;/a&gt;&amp;nbsp;, not yet resolved. Still in the back and forth with MS support. Last thing I got is this: "I have consulted with the notebook team, and they have confirmed that it is a known issue."&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have asked if there is a workaround and got the following feedback:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;"It has been noted that there are issues with executing notebooks via Service Principal (SPN) authentication, particularly with certain functions such as notebookutils. The internal team is actively investigating this matter to identify any limitations or configuration issues that may be causing these failures, and they will share any updates they have over the&lt;SPAN&gt;&amp;nbsp;&lt;A title="https://github.com/microsoft/fabric-cicd/issues/248" href="https://github.com/microsoft/fabric-cicd/issues/248" target="_blank" rel="noopener"&gt;link.&lt;/A&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;Also, I've informed Santhiya that by 20th May, Pipeline product team are releasing connection experience where users can create SPN connection via it."&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I guess we all monitor the progress here: &lt;A href="https://github.com/microsoft/fabric-cicd/issues/248," target="_blank" rel="noopener"&gt;https://github.com/microsoft/fabric-cicd/issues/248&lt;/A&gt;, and also keep an eye for the connection experience updates based on the seconds bullet above.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Apr 2025 13:14:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Some-methods-in-notebooks-do-not-work-when-executed-from-Data/m-p/4671121#M8900</guid>
      <dc:creator>mmilosanovic</dc:creator>
      <dc:date>2025-04-28T13:14:32Z</dc:date>
    </item>
    <item>
      <title>Re: Some methods in notebooks do not work when executed from Data Pipelines deployed via SPN</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Some-methods-in-notebooks-do-not-work-when-executed-from-Data/m-p/4673674#M8946</link>
      <description>&lt;P&gt;My team is also experiencing the same issue but when running notebooks called via API e.g. a making a request like this:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;A href="https://api.fabric.microsoft.com/v1/workspaces/" target="_blank"&gt;https://api.fabric.microsoft.com/v1/workspaces/&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN&gt;workspace_id&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;/items/&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN&gt;notebook_id&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;/jobs/instances?jobType=RunNotebook&lt;BR /&gt;&lt;/SPAN&gt;&lt;BR /&gt;from a service principal (in our case the managed identity of an ADF factory)&lt;BR /&gt;&lt;BR /&gt;I imagine the Fabric Pipeline is doing the same API call under the hood.&lt;BR /&gt;&lt;BR /&gt;As&amp;nbsp;&lt;SPAN&gt;notebookutils&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;runtime&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;context&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;get&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"currentWorkspaceId"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;""&lt;/SPAN&gt;&lt;SPAN&gt;) is working and we only have two workspaces at the moment (dev and prd) for a temporary workaround we have hardcoded environment specific values based on the workspace id into the custom package that we are using to manage ELT.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Still deciding whether or not we want to move these hardcoded environment specific values to a JSON file managed via CI/CD or swap back to notebookutils once the current issues are resolved. Would be nice to have less moving parts but also equally nice to have less reliance on MS managed bits and bobs that haven't proved completely reliable yet.&lt;BR /&gt;&lt;/SPAN&gt;&lt;BR /&gt;We have also observed the following log output when running a notebook via Service Princiapl that imports papermill (we have a development workflow where we can build out data modelling locally and run it via local spark installs before using CI/CD to push it up to Fabric, use papermill when running locally in place of notebookutils.notebook calls) this one is easier to tidy up just had to make sure we don't import papermill when running in a remote context but might help whoever is looking into this.&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Failed to fetch cluster details Traceback (most recent call last): File "/home/trusted-service-user/cluster-env/clonedenv/lib/python3.11/site-packages/synapse/ml/fabric/service_discovery.py", line 110, in get_mlflow_shared_host raise Exception( Exception: Fetch cluster details returns 401:b'' Fetch cluster details returns 401:b'' Traceback (most recent call last): File "/home/trusted-service-user/cluster-env/clonedenv/lib/python3.11/site-packages/synapse/ml/fabric/service_discovery.py", line 152, in set_envs set_fabric_env_config(builder.fetch_fabric_client_param(with_tokens=False)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/trusted-service-user/cluster-env/clonedenv/lib/python3.11/site-packages/synapse/ml/fabric/service_discovery.py", line 72, in fetch_fabric_client_param shared_host = get_fabric_context().get("trident.aiskill.shared_host") or self.get_mlflow_shared_host(pbienv) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/trusted-service-user/cluster-env/clonedenv/lib/python3.11/site-packages/synapse/ml/fabric/service_discovery.py", line 110, in get_mlflow_shared_host raise Exception( Exception: Fetch cluster details returns 401:b'' ## Not In PBI Synapse Platform ##&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 30 Apr 2025 01:39:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Some-methods-in-notebooks-do-not-work-when-executed-from-Data/m-p/4673674#M8946</guid>
      <dc:creator>AlijH</dc:creator>
      <dc:date>2025-04-30T01:39:29Z</dc:date>
    </item>
    <item>
      <title>Re: Some methods in notebooks do not work when executed from Data Pipelines deployed via SPN</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Some-methods-in-notebooks-do-not-work-when-executed-from-Data/m-p/4674316#M8961</link>
      <description>&lt;P&gt;Just to update everyone based on the most recent discussion with Microsoft support on the support case: They have pointed me to Fabric Community forums (so here where we already started discussion and report this issue) and to the Ideas part, so I also created an idea referencing this thread and pointing that this is a known issue and also asking for a fix and/or a workaround.&lt;/P&gt;&lt;P&gt;Please vote here:&amp;nbsp;&lt;A href="https://community.fabric.microsoft.com/t5/Fabric-Ideas/Enable-notebookutils-and-other-methods-to-work-when-executed/idi-p/4674315#M160577" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Fabric-Ideas/Enable-notebookutils-and-other-methods-to-work-when-executed/idi-p/4674315#M160577&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Apr 2025 09:18:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Some-methods-in-notebooks-do-not-work-when-executed-from-Data/m-p/4674316#M8961</guid>
      <dc:creator>mmilosanovic</dc:creator>
      <dc:date>2025-04-30T09:18:55Z</dc:date>
    </item>
    <item>
      <title>Re: Some methods in notebooks do not work when executed from Data Pipelines deployed via SPN</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Some-methods-in-notebooks-do-not-work-when-executed-from-Data/m-p/4676961#M9017</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/534058"&gt;@mmilosanovic&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Thank you for the update and for continuing to raise visibility across the support channels and community.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As acknowledged internally, this behavior is a known limitation when executing notebooks via Service Principal authentication, where certain methods like notebookutils may not function as expected due to context initialization issues. The product team is actively reviewing the scenario, and we anticipate future improvements to address these limitations.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your engagement through the Ideas forum is appreciated and will help with prioritization. We’ll continue to monitor this and share any updates or guidance as they become available.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also please try to review the information provided by&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/849562"&gt;@gaya3krishnan86&lt;/a&gt;&amp;nbsp;which might help you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;helps, then please give us Kudos and consider&amp;nbsp;Accept it as a solution&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thankyou.&lt;/P&gt;</description>
      <pubDate>Fri, 02 May 2025 06:49:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Some-methods-in-notebooks-do-not-work-when-executed-from-Data/m-p/4676961#M9017</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-05-02T06:49:02Z</dc:date>
    </item>
    <item>
      <title>Re: Some methods in notebooks do not work when executed from Data Pipelines deployed via SPN</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Some-methods-in-notebooks-do-not-work-when-executed-from-Data/m-p/4687190#M9196</link>
      <description>&lt;P class=""&gt;You're absolutely right - this is a known issue when running notebooks in the context of a &lt;STRONG&gt;Service Principal&lt;/STRONG&gt;, especially when using notebookutils.runtime.context or mssparkutils.env. I ran into the same thing recently and did a deep dive into how execution context really works in Fabric.&lt;/P&gt;&lt;P class=""&gt;If you're interested, I wrote up my findings (including this bug and a workaround) in this blog post:&lt;BR /&gt;&lt;A href="https://peerinsights.hashnode.dev/whos-calling" target="_new" rel="noopener"&gt;Who's Calling? Understanding Execution Context in Microsoft Fabric&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 10 May 2025 04:08:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Some-methods-in-notebooks-do-not-work-when-executed-from-Data/m-p/4687190#M9196</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-05-10T04:08:15Z</dc:date>
    </item>
    <item>
      <title>Re: Some methods in notebooks do not work when executed from Data Pipelines deployed via SPN</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Some-methods-in-notebooks-do-not-work-when-executed-from-Data/m-p/4710328#M9702</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just got feedback from the support that Notebook PG team has fixed the issue. I tested again and it seems to work now. I only tested&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;notebookutils.runtime.context.get("currentWorkspaceName")&lt;/LI-CODE&gt;&lt;P&gt;so not sure if this also fixes all the&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;notebookutils &lt;/LI-CODE&gt;&lt;P&gt;methods or&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;synapsesql()&lt;/LI-CODE&gt;&lt;P&gt;methods.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone else also give it a try and share findings here?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Milos&lt;/P&gt;</description>
      <pubDate>Wed, 28 May 2025 11:21:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Some-methods-in-notebooks-do-not-work-when-executed-from-Data/m-p/4710328#M9702</guid>
      <dc:creator>mmilosanovic</dc:creator>
      <dc:date>2025-05-28T11:21:14Z</dc:date>
    </item>
    <item>
      <title>Re: Some methods in notebooks do not work when executed from Data Pipelines deployed via SPN</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Some-methods-in-notebooks-do-not-work-when-executed-from-Data/m-p/4712335#M9741</link>
      <description>&lt;P data-start="180" data-end="195"&gt;Hi &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/534058"&gt;@mmilosanovic&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P data-start="180" data-end="195"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-start="197" data-end="360"&gt;Thank you for following up and sharing that the issue was resolved through Microsoft Support. We're glad to hear that your concern has been addressed successfully.&lt;/P&gt;
&lt;P data-start="362" data-end="526"&gt;Please make your answer as accepted. Your input is valuable, and sharing the outcome helps others in the community facing similar issues.&lt;/P&gt;
&lt;P data-start="528" data-end="711"&gt;If you have any further questions or need assistance in the future, please don’t hesitate to create a new post on the Microsoft Fabric Community Forum we’re always here to help.&lt;/P&gt;
&lt;P data-start="528" data-end="711"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-start="528" data-end="711"&gt;Thank you.&lt;/P&gt;
&lt;P data-start="713" data-end="772"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jun 2025 10:07:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Some-methods-in-notebooks-do-not-work-when-executed-from-Data/m-p/4712335#M9741</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-06-03T10:07:56Z</dc:date>
    </item>
    <item>
      <title>Re: Some methods in notebooks do not work when executed from Data Pipelines deployed via SPN</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Some-methods-in-notebooks-do-not-work-when-executed-from-Data/m-p/4712490#M9747</link>
      <description>&lt;P&gt;hi&amp;nbsp;@Anonymous&lt;/a&gt;&amp;nbsp;this is still not resolved and ongoing with MS support, specifically around other methods (issue seem to be the same with authorization) like synapsesql().&lt;/P&gt;</description>
      <pubDate>Thu, 29 May 2025 14:00:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Some-methods-in-notebooks-do-not-work-when-executed-from-Data/m-p/4712490#M9747</guid>
      <dc:creator>mmilosanovic</dc:creator>
      <dc:date>2025-05-29T14:00:08Z</dc:date>
    </item>
    <item>
      <title>Re: Some methods in notebooks do not work when executed from Data Pipelines deployed via SPN</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Some-methods-in-notebooks-do-not-work-when-executed-from-Data/m-p/4715867#M9800</link>
      <description>&lt;P data-start="98" data-end="117"&gt;Hi &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/534058"&gt;@mmilosanovic&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P data-start="98" data-end="117"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-start="119" data-end="318"&gt;Thank you for your confirmation and patience. The Microsoft team is actively looking into the issue, including related methods like synapseSQL(), which seem to face the same authorization behavior.&lt;/P&gt;
&lt;P data-start="119" data-end="318"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-start="119" data-end="318"&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Jun 2025 04:34:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Some-methods-in-notebooks-do-not-work-when-executed-from-Data/m-p/4715867#M9800</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-06-02T04:34:22Z</dc:date>
    </item>
    <item>
      <title>Re: Some methods in notebooks do not work when executed from Data Pipelines deployed via SPN</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Some-methods-in-notebooks-do-not-work-when-executed-from-Data/m-p/4722751#M9961</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/534058"&gt;@mmilosanovic&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-pm-slice="1 1 []"&gt;Thank you for your patience and understanding. Our CSS engineers are actively working on the issue, and since it is currently in progress, we expect it to be resolved soon. We appreciate your cooperation and will keep you informed with any updates.&lt;/P&gt;
&lt;P data-pm-slice="1 1 []"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-pm-slice="1 1 []"&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jun 2025 08:50:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Some-methods-in-notebooks-do-not-work-when-executed-from-Data/m-p/4722751#M9961</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-06-06T08:50:59Z</dc:date>
    </item>
  </channel>
</rss>

