MetricSign
EN|NLRequest Access
Medium severityconfiguration

Power BI Refresh Error:
GIT_REPOSITORY_INTEGRATION_ERROR

What does this error mean?

Snowflake cannot connect to or fetch from the configured Git repository, typically because the API integration credentials are invalid, the repository URL changed, or a branch conflict prevents a clean fetch.

Common causes

  • 1The GitHub personal access token or OAuth credential stored in the Snowflake secret expired or was revoked
  • 2The repository was made private, renamed, or deleted after the integration was created
  • 3A merge conflict or force-push in the repository cannot be resolved automatically by Snowflake
  • 4The Snowflake account's network policy blocks outbound connections to github.com or the Git hosting domain

How to fix it

  1. 1Step 1: Check the error from ALTER GIT REPOSITORY <name> FETCH; to get the specific failure reason.
  2. 2Step 2: Verify the secret holding the Git token is current: run a test fetch manually from a Snowsight notebook.
  3. 3Step 3: Regenerate the personal access token or OAuth credential and update the Snowflake secret.
  4. 4Step 4: Confirm the repository URL in the API integration still matches the repo's current location.
  5. 5Step 5: If a merge conflict is detected in a notebook sync, use the Snowflake UI to discard or commit local changes before re-fetching.

Frequently asked questions

What Git hosting services does Snowflake support?

Snowflake supports GitHub, GitLab, and Bitbucket. Both public and private repositories are supported, with authentication via personal access tokens, OAuth, or SSH keys.

Can I use Snowflake Git integration in a CI/CD pipeline?

Yes — you can call ALTER GIT REPOSITORY <name> FETCH in a Snowflake task or stored procedure to pull the latest code, then execute notebooks or Snowpark code from the updated repository files.

Other configuration errors