<?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: New policy for mask column fails - Compilation error with message 'Unknown tag policy key' in Data Governance</title>
    <link>https://community.databricks.com/t5/data-governance/new-policy-for-mask-column-fails-compilation-error-with-message/m-p/151872#M2800</link>
    <description>&lt;P&gt;Hi, to use a tag in a tag policy it needs to be a governed tag rather than just a general tag. IF you just create it using Set tags UC sees it as a informational tag rather than a governed tag. If you use a CREATE tag statement to create it then you'll have it as an option in your policies.&amp;nbsp; Governed tags must have a tag policy which specifies the allowed list of values, this prevents users being able to put any random value against it and threfore is why it's used for ABAC. Docs on Governed tags here&amp;nbsp;&lt;A href="https://docs.databricks.com/aws/en/admin/governed-tags/" target="_blank"&gt;https://docs.databricks.com/aws/en/admin/governed-tags/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;I hope this helps!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 24 Mar 2026 17:44:57 GMT</pubDate>
    <dc:creator>emma_s</dc:creator>
    <dc:date>2026-03-24T17:44:57Z</dc:date>
    <item>
      <title>New policy for mask column fails - Compilation error with message 'Unknown tag policy key'</title>
      <link>https://community.databricks.com/t5/data-governance/new-policy-for-mask-column-fails-compilation-error-with-message/m-p/151797#M2799</link>
      <description>&lt;P&gt;I have created custom tags on a column and plan to mask columns with tags via policy.&amp;nbsp; I am facing 2 issues&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;1. Cant see the custom tag under - Mask column if it has specific tag.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2. If I type my custom tag get error when creating policy&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class=""&gt;Policy creation failed&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;Invalid condition in policy 'MaskEmailColumnsPolicy'. Compilation error with message 'Unknown tag policy key `data_classification`'.&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;Created a tag on a column&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SET&lt;/SPAN&gt; &lt;SPAN&gt;TAG&lt;/SPAN&gt; &lt;SPAN&gt;ON&lt;/SPAN&gt; &lt;SPAN&gt;COLUMN&lt;/SPAN&gt; &lt;SPAN&gt;raw&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;abc&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;abac_test&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;cemail&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;data_classification &lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;'email'&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Create a new policy 'MaskEmailColumnsPolicy' where scope is all schema;&amp;nbsp;applied to all users&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 24 Mar 2026 09:48:09 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-governance/new-policy-for-mask-column-fails-compilation-error-with-message/m-p/151797#M2799</guid>
      <dc:creator>SunilN</dc:creator>
      <dc:date>2026-03-24T09:48:09Z</dc:date>
    </item>
    <item>
      <title>Re: New policy for mask column fails - Compilation error with message 'Unknown tag policy key'</title>
      <link>https://community.databricks.com/t5/data-governance/new-policy-for-mask-column-fails-compilation-error-with-message/m-p/151872#M2800</link>
      <description>&lt;P&gt;Hi, to use a tag in a tag policy it needs to be a governed tag rather than just a general tag. IF you just create it using Set tags UC sees it as a informational tag rather than a governed tag. If you use a CREATE tag statement to create it then you'll have it as an option in your policies.&amp;nbsp; Governed tags must have a tag policy which specifies the allowed list of values, this prevents users being able to put any random value against it and threfore is why it's used for ABAC. Docs on Governed tags here&amp;nbsp;&lt;A href="https://docs.databricks.com/aws/en/admin/governed-tags/" target="_blank"&gt;https://docs.databricks.com/aws/en/admin/governed-tags/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;I hope this helps!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Mar 2026 17:44:57 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-governance/new-policy-for-mask-column-fails-compilation-error-with-message/m-p/151872#M2800</guid>
      <dc:creator>emma_s</dc:creator>
      <dc:date>2026-03-24T17:44:57Z</dc:date>
    </item>
  </channel>
</rss>

