I have a standard loop step in my zap. The last record of the set of records is not being processed. I originally set the loop as:
1. Lookup all google records where field_a = true
2. Loop
2a. Lookup specific google record (kind of redundant, but I do this to get the specific record #)
2b. Path
2b1 Path A - If field_b = “apple”, then process A
2b2 Path B - if field_b = “orange”, then process B
2b3 Path C - if field_b = “pear”, then process C
2b4 Path D - if last iteration = “true”
2b4a - create audit record of # records processed
The audit record in 2b4a always contained 1 more record processed (via Total Iterations field) than records processed (per results in Paths A,B,C).This is confirmed by an audit of the data.
So, I tried this:
1. Lookup all google records where field_a = true
2. Loop
2a. Lookup specific google record (kind of redundant, but I do this to get the specific record #)
2b. Path
2b1 Path A - Always run
2b1a Filter … If field_b = “apple”, then process A
2b2 Path B - Always run
2b2a Filter … if field_b = “orange”, then process B
2b3 Path C - Always Run
2b3a Filter … if field_b = “pear”, then process C
2b4 Path D - Always Run
2b4a Filter … if last iteration = “true”
2b4a1 - create audit record of # records processed
I’m getting the same result … the audit record in 2b4a1 contains 1 more record processed (via Total Iterations field) than records processed (per results in Paths A,B,C). Again, confirmed by auditing the data.
Any thoughts?