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.
0
Comments
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"?>
<TEST>{{#each batch_of_records}}
<ID>{{this.rows.0.id}}</ID>
{{#each this.rows}}
<LINE>{{this.line}}</LINE>
{{/each}}
{{/each}}
</TEST>
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:
Yeah existing templates would work as they are.
Please sign in to leave a comment.