cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

SparkException: [INSUFFICIENT_PERMISSIONS] Insufficient privileges: User does not have permission SE

GANAPATI_HEGDE
New Contributor II

I am trying to build a dlt pipeline which fetches data from fabric onelake tables and stores it in databricks.

 

To do this, i am using azure service principals and  databricks asset bundles. i have setup authentication configs as per official documentaion from azure. but i am facing below error even though i have all the necessary acceses

SparkException: [INSUFFICIENT_PERMISSIONS] Insufficient privileges: User does not have permission SELECT on any file. SQLSTATE: 42501

GANAPATI_HEGDE_0-1751982239407.png

 

the code works perfectly fine when i run them in personal compute but throws this error when i run them in job clusters.

3 REPLIES 3

nayan_wylde
Honored Contributor

In the workflow check the Runas. If the workflow is running using an SPN. Check if the SPN have appropriate permissions to read and select files.

Yes run as is set to SP. SP has permission to onelake, and unity catalog

Can you please share the grants that is on the table. I highly doubt there is select permission granted on this schema.

Join Us as a Local Community Builder!

Passionate about hosting events and connecting people? Help us grow a vibrant local communityโ€”sign up today to get started!

Sign Up Now