Forum Discussion
mmilosanovic
1 year agoAdvocate IV
Some methods in notebooks do not work when executed from Data Pipelines deployed via SPN
Hi, I already created the ticket with Microsoft (2504161420001430) and also opened the issue here and also seems to be related to this issue here. `notebookutils.runtime.context.get("currentW...
Anonymous
1 year agoNot applicable
You're absolutely right - this is a known issue when running notebooks in the context of a Service Principal, 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.
If you're interested, I wrote up my findings (including this bug and a workaround) in this blog post:
Who's Calling? Understanding Execution Context in Microsoft Fabric
annhwallinger
1 year agoHelper I
Your workaround was so helpful thank you. I don't suppose you have a workaround for synapsesql() ?