Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowData Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more
Hello Community,
This is probably silly question but can someone first please confirm that they have managed to execute a Fabric Notebook in a pipeline? I'm sure the answer to this question is YES.
Therefore, can someone please let me know why everytime I attempt to execute a Fabric notebook via a Pipeline I get the following error message:
Notebook execution failed at Notebook service with http status code - '200', please check the Run logs on Notebook, additional details - 'Error name - Exception, Error value - Failed to create Livy session for executing notebook. Error: {"code":"BadRequest","subCode":0,"message":"Encountered internal error while calling TokenProvider to get obo token. The return code is BadRequest, and no error details was provided.","timeStamp":"2026-04-22T11:12:08.3714474Z","httpStatusCode":500,"hresult":-2146233088,"details":[{"code":"RootActivityId","message":"1aff178c-4c62-46d8-910f-de7716b0a8a9"},{"code":"ErrorSource","message":"Fabric/Core Platform AuthNZ and Metadata"}],"exceptionCategory":0} HTTP status code: 500.' :
My setup is very simple see image
This is truly baffling to me.
Solved! Go to Solution.
Hello,
In the Notebook activity settings, the first setting "Connection" is optional. If your Pipeline and Notebook are in the same workspace then the "Connection" is not at all mandatory. Just remove the "Connection" setting and run. It should work.
It looks like the issue is with Fabric Trails only.
I wrote an article on the same here 🙂
Hi @caplogic,
We would like to confirm if our community members answer resolves your query or if you need further help. If you still have any questions or need more support, please feel free to let us know. We are happy to help you.
Thank you for your patience and look forward to hearing from you.
Best Regards,
Prashanth Are
MS Fabric community support
Hi @caplogic,
please refer to below similar community issue resolved:
Solved: Re: Pipeline → Notebook Activity fails with AADSTS... - Microsoft Fabric Community
Solved: Pipline Executing Notebook Fails, Failed to create... - Microsoft Fabric Community
Thank you for your patience and look forward to hearing from you.
Best Regards,
Prashanth Are
MS Fabric community support
Hello,
In the Notebook activity settings, the first setting "Connection" is optional. If your Pipeline and Notebook are in the same workspace then the "Connection" is not at all mandatory. Just remove the "Connection" setting and run. It should work.
It looks like the issue is with Fabric Trails only.
I wrote an article on the same here 🙂
Hello @caplogic can you please elaborate on how you get the notebook added to the pipeline from within the notebook itelf? it's driving me crazy.
Hi @arabalca thanks for getting in touch.
I have managed to get it to work by adding the Notebook to the pipeine from within the Notebook itself.
I was experiencing this problem only when I added the Notebook from within the pipeline via an Activity
Invoking the Notebook works absolutely file in a normal Fabric CApacity. However, it fails (while creating the Livy session for executing the notebook with Encountered internal error while calling TokenProvider to get obo token error)
Is it something to do with Trail Fabric Capacity?
Anyone comments?
Absolutely nothing to do with Trial Capacity
Hello,
Can you please elaborate on how you got it working by adding the notebook to the pipeline from within the notebook itself? How do you do this?
I'm experience the same problem and it's driving me crazy.
Simply, go into the notebook, and as I mentioned in my Screen select 'Add to Pipeline' and choose the pipeline you want to add the notebook to.
Hello,
In the Notebook activity settings, the first setting "Connection" is optional. If your Pipeline and Notebook are in the same workspace then the "Connection" is not at all mandatory. Just remove the "Connection" setting and run. It should work.
Good luck.
Thank you.
I wrong an article on the same here 🙂
Click on add to pipeline ,and it will inherit on the permissions needed
Hi @caplogic ,
Great.
If my comments helped solve your question, it would be great if you could like all comment and mark it as the accepted solution. It helps others with the same issue and also motivates me to keep contributing.
Thanks a lot, I really appreciate it.
Hi @caplogic ,
Not a silly question at all — yes, running a Notebook from a pipeline absolutely works!
The error message itself gives you the clue: "please check the Run logs on Notebook"
You have two main places:
1. From the Pipeline Monitor: Go to your workspace → Monitor → select the failed run → click on the Notebook activity → you'll see the full error detail with the complete stack trace.
2. From the Notebook itself: Open the Notebook → in the top bar you'll find the run history → select the failed run triggered by the pipeline → there you have the logs cell by cell and the exact Livy/Spark error.
Official documentation:
Once you check the logs in detail, the specific error you're describing points to an authentication token (OBO) issue — but let's tackle that in a second step once the logs confirm it.
If my comments helped solve your question, it would be great if you could like all comment and mark it as the accepted solution. It helps others with the same issue and also motivates me to keep contributing.
Thanks a lot, I really appreciate it.