Templatesyntaxerror: Unexpected Char U'\\' At 205 Airflow Macros
I am getting the following error : File '', line 1, in template TemplateSyntaxError: unexpected char u'\\' at 205 When I include this in my code: '{{ macr
Solution 1:
Change to this:
"{{ macros.ds_format(macros.ds_add(ds, -13), '%Y-%m-%d', '%Y%m%d') }}"
Airflow jinja templates does not accept " in the middle of your template. I've had this same problem using this same ds_format macro. Always represents strings inside your template with ', for example: 'my_string', and it should work.
Post a Comment for "Templatesyntaxerror: Unexpected Char U'\\' At 205 Airflow Macros"