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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

Reply
SreeAravindM
Regular Visitor

DatasetNotFoundException: Notebook cannot detect dataset even though it exists in the same workspace

I am facing an issue where a Fabric Notebook is unable to detect a dataset that exists in the same workspace.
Even basic API calls like fabric.list_datasets() return an empty result, causing all semantic-link operations to fail.

6 REPLIES 6
v-hashadapu
Community Support
Community Support

Hi @SreeAravindM , Hope you're doing okay! May we know if it worked for you, or are you still experiencing difficulties? Let us know — your feedback can really help others in the same situation.

v-hashadapu
Community Support
Community Support

Hi @SreeAravindM , hope you are doing great. May we know if your issue is solved or if you are still experiencing difficulties. Please share the details as it will help the community, especially others with similar issues.

v-hashadapu
Community Support
Community Support

Hi @SreeAravindM , Thank you for reaching out to the Microsoft Community Forum.

 

This usually happens when the notebook is resolving a different workspace than the one that actually contains the dataset. SemPy relies on the workspace of the attached lakehouse or the notebook’s own workspace and if that doesn’t match where the semantic model lives, fabric.list_datasets() simply comes back empty.

 

Another common cause is the identity the notebook is running under. Service principal or restricted tokens can access items like lakehouses but still be unable to list semantic models. When you switch to an interactive user token or give that identity Viewer/Admin access on the semantic model, the same call starts returning the dataset.

 

Roles in workspaces in Microsoft Fabric - Microsoft Fabric | Microsoft Learn

sempy package | Microsoft Learn

Actually, both the notebook and the semantic model (dataset) are in the same workspace.

I have workspace admin permission. Do we need to add any additional permissions

Hi @SreeAravindM , Thank you for reaching out to the Microsoft Community Forum.

 

If the notebook and the semantic model are in the same workspace and you already have Workspace Admin, you don’t need any additional permissions. In most cases where fabric.list_datasets() returns empty, the issue is how the notebook is authenticated. When a notebook runs under a service principal or another restricted token, it can access items like lakehouses but still fail to enumerate semantic models, even with workspace admin rights. Running the notebook with an interactive user token or giving the identity used by the notebook explicit Viewer/Build access on the semantic model, usually makes the dataset show up immediately.

 

If you’ve confirmed the workspace is correct and you’re already using an interactive user identity with normal rights, then the problem is likely a backend/SDK issue rather than a permissions one. In that case, I suggest opening a Microsoft Support ticket.

 

Below is the link to help create Microsoft Support ticket:
How to create a Fabric and Power BI Support ticket - Power BI | Microsoft Learn

 

Also, please refer:

Service Principal support for Semantic Link - Microsoft Fabric | Microsoft Learn

sempy package | Microsoft Learn

suparnababu8
Super User
Super User

Hi @SreeAravindM 

 

I think your notebook does not have right permissions to access datasets which is in the same workspace. I would recommend you restart the notbook kernol or restart the cluster conenction helps you read the datasets in the same worksp[ace. Please go through this thread Fabric Notebooks troubleshooting guide - Microsoft Fabric | Microsoft Learn. it might helps you.

 

 

Please let me knwo if it helps you.

 

 

Thank you!!

 

Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Helpful resources

Announcements
FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

March Fabric Update Carousel

Fabric Monthly Update - March 2026

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