<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Delta Live Tables INSUFFICIENT_PERMISSIONS in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/delta-live-tables-insufficient-permissions/m-p/92607#M38476</link>
    <description>&lt;P&gt;I have a delta live table pipeline which reads from a delta table then applies 3 layers of transformations before merging the legs of the pipeline and outputting. I am getting this error when I run my pipeline against unity catalog.&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN class=""&gt;org.apache.spark.sql.streaming.StreamingQueryException: [STREAM_FAILED] Query [id = f2bfb7c2-7e2a-4f61-9336-aaffdee60ef8, runId = af5e6775-35ad-486e-bfb6-1f0f6102c389] terminated with exception: [INSUFFICIENT_PERMISSIONS] Insufficient privileges: User does not have permission SELECT on any file.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN class=""&gt;org.apache.spark.SparkSecurityException: [INSUFFICIENT_PERMISSIONS] Insufficient privileges: User does not have permission SELECT on any file.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class=""&gt;```&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2024-10-02 at 1.25.28 PM.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/11653i510678712B780B79/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2024-10-02 at 1.25.28 PM.png" alt="Screenshot 2024-10-02 at 1.25.28 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the first step of the pipeline it applies some filters and transformation logic that is configured with an azure sql database. The second step of the pipeline it joins against data in the same azure sql database.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;My pipeline is not using a cluster policy and it has photon enabled.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Steps I have done to debug&lt;/P&gt;&lt;P&gt;1. I shut off the join logic and just passed the input to table 2 as the output, it works fine&lt;/P&gt;&lt;P&gt;2. I have run the exact join code against the input table data inside of a databricks notebook with no errors&lt;/P&gt;&lt;P&gt;3. I have run the exact pipeline against hive metastore with no errors&lt;/P&gt;&lt;P&gt;4. I have compared the query execution plans from the log4j logs for the pipeline to the query plan from my notebook and there isnt anything that sticks out. I have also meticulously combed over the logs for any other clues to no avail.&lt;/P&gt;&lt;P&gt;also, I have gotten this error before and it was masking other issues then that were not directly related to permissions.&lt;/P&gt;</description>
    <pubDate>Wed, 02 Oct 2024 18:33:43 GMT</pubDate>
    <dc:creator>dadrake3</dc:creator>
    <dc:date>2024-10-02T18:33:43Z</dc:date>
    <item>
      <title>Delta Live Tables INSUFFICIENT_PERMISSIONS</title>
      <link>https://community.databricks.com/t5/data-engineering/delta-live-tables-insufficient-permissions/m-p/92607#M38476</link>
      <description>&lt;P&gt;I have a delta live table pipeline which reads from a delta table then applies 3 layers of transformations before merging the legs of the pipeline and outputting. I am getting this error when I run my pipeline against unity catalog.&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN class=""&gt;org.apache.spark.sql.streaming.StreamingQueryException: [STREAM_FAILED] Query [id = f2bfb7c2-7e2a-4f61-9336-aaffdee60ef8, runId = af5e6775-35ad-486e-bfb6-1f0f6102c389] terminated with exception: [INSUFFICIENT_PERMISSIONS] Insufficient privileges: User does not have permission SELECT on any file.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN class=""&gt;org.apache.spark.SparkSecurityException: [INSUFFICIENT_PERMISSIONS] Insufficient privileges: User does not have permission SELECT on any file.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class=""&gt;```&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2024-10-02 at 1.25.28 PM.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/11653i510678712B780B79/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2024-10-02 at 1.25.28 PM.png" alt="Screenshot 2024-10-02 at 1.25.28 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the first step of the pipeline it applies some filters and transformation logic that is configured with an azure sql database. The second step of the pipeline it joins against data in the same azure sql database.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;My pipeline is not using a cluster policy and it has photon enabled.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Steps I have done to debug&lt;/P&gt;&lt;P&gt;1. I shut off the join logic and just passed the input to table 2 as the output, it works fine&lt;/P&gt;&lt;P&gt;2. I have run the exact join code against the input table data inside of a databricks notebook with no errors&lt;/P&gt;&lt;P&gt;3. I have run the exact pipeline against hive metastore with no errors&lt;/P&gt;&lt;P&gt;4. I have compared the query execution plans from the log4j logs for the pipeline to the query plan from my notebook and there isnt anything that sticks out. I have also meticulously combed over the logs for any other clues to no avail.&lt;/P&gt;&lt;P&gt;also, I have gotten this error before and it was masking other issues then that were not directly related to permissions.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2024 18:33:43 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/delta-live-tables-insufficient-permissions/m-p/92607#M38476</guid>
      <dc:creator>dadrake3</dc:creator>
      <dc:date>2024-10-02T18:33:43Z</dc:date>
    </item>
    <item>
      <title>Re: Delta Live Tables INSUFFICIENT_PERMISSIONS</title>
      <link>https://community.databricks.com/t5/data-engineering/delta-live-tables-insufficient-permissions/m-p/92622#M38480</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/114356"&gt;@dadrake3&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You are encountering this error only when you run against the Unity Catalog. In Unity Catalog, Table Access Control is enabled by default. You&amp;nbsp;&lt;SPAN&gt;must grant&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;SELECT&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;permission on files so the selected user(Who is running the DLT pipeline) can access them.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can follow the below KB link,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://kb.databricks.com/en_US/data/user-does-not-have-permission-select-on-any-file" target="_blank"&gt;https://kb.databricks.com/en_US/data/user-does-not-have-permission-select-on-any-file&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Please leave a like if it is helpful. Follow-ups are appreciated.&lt;/P&gt;
&lt;P&gt;Kudos,&lt;/P&gt;
&lt;P&gt;Sai Kumar&lt;/P&gt;</description>
      <pubDate>Thu, 03 Oct 2024 06:47:50 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/delta-live-tables-insufficient-permissions/m-p/92622#M38480</guid>
      <dc:creator>saikumar246</dc:creator>
      <dc:date>2024-10-03T06:47:50Z</dc:date>
    </item>
    <item>
      <title>Re: Delta Live Tables INSUFFICIENT_PERMISSIONS</title>
      <link>https://community.databricks.com/t5/data-engineering/delta-live-tables-insufficient-permissions/m-p/92650#M38493</link>
      <description>&lt;P&gt;I don't see how that can be the underlying issue because.&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. the first step of the pipeline which reads from unity catalog and azure sql is just fine.&lt;/P&gt;&lt;P&gt;2. when I remove the enrichment logic from the second step of the and just pass the table input as its output also works just fine.&lt;/P&gt;&lt;P&gt;I have also seen this error masking the true error multiple times in the past.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Oct 2024 13:57:10 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/delta-live-tables-insufficient-permissions/m-p/92650#M38493</guid>
      <dc:creator>dadrake3</dc:creator>
      <dc:date>2024-10-03T13:57:10Z</dc:date>
    </item>
  </channel>
</rss>

