Medium severitycredentials
Power BI Refresh Error:
Row Access Policy Error
What does this error mean?
A Snowflake row access policy blocked a query or caused an error. The policy may be incorrectly configured, or the executing role is not mapped to any policy condition and receives zero rows.
Common causes
- 1The row access policy mapping table does not include the executing role, causing the policy to return no rows for all queries
- 2The policy body references a mapping table that was dropped or does not exist
- 3A pipeline's service account role was recently changed and the new role is not in the policy mapping
- 4The policy was applied to a table used by a Dynamic Table, triggering a refresh error or reinitialization
How to fix it
- 1Test the policy with the failing role: `SELECT * FROM TABLE(INFORMATION_SCHEMA.POLICY_REFERENCES(REF_ENTITY_NAME=>'<table>'))` to confirm the policy is applied.
- 2Check the policy mapping table to verify the executing role has a row: `SELECT * FROM <mapping_table> WHERE role = CURRENT_ROLE()`.
- 3Add the service account role to the mapping table with the appropriate access condition.
- 4For Dynamic Tables affected by row access policies: consult the Snowflake documentation on Dynamic Table RAP compatibility — some RAP configurations require full refresh mode.