generate_schema_name
macro and it isn't using dbt_cloud_pr_
as the prefix.dbt_cloud_pr_
(like dbt_cloud_pr_123_456_marketing
). dbt_cloud_pr_
(like marketing
).
- Error message:
- Cloning into '/tmp/jobs/123456/target'...
- Successfully cloned repository.
- Checking out to e845be54e6dc72342d5a8f814c8b3316ee220312...
- Failed to checkout to specified revision.
- git checkout e845be54e6dc72342d5a8f814c8b3316ee220312
- fatal: reference is not a tree: e845be54e6dc72342d5a8f814c8b3316ee220312
-
generate_schema_name
macro and it isn't using dbt_cloud_pr_
as the prefix.
+
+To resolve this, change your macro so that the temporary PR schema name contains the required prefix. For example:
+
+- ✅ Temporary PR schema name contains the prefix dbt_cloud_pr_
(like dbt_cloud_pr_123_456_marketing
).
+- ❌ Temporary PR schema name doesn't contain the prefix dbt_cloud_pr_
(like marketing
).
+
+A macro is creating a schema but there are no dbt models writing to that schema. dbt Cloud doesn't drop temporary schemas that weren't written to as a result of running a dbt model.
+
+