<?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 Re: Error [UNAUTHORIZED_ACCESS]: Merging into a table with masked columns in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/error-unauthorized-access-merging-into-a-table-with-masked/m-p/132484#M49505</link>
    <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/60098"&gt;@K_Anudeep&lt;/a&gt;&amp;nbsp;I was inspired by your comment and I tried to use &lt;STRONG&gt;DeltaTable.forName&lt;/STRONG&gt; instead of &lt;STRONG&gt;DeltaTable.forPath&lt;/STRONG&gt; and it worked.&lt;/P&gt;</description>
    <pubDate>Thu, 18 Sep 2025 17:02:05 GMT</pubDate>
    <dc:creator>thedatanerd</dc:creator>
    <dc:date>2025-09-18T17:02:05Z</dc:date>
    <item>
      <title>Error [UNAUTHORIZED_ACCESS]: Merging into a table with masked columns</title>
      <link>https://community.databricks.com/t5/data-engineering/error-unauthorized-access-merging-into-a-table-with-masked/m-p/132235#M49395</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm facing a weird error when trying to incrementally merge into a table with a masked column.&lt;/P&gt;&lt;P&gt;Table is external, but catalog is managed. Using Unity Catalog.&lt;/P&gt;&lt;P&gt;Error is:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[UNAUTHORIZED_ACCESS] Unauthorized access: PERMISSION_DENIED: Path-based access to table catalog.schema.table with row filter or column mask not supported. SQLSTATE: 42501&lt;/LI-CODE&gt;&lt;P data-unlink="true"&gt;It is when doing:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;merge_stats = (
    275     current_unity_delta_table.alias("current")
    276     .merge(upsert_df.alias("upsert"), merge_condition)
    277     .withSchemaEvolution()
    278     .whenMatchedUpdateAll()
    279     .whenNotMatchedInsertAll()
--&amp;gt; 280     .execute()
    281 )&lt;/LI-CODE&gt;&lt;P&gt;Checking these posts &lt;A href="https://community.databricks.com/t5/data-engineering/path-based-access-not-supported-for-tables-with-row-filters/td-p/99522" target="_self"&gt;1&lt;/A&gt;,&lt;A href="https://community.databricks.com/t5/data-engineering/path-based-access-to-a-table-with-row-filters-or-column-masks-is/td-p/116402" target="_self"&gt;2&lt;/A&gt; I tried changing the job cluster type to be Standard (formerly Shared), Dedicated (formerly: Single User) and also tried changing runtime to 17.2, 16.4,15.4 but nothing worked. Always throws same error.&lt;/P&gt;&lt;P&gt;Is there a tested and tried solution to this weird limitation? shouldn't Databricks handle this automatically?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;LI-MESSAGE title="Path based access not supported for tables with row filters?" uid="99522" url="https://community.databricks.com/t5/data-engineering/path-based-access-not-supported-for-tables-with-row-filters/m-p/99522#U99522" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-forum-thread lia-fa-icon lia-fa-forum lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;LI-MESSAGE title="path-based access to a table with row filters or column masks is not supported" uid="116402" url="https://community.databricks.com/t5/data-engineering/path-based-access-to-a-table-with-row-filters-or-column-masks-is/m-p/116402#U116402" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-forum-thread lia-fa-icon lia-fa-forum lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Sep 2025 13:37:00 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/error-unauthorized-access-merging-into-a-table-with-masked/m-p/132235#M49395</guid>
      <dc:creator>thedatanerd</dc:creator>
      <dc:date>2025-09-17T13:37:00Z</dc:date>
    </item>
    <item>
      <title>Re: Error [UNAUTHORIZED_ACCESS]: Merging into a table with masked columns</title>
      <link>https://community.databricks.com/t5/data-engineering/error-unauthorized-access-merging-into-a-table-with-masked/m-p/132462#M49498</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/167573"&gt;@thedatanerd&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Tables with row filters or column masks can’t be accessed &lt;STRONG data-start="155" data-end="166"&gt;by path&lt;/STRONG&gt;. Delta Lake’s object APIs (e.g., &lt;CODE data-start="200" data-end="212"&gt;DeltaTable&lt;/CODE&gt; + &lt;CODE data-start="215" data-end="225"&gt;.merge()&lt;/CODE&gt;) aren’t supported for these tables.This is expected by design .Run the merge via SQL against &lt;CODE data-start="457" data-end="479"&gt;catalog.schema.table&lt;/CODE&gt; so Unity Catalog can enforce policies. Example: register your DataFrame as a temp view and do a&amp;nbsp;&lt;CODE data-start="588" data-end="600"&gt;MERGE INTO&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Sep 2025 15:11:08 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/error-unauthorized-access-merging-into-a-table-with-masked/m-p/132462#M49498</guid>
      <dc:creator>K_Anudeep</dc:creator>
      <dc:date>2025-09-18T15:11:08Z</dc:date>
    </item>
    <item>
      <title>Re: Error [UNAUTHORIZED_ACCESS]: Merging into a table with masked columns</title>
      <link>https://community.databricks.com/t5/data-engineering/error-unauthorized-access-merging-into-a-table-with-masked/m-p/132484#M49505</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/60098"&gt;@K_Anudeep&lt;/a&gt;&amp;nbsp;I was inspired by your comment and I tried to use &lt;STRONG&gt;DeltaTable.forName&lt;/STRONG&gt; instead of &lt;STRONG&gt;DeltaTable.forPath&lt;/STRONG&gt; and it worked.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Sep 2025 17:02:05 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/error-unauthorized-access-merging-into-a-table-with-masked/m-p/132484#M49505</guid>
      <dc:creator>thedatanerd</dc:creator>
      <dc:date>2025-09-18T17:02:05Z</dc:date>
    </item>
    <item>
      <title>Re: Error [UNAUTHORIZED_ACCESS]: Merging into a table with masked columns</title>
      <link>https://community.databricks.com/t5/data-engineering/error-unauthorized-access-merging-into-a-table-with-masked/m-p/132485#M49506</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/167573"&gt;@thedatanerd&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Thanks for the reply. Yes, you can access that by&amp;nbsp;&lt;STRONG&gt;DeltaTable.forName&lt;/STRONG&gt; if you know the table name or use MERGE into using SQL. If your question is answered,could you please accept this as a solution, as it would be useful to others in the community?&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Sep 2025 17:10:59 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/error-unauthorized-access-merging-into-a-table-with-masked/m-p/132485#M49506</guid>
      <dc:creator>K_Anudeep</dc:creator>
      <dc:date>2025-09-18T17:10:59Z</dc:date>
    </item>
  </channel>
</rss>

