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

Get certified as a Fabric Data Engineer: Check your eligibility for a 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700. Get started

Reply
Anushka96
Frequent Visitor

Can't access the Lakehouse when using notebook in pipeline

When using notebooks with pipeline I was encountered with following error.

"Py4JJavaError","evalue":"An error occurred while calling o4717.table.\n: java.lang.RuntimeException: Request failed: HTTP/1.1 403 Forbidden\n\tat com.microsoft.fabric.spark.metadata.Helpers$.executeRequest

It seems like a permission issue I have faced it when script running using notebooks. I was able to avoid it by draging the lakehouse to cell for once.  In notebooks I am using absoulte path for tables. Anyone have a soloution for this?

3 REPLIES 3
ML15
Regular Visitor

v-yilong-msft
Community Support
Community Support

Hi @Anushka96 ,

This error usually means that you have been denied permissions when trying to access a resource.

 

I think you can do something below:

1. make sure you are using the correct paths in your code. For example, use an absolute path instead of a relative path to access a table in Lakehouse.

2. Make sure you have the proper permissions to access that resource. If it's an API call, confirm that your API key or token is valid and that you have sufficient permissions.

3. Confirm that the URL you are requesting is correct, sometimes misspellings or wrong paths can cause 403 errors.

4. Of course sometimes firewalls or security settings can block the request, make sure these settings allow your request to go through.

 

You can also check out this post below to gain more knowledge on the document: Troubleshoot security and access control issues - Azure Data Factory & Azure Synapse | Microsoft Lea...

 

 

 

 

Best Regards

Yilong Zhou

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Notebook even tells that error when I am running them individually as well without using a pipeline. I am using abfs paths and also it working sometime.I am a workspace administrator so this cannot due to permission errors.

Helpful resources

Announcements
Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

JanFabricDE_carousel

Fabric Monthly Update - January 2025

Explore the power of Python Notebooks in Fabric!

JanFabricDW_carousel

Fabric Monthly Update - January 2025

Unlock the latest Fabric Data Warehouse upgrades!