Skip to content

Troubleshooting

Each error below happened while building or verifying this setup.

Plan and deploy

Symptom Cause
Unsupported feature 'INHERITED' from DCM PLAN Inherited grants are off until an administrator opts in: the account parameter FEATURE_RBAC_INHERITED_GRANTS defaults to DISABLED. Plain SQL still parses the syntax, which makes this look like a DCM limitation. Use ON ALL plus ON FUTURE grants, or enable the parameter.
Unsupported feature 'MANAGE GRANTS ON DATABASE' The same parameter also gates container-level MANAGE GRANTS.
Grant not executed: Insufficient privileges on GRANT INHERITED or GRANT MANAGE GRANTS ON SCHEMA, in a schema the project owns Ownership doesn't include container-level MANAGE GRANTS, and the project can't grant it to itself. An administrator grants it outside the project.
Dependency Database ... does not exist or not authorized A definition names an object the project's owner role can't see. Grant MANAGE GRANTS on that database (Adopting it incrementally).
A plan succeeds but doesn't list an inherited grant Observed: the changeset omitted it. Don't rely on plans to review inherited grants.
DCM_ADMIN must have MANAGE GRANTS granted on ACCOUNT from DCM PLAN A future grant in a schema that isn't managed access. Define the schema WITH MANAGED ACCESS and let the project's role own it, rather than granting MANAGE GRANTS on the account.
Grant not executed: Insufficient privileges granting CREATE DATABASE ON ACCOUNT SECURITYADMIN was refused this grant even though it could grant CREATE ROLE. Run that one grant as ACCOUNTADMIN.
A plan doesn't show a change someone made by hand --delta skips unchanged definitions, so it can't see drift. Run a full plan.
A deploy drops something you didn't mean to remove Its definition disappeared, possibly because a Jinja loop's data changed. Read the plan's drop list before merging.
DCM refuses a GRANT OWNERSHIP DCM checks for owner lockout: the project's owner must hold the role it transfers ownership to.

Signing in from GitHub Actions

Symptom Cause
MissingDependencyError from snow with WORKLOAD_IDENTITY Snowflake CLI 3.33.0 bundles connector 4.8.1, whose Azure token-file path needs azure-identity. Install it next to snowflake-cli.
AADSTS700213: No matching federated identity record found The job's subject has no federated credential. Pull-request jobs send <prefix>:pull_request; manual or push runs without an environment send <prefix>:ref:refs/heads/<branch>; jobs in an environment send <prefix>:environment:<name>. The error shows what GitHub sent.
The deploy job never starts on a pull request's branch Intended: the snowflake-dcm environment admits only main.
390422 ... is not allowed to access Snowflake A network policy rejects the runner's address. See "Network policies" in the rotation guide.
A self-hosted job signs in as the wrong user snow read the runner machine's ~/.snowflake/config.toml. Point SNOWFLAKE_HOME at a per-job directory.