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

Join us at FabCon Vienna from September 15-18, 2025, for the ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM. Get registered

Reply
yangty
Frequent Visitor

Run notebook with T-SQL code in the pipeline issue

I have simple T-SQL query in a notebook which is just insert records to a datawarehouse table, and I can run it from the notebook. When I tried to run it from the pipeline I received error as below:

 

yangty_0-1740971821821.png

Any idea what will cause this error?

 

Thanks!

 

1 ACCEPTED SOLUTION
v-pagayam-msft
Community Support
Community Support

Hi @yangty ,
Thank you for reaching out to the Microsoft Fabric Community Forum about the issue you are encountering.

In the workspace, navigate to Data Pipelines and open the pipeline that runs the notebook. Click on the Notebook activity and check the linked service under Settings. If the authentication token has expired, re-authenticate by clicking Edit Linked Service, signing in again with valid credentials, and then clicking Save may help you to figure out the issue.

Refer the link here for clear understanding about T-sql in notebook.

If this post helps, please give us Kudos and consider Accept it as a solution to help the other members find it more quickly.


View solution in original post

5 REPLIES 5
v-pagayam-msft
Community Support
Community Support

Hi @yangty ,
I wanted to check in on your situation regarding the issue. Have you resolved it? If you have, please consider marking the reply that helped you or sharing your solution. It would be greatly appreciated by others in the community who may have the same question.

Thank you for being a part of the Microsoft Fabric Community Forum!


v-pagayam-msft
Community Support
Community Support

Hi @yangty ,
We haven't heard back from you regarding our last response and wanted to check if your issue has been resolved.
If our response addressed your query, please mark it as Accept Answer and click Yes if you found it helpful.
If you have any further questions, feel free to reach out.

Thank you for being a part of the Microsoft Fabric Community Forum!

v-pagayam-msft
Community Support
Community Support

Hi @yangty ,
May I ask if you have gotten this issue resolved?
If it is solved, please mark the helpful reply or share your solution and accept it as solution, it will be helpful for other members of the community who have similar problems as yours to solve it faster.

Thank you for being a valued member of the Microsoft Fabric Community Forum!


v-pagayam-msft
Community Support
Community Support

Hi @yangty ,
Thank you for reaching out to the Microsoft Fabric Community Forum about the issue you are encountering.

In the workspace, navigate to Data Pipelines and open the pipeline that runs the notebook. Click on the Notebook activity and check the linked service under Settings. If the authentication token has expired, re-authenticate by clicking Edit Linked Service, signing in again with valid credentials, and then clicking Save may help you to figure out the issue.

Refer the link here for clear understanding about T-sql in notebook.

If this post helps, please give us Kudos and consider Accept it as a solution to help the other members find it more quickly.


I am having the exact same error as described above. The notebook activity does not have any "linked service" under settings.  Only to select the workspace and the notebook. Can you please clarify?  

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June FBC25 Carousel

Fabric Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.