Skip to content

Commit

Permalink
Snowflake Quickstart Guide: Add common grants troubleshooting tip (#6587
Browse files Browse the repository at this point in the history
)
  • Loading branch information
mirnawong1 authored Dec 4, 2024
2 parents 0f51394 + 48570d4 commit b4df08a
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions website/docs/guides/snowflake-qs.md
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,26 @@ Now that you have a repository configured, you can initialize your project and s
```
- In the command line bar at the bottom, enter `dbt run` and click **Enter**. You should see a `dbt run succeeded` message.
:::info
If you receive an insufficient privileges error on Snowflake at this point, it may be because your Snowflake role doesn't have permission to access the raw source data, to build target tables and views, or both.

To troubleshoot, use a role with sufficient privileges (like `ACCOUNTADMIN`) and run the following commands in Snowflake.

**Note**: Replace `snowflake_role_name` with the role you intend to use. If you launched dbt Cloud with Snowflake Partner Connect, use `pc_dbt_role` as the role.

```
grant all on database raw to role snowflake_role_name;
grant all on database analytics to role snowflake_role_name;

grant all on schema raw.jaffle_shop to role snowflake_role_name;
grant all on schema raw.stripe to role snowflake_role_name;

grant all on all tables in database raw to role snowflake_role_name;
grant all on future tables in database raw to role snowflake_role_name;
```
:::
## Build your first model
You have two options for working with files in the dbt Cloud IDE:
Expand Down

0 comments on commit b4df08a

Please sign in to comment.