prajyotnaik3 opened a new issue, #25718:
URL: https://github.com/apache/airflow/issues/25718
### Apache Airflow version
2.3.3
### What happened
When we try to delete a big query transfer config using
BigQueryDeleteDataTransferConfigOperator, we are unable to find the config, as
the generated transfer config name is erroneous.
As a result, although a transfer config id (that exists) is passed to the
operator, we get an error saying that the transfer config doesn't exist.
### What you think should happen instead
On further analysis, it was revealed that, in the bigquery_dts hook, the
project name is incorrectly created as follows on the line 171:
`project = f"/{project}/locations/{self.location}"`
That is there's an extra / prefixed to the project.
Removing the extra / shall fix this bug.
### How to reproduce
1. Create a transfer config in the BQ data transfers/or use the operator
BigQueryCreateDataTransferOperator (in a project located in Europe).
2. Try to delete the transfer config using the
BigQueryDeleteDataTransferConfigOperator by passing the location of the project
along with the transfer config id. This step will throw the error.
### Operating System
Windows 11
### Versions of Apache Airflow Providers
_No response_
### Deployment
Astronomer
### Deployment details
_No response_
### Anything else
_No response_
### Are you willing to submit PR?
- [X] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]