Strange Issue with 'Each' Loop in FTP Template

I'm running into a strange issue where an error keeps popping up, and I can't figure out why. It feels like it might be a bug. Here's a simplified version of the XML to show what I mean:



The preview works fine, but I keep seeing a 'data not found' error whenever it hits the 'each' loop in the template.




Hope someone can help me out here.

It's the validation for have an each loop specifically for the batch_of_records. As long as your page size is set to 1 and skip aggregation is set to true, then this will work. We're hoping to remove this validation in an upcoming release.

<?xml version="1.0" encoding="UTF-8"?>
{{#each batch_of_records}}
{{this.rows.0.id}}
{{#each this.rows}}
{{this.line}}
{{/each}}
{{/each}}

1 Like

Thanks, this works! I assume that after the release, the current handlebar template setup which is now in place will still function properly following the release update, correct?

For anyone who encounters a similar situation, here are some screenshots to help fix it:

  1. In the Export, set the page size to 1.
  2. In the FTP transfer, set it to skip aggregation.

Yeah existing templates would work as they are.