Somewhere in prefect-dbt/cli/configs/based.py. The schema field is in extras and in the target_configs, so now prefect is confused which one to use while creating profiles.yml
So we need to pass allow_field_overrides = True , for the new cli blocks and update the existing ones.
This was faced by ylabls - https://github.com/DalgoT4D/webapp/issues/822
The problem is in
_create_dbt_cli_profile
in service.py. This is the diff before it was working and after it stopped workingSomewhere in
prefect-dbt/cli/configs/based.py
. Theschema
field is in extras and in the target_configs, so now prefect is confused which one to use while creatingprofiles.yml
So we need to pass
allow_field_overrides
= True , for the new cli blocks and update the existing ones.