Medium severityconfiguration
Power BI Refresh Error:
MASKING_POLICY_CONFLICT
What does this error mean?
A column or table has two conflicting masking policy assignments — for example, a direct column-level policy and a tag-based policy — causing Snowflake to reject the duplicate assignment or report a policy error in Snowsight.
Common causes
- 1A column already has a masking policy directly applied and a tag-based masking policy is also triggered on it
- 2The same column is assigned two different tag-based masking policies through tag inheritance
- 3A developer manually applied a masking policy to a column that was already covered by a schema-wide tag policy
- 4A cloned table inherited masking policies that conflict with the policies set on the new schema
How to fix it
- 1Step 1: In Snowsight, navigate to the table's Columns tab and check for any Policy Error indicator on the conflicting column.
- 2Step 2: Run SELECT * FROM TABLE(INFORMATION_SCHEMA.POLICY_REFERENCES(POLICY_NAME=>'<policy_name>')) to see all objects the policy is applied to.
- 3Step 3: Unset the directly applied masking policy from the column using ALTER TABLE <t> MODIFY COLUMN <c> UNSET MASKING POLICY.
- 4Step 4: If the conflict is between two tag-based policies, remove one of the conflicting tag assignments from the column or object.
- 5Step 5: Verify the column now has exactly one effective masking policy using SHOW MASKING POLICIES.