Why does the FTP “Build XML Document” step show duplicate batch records?

I’m working on an FTP import flow that generates an XML file.

When I open the Build XML Document step and look at the Resources available for your Handlebars template, I see a batch_of_records array containing 5 records, even though I only have 1 mock record before this step.

All 5 records in the preview are identical duplicates records.

Is this expected behavior in the preview (for example, to simulate multiple records for testing)?
I’d like to understand why the Build XML Document preview shows multiple identical records when the source data only includes one.

1 Like

Since all preview calls only use one record throughout the flow, that is expected.

Expected to have 5 duplicate records? But why a batch of records of 5?

Just for preview, yes. It's just to show that a batch of records is, in fact, a batch of records. Many users often hard-code index positions, so by showing multiple records it better highlights that there will be multiple records. Since the preview, though, is only 1 record, that 1 record is what's used many times.

1 Like

Makes sense, thanks Tyler.