# policy tags error with 1.5.0 only

**URL:** <https://discourse.getdbt.com/t/policy-tags-error-with-1-5-0-only/8227>\
**Category:** Help\
**Tags:** bigquery, dbt-core\
**Created:** [May 10, 2023, 1:57pm UTC](https://discourse.getdbt.com/t/policy-tags-error-with-1-5-0-only/8227 "2023-05-10T13:57:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![matfior](https://sea2.discourse-cdn.com/flex020/user_avatar/discourse.getdbt.com/matfior/32/2378_2.png) [@matfior](https://discourse.getdbt.com/u/matfior)\
**Post date:** [May 10, 2023, 1:57pm UTC](https://discourse.getdbt.com/t/policy-tags-error-with-1-5-0-only/8227/1 "2023-05-10T13:57:28Z")

</div>

## The problem I’m having

Using dbt 1.5.0 gives me errors about policy tags in BQ even if we are not using them.

## The context of why I’m trying to do this

Running my models normally.

## What I’ve already tried

This happens only with 1.5.0, going back to 1.4.3 solves the error.

## Some example code or error messages

```auto
08:25  
15:08:25 400 PATCH https://bigquery.googleapis.com/bigquery/v2/projects/datawarehouse-304513/datasets/_dev_dataproducts_mf/tables/il_awin_transaction?prettyPrint=false: Policy tags can only be attached to a leaf field.
15:08:25  
15:08:25 400 PATCH https://bigquery.googleapis.com/bigquery/v2/projects/datawarehouse-304513/datasets/_dev_dataproducts_mf/tables/il_gcp_billing_export?prettyPrint=false: Policy tags can only be attached to a leaf field.
15:08:25  
15:08:25 400 PATCH https://bigquery.googleapis.com/bigquery/v2/projects/datawarehouse-304513/datasets/_dev_dataproducts_mf/tables/il_gcp_cloud_pricing_export?prettyPrint=false: Policy tags can only be attached to a leaf field.
15:08:25  
15:08:25 400 PATCH https://bigquery.googleapis.com/bigquery/v2/projects/datawarehouse-304513/datasets/_dev_dataproducts_mf/tables/b2b_sales_commissions?prettyPrint=false: Policy tags can only be attached to a leaf field.
15:08:25  

```

---

<div class="post-metadata">

**Author:** ![joellabes](https://sea2.discourse-cdn.com/flex020/user_avatar/discourse.getdbt.com/joellabes/32/3980_2.png) [@joellabes](https://discourse.getdbt.com/u/joellabes)\
**Post date:** [May 10, 2023, 5:21pm UTC](https://discourse.getdbt.com/t/policy-tags-error-with-1-5-0-only/8227/2 "2023-05-10T17:21:38Z")

</div>

@matfior if this is a new regression in dbt, can you please open an issue on the GitHub repo instead? [Issues · dbt-labs/dbt-bigquery · GitHub](https://github.com/dbt-labs/dbt-bigquery/issues/)

---

<div class="post-metadata">

**Author:** ![matfior](https://sea2.discourse-cdn.com/flex020/user_avatar/discourse.getdbt.com/matfior/32/2378_2.png) [@matfior](https://discourse.getdbt.com/u/matfior)\
**Post date:** [May 11, 2023, 1:22pm UTC](https://discourse.getdbt.com/t/policy-tags-error-with-1-5-0-only/8227/3 "2023-05-11T13:22:55Z")

</div>

> [@matfior](#):
>
> `_dev_dataproducts_mf`

Done.

> <https://github.com/dbt-labs/dbt-bigquery/issues/712>
>
> \### Is this a regression in a recent version of dbt-bigquery?
> 
> \- \[X\] I believe… this is a regression in dbt-bigquery functionality
> \- \[X\] I have searched the existing issues, and I could not find an existing issue for this regression
> 
> \### Current Behavior
> 
> Running my models with the latest version of dbt gives me errors about policy tags which we are not using.
> 
> Only some models are failing but they do not have anything special about them.
> 
> \### Expected/Previous Behavior
> 
> No errors.
> 
> \### Steps To Reproduce
> 
> 1. Install latest version of dbt
> 2. Run the models
> 
> \### Relevant log output
> 
> \`\`\`shell
> 08:25  
> 15:08:25 400 PATCH https://bigquery.googleapis.com/bigquery/v2/projects/datawarehouse-304513/datasets/\_dev\_dataproducts\_mf/tables/il\_awin\_transaction?prettyPrint=false: Policy tags can only be attached to a leaf field.
> 15:08:25  
> 15:08:25 400 PATCH https://bigquery.googleapis.com/bigquery/v2/projects/datawarehouse-304513/datasets/\_dev\_dataproducts\_mf/tables/il\_gcp\_billing\_export?prettyPrint=false: Policy tags can only be attached to a leaf field.
> 15:08:25  
> 15:08:25 400 PATCH https://bigquery.googleapis.com/bigquery/v2/projects/datawarehouse-304513/datasets/\_dev\_dataproducts\_mf/tables/il\_gcp\_cloud\_pricing\_export?prettyPrint=false: Policy tags can only be attached to a leaf field.
> 15:08:25  
> 15:08:25 400 PATCH https://bigquery.googleapis.com/bigquery/v2/projects/datawarehouse-304513/datasets/\_dev\_dataproducts\_mf/tables/b2b\_sales\_commissions?prettyPrint=false: Policy tags can only be attached to a leaf field.
> 15:08:25
> \`\`\`
> 
> \### Environment
> 
> \`\`\`markdown
> \- OS: MacOs 12.6.5
> \- Python: Python 3.9.6
> \- dbt-core (working version): 1.4.6
> \- dbt-bigquery (working version): 1.4.3
> \- dbt-core (regression version): 1.5.0
> \- dbt-bigquery (regression version): 1.5.0
> \`\`\`
> 
> 
> \### Additional Context
> 
> \_No response\_

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/getdbt/original/1X/a7a7ca1fe379aaf90952b0e13118a817babcd14f.png) [@system](https://discourse.getdbt.com/u/system)\
**Post date:** [May 25, 2023, 1:37am UTC](https://discourse.getdbt.com/t/policy-tags-error-with-1-5-0-only/8227/4 "2023-05-25T01:37:45Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
