Forum Discussion

usernamehere1's avatar
usernamehere1
New Member
5 months ago
Solved

Fabric Pipeline, T-SQL Notebook and Service principal

Hello, I have a problem when trying to run T-SQL Notebook from Pipeline when authenticate Notebook connection with Service principal.   This is the case: We use DevOps Pipeline to sync/update works...
  • V-yubandi-msft's avatar
    4 months ago

    Hi usernamehere1 ,

    Thank you for clarifying. The error indicates that T SQL notebook execution is still using an OBO based authentication flow for some internal Fabric or Power BI API calls. Because Service Principals aren't supported in OBO flows, the execution fails when a Service Principal is the last modifier. To work around this, you could convert the notebook to PySpark and run your queries with spark.sql(), which should bypass this issue.

     

    I hope this clarifies the situation. If I’ve misunderstood any part of your situation, please let us know.