Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Snowflake Quickstart Guide: Add common grants troubleshooting tip #6587

Merged
merged 12 commits into from
Dec 4, 2024
17 changes: 17 additions & 0 deletions website/docs/guides/snowflake-qs.md
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,23 @@ 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.

:::warning
mirnawong1 marked this conversation as resolved.
Show resolved Hide resolved
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:
mirnawong1 marked this conversation as resolved.
Show resolved Hide resolved

```
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;
```

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.
mirnawong1 marked this conversation as resolved.
Show resolved Hide resolved
:::

## Build your first model

You have two options for working with files in the dbt Cloud IDE:
Expand Down
Loading