# Failed Job Execution

**URL:** <https://discourse.getdbt.com/t/failed-job-execution/5281>\
**Category:** Help\
**Tags:** dbt-cloud\
**Created:** [November 4, 2022, 11:54pm UTC](https://discourse.getdbt.com/t/failed-job-execution/5281 "2022-11-04T23:54:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dbille](https://sea2.discourse-cdn.com/flex020/user_avatar/discourse.getdbt.com/dbille/32/1326_2.png) [@dbille](https://discourse.getdbt.com/u/dbille)\
**Post date:** [November 4, 2022, 11:54pm UTC](https://discourse.getdbt.com/t/failed-job-execution/5281/1 "2022-11-04T23:54:40Z")

</div>

Hi everyone. I’m encountering some odd behavior and hoping for some assistance. I’m using the dbt cloud service.  
I just finished dropping some objects from my Snowflake account, and clearing out a few deprecated files within my dbt models folder.  
Within the Develop UI, I’m able to run ‘dbt run’ from the main branch - all my models are executed and there are no issues whatsoever.  
As soon as I navigate back to Deploy \> Run History and run the full job, I immediately get this error shown in the screenshot below. It tells me there a syntax error line1 position27 unexpected’', however it does not specify a file name.  
I tried to change the order that my models were run in, but the same error persists.  
I’m kind of at a loss as to why I can manually run jobs from the Develop UI, but they fail from the Run History UI.  
Any insights are greatly appreciated.

 ![Screenshot 2022-11-04 175358](https://us1.discourse-cdn.com/flex020/uploads/getdbt/original/2X/1/1afa9e6165fe45f4c317663701a7146a6d6e7f49.png)

---

<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:** [November 5, 2022, 8:34pm UTC](https://discourse.getdbt.com/t/failed-job-execution/5281/2 "2022-11-05T20:34:31Z")

</div>

It’s strange that it doesn’t tell you which file is impacted! `<EOF>` stands for end of file. My guess is that you have a jinja tag which is not being closed correctly and the parser is getting to the end of the file without finding the close tag. Eg maybe you have `{{ my_macro() }` with only one closing `}` or `{% set something = 123 }` without a `%`.

If you message the dbt cloud support team using the chat bubble in-app, they might be able to have a look at some logs and see if they can see exactly which file is misbehaving. If nothing else, it’d be worthwhile them knowing that there seems to be a bug where the file name isn’t being shown in the logs!

Note also that dbt will always compile your entire project before running it, even though you’ve only selected a subset of the project to build.

---

<div class="post-metadata">

**Author:** ![dbille](https://sea2.discourse-cdn.com/flex020/user_avatar/discourse.getdbt.com/dbille/32/1326_2.png) [@dbille](https://discourse.getdbt.com/u/dbille)\
**Post date:** [November 6, 2022, 3:20pm UTC](https://discourse.getdbt.com/t/failed-job-execution/5281/3 "2022-11-06T15:20:22Z")

</div>

Thanks for much for your reply joellabes.

I did a little more sleuthing and it turns out that I had simply created a SQL file and forgot to add any code. Looks like the error was due to the empty file.

Thanks again for your help!
