Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Hi, we've had synapse pipelines (running PySpark notebooks) reading and writing to our Fabric OneLake for quite some time. Last night we started seeing authentication failures when trying to invoke spark.read.parquet and when trying to write parquet files to the same lakehouse.
Our authentication setup involves adding the Synapse System Assigned Managed Identity to our Lakehouse as Contributor. We've had this setup for a few months so this was working.
Error messages are something like:
Py4JJavaError: An error occurred while calling o4256.parquet.
: java.nio.file.AccessDeniedException: Operation failed: "Forbidden", 403, HEAD, https://[OneLakeId].dfs.fabric.microsoft.com/[FilesystemId]/[LakehouseId]/Files/[Path]/FileContents?upn=false&action=getStatus&timeout=90
at org.apache.hadoop.fs.azurebfs.AzureBlobFileSystem.checkException(AzureBlobFileSystem.java:1443)
at org.apache.hadoop.fs.azurebfs.AzureBlobFileSystem.getFileStatus(AzureBlobFileSystem.java:652)
at org.apache.hadoop.fs.azurebfs.AzureBlobFileSystem.getFileStatus(AzureBlobFileSystem.java:640)
at org.apache.hadoop.fs.FileSystem.exists(FileSystem.java:1760)
at org.apache.hadoop.fs.azurebfs.AzureBlobFileSystem.exists(AzureBlobFileSystem.java:1236)
at org.apache.spark.sql.execution.datasources.InsertIntoHadoopFsRelationCommand.run(InsertIntoHadoopFsRelationCommand.scala:120)
The URL appears to be the REST API call documented here: https://learn.microsoft.com/en-us/rest/api/storageservices/datalakestoragegen2/path/get-properties?v...
We can reproduce this behavior in interactive notebooks when configuring the session to run under SAMI, so there appears to be something wrong with the SAMI authenticating to our Lakehouse.
This ended up being a multi-day failure on Fabric's end and in a few days things started working again without any changes on our side. My guess is some auth issues between Synapse and OneLake.
Technically the issue is resolved but without a root cause and/or any communication, we've already started migrating our solution to something else and no longer using Microsoft Fabric.
Yes, I meant contributor of workspace. I did not configure OneLake data access before, it was not needed for things to work. While in my original post I referenced spark.parquet.read, we also made writes to the OneLake and things were working fine without tweaking the OneLake data access. I just explicitly added the SAMI to have full permissions over the entire OneLake; doesn't seem to make things better.
Regarding SAMI configuration settings, what else should I be looking for? I believe it cannot be changed so I don't know what else would change there.
I don't think there's an issue with network access; I'm able to execute the notebooks when it's running under my identity but when I set the notebook to run under managed identity, the call fails.
Hi @kchung_msft
The error message you mentioned, java.nio.file.AccessDeniedException: Operation failed: "Forbidden", 403, indicates a permissions issue. Here are a few suggestions to troubleshoot the issue:
Check Permissions: Ensure that the SAMI has the necessary permissions on the Fabric Lakehouse. You said it's added "to your Lakehouse as Contributor." Do you mean Contributor of workspace? Did you configure OneLake data access roles for the lakehouse?
Review Configuration: Verify that the configuration settings for the SAMI in your Synapse workspace are correct and haven’t been altered recently.
Network Access: Ensure that there are no network restrictions or firewall rules blocking access to the Fabric Lakehouse. Check if there is any change recently.
Best Regards,
Jing
Community Support Team
Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 12 | |
| 6 | |
| 5 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 23 | |
| 22 | |
| 12 | |
| 12 | |
| 10 |