Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

Reply
caplogic
Helper II
Helper II

Unable to Execute a Fabric Notebook in a Fabric Pipeline

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


caplogic_0-1776856950059.png

 

This is truly baffling to me.

1 ACCEPTED SOLUTION
praveensreeram
Frequent Visitor

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 🙂

https://praveenkumarsreeram.com/2026/04/27/11644/ 

View solution in original post

13 REPLIES 13
v-prasare
Community Support
Community Support

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

v-prasare
Community Support
Community Support

praveensreeram
Frequent Visitor

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 🙂

https://praveenkumarsreeram.com/2026/04/27/11644/ 

bchalabi
New Member

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.

caplogic
Helper II
Helper II

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 🙂

 

https://praveenkumarsreeram.com/2026/04/27/11644/ 

caplogic_1-1776958654314.png

 

Click on add to pipeline ,and it will inherit on the permissions needed

arabalca
Impactful Individual
Impactful Individual

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.

arabalca
Impactful Individual
Impactful Individual

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.

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

June Fabric Update Carousel

Fabric Monthly Update - June 2026

Check out the June 2026 Fabric update to learn about new features.