Forum Discussion
Some methods in notebooks do not work when executed from Data Pipelines deployed via SPN
Hi mmilosanovic ,
Thanks for sharing the details and for raising a support ticket .
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.
In the meantime, please try the following steps:
-
Ensure the SPN has Contributor or higher role at the workspace level.
-
Verify that the workspace is explicitly included in the SPN’s access scope.
-
Test execution using a user-assigned managed identity if supported.
-
As a workaround, consider passing the required context (e.g., workspace name) as parameters to the notebook via the pipeline.
Please continue monitoring your support case with microsoft and share any updates or guidance as it becomes available, so that other community members who have similar problems to solve it faster.
Thank you.