Closed jvschoen closed 4 years ago
I added template_fields = ['storage_name_object']
to the GoogleMarketingPlatformBaseOperator
which resolves the issue
template_fields = ['storage_name_object']
is missing from GoogleAnalyticsDataImportUploadOperator
and GoogleAnalyticsModifyFileHeadersDataImportOperator
, despitestorage_name_object
being documented as templated.
I will add the missing template_fields
lists, and add to the template parameters storage_bucket
and data_import_filename
.
I also noticed that my files are being uploaded with "Unknown Filename". I also went through the GoogleAnalyticsDataImportUploadOperator
class and saw that the data_import_filename parameter is never called during the upload_file
stage.
Fixed in 2.1.1
When trying to use the new google_analytics operators, the documentation shows that the parameter
storage_name_object
is templated, however when I pass the following:The dag fails with the following error:
I've removed my bucket name here, but it is correct in the url
It looks like it's not recognizing the templated
{{ds_nodash}}
here.We are running v1.10.2-composer