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.

avatar user

Helpful resources

Announcements
MarchFBCvideo - carousel

Fabric Monthly Update - March 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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

Top Solution Authors (Last Month)