# Json template parsing error

**URL:** https://connective.celigo.com/t/json-template-parsing-error/1009
**Category:** Integrator.io
**Tags:** amazon-s3, error-handling, xml, json, flow-builder
**Created:** [October 29, 2024, 7:24pm UTC](https://connective.celigo.com/t/json-template-parsing-error/1009 "2024-10-29T19:24:31Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![daveguderian](https://avatars.discourse-cdn.com/v4/letter/d/ce7236/32.png) [@daveguderian](https://connective.celigo.com/u/daveguderian)
#### Post date: [October 29, 2024, 7:24pm UTC](https://connective.celigo.com/t/json-template-parsing-error/1009/1 "2024-10-29T19:24:31Z")

</div>

I am receiving the following error when I run my flow and at a loss for what might be causing it or where to look. My input looks fine when I preview it on the S3 import step, however, at run time it always throws the same error. I also had a similar error when trying to do this via XML (XML parsing error). Any ideas what might be causing this error and what to do to fix it?

Message:   
 {{# each batch\_of\_records}} not found in the template.

Code: json\_template\_parsing\_error

Source: Resource  
   
 Timestamp: 2024-10-29T18:58:41.475Z

Error ID: 1285698224

---

<div class="post-metadata">

### Author: ![tylerlamparter](https://sea1.discourse-cdn.com/flex001/user_avatar/connective.celigo.com/tylerlamparter/32/9204_2.png) [@tylerlamparter](https://connective.celigo.com/u/tylerlamparter)
#### Post date: [October 30, 2024, 4:39am UTC](https://connective.celigo.com/t/json-template-parsing-error/1009/2 "2024-10-30T04:39:30Z")

</div>

@daveguderian I would go through this and see if it answers what you need: [https://connective.celigo.com/t/error-footer-not-found-in-the-template-when-saving-json-file-to-ftp/74](https://connective.celigo.com/t/error-footer-not-found-in-the-template-when-saving-json-file-to-ftp/74).

---

<div class="post-metadata">

### Author: ![daveguderian](https://avatars.discourse-cdn.com/v4/letter/d/ce7236/32.png) [@daveguderian](https://connective.celigo.com/u/daveguderian)
#### Post date: [November 3, 2024, 4:12am UTC](https://connective.celigo.com/t/json-template-parsing-error/1009/3 "2024-11-03T04:12:12Z")

</div>

Thanks Tyler! That was super helpful!
