Section 1 finalize returns 422 "Invalid final data counts" despite correct payload

Adding to what Anshul said, since there is a thread with your exact error message (not the “Progress incompleted” one) where Jamie from the n8n team confirmed the batch size and posted a screenshot of the reference run:

Two things from that thread that I’d have open when you re-run.

The screenshot gives you a way to sanity check the run before you even hit finalize. With 12 enterprise orders and a batch size of 5, BatchPriorityOrders should show 4 runs and SendToPriorityQueue should show 3 (5, 5, 2). If the priority queue node still shows 2 then the loop is still on 10 and I wouldn’t trust the finalize call until that number changes. Your total_orders 50 and enterprise_count 12 both line up with what the reference run shows, so batch_size really is the only number that’s off.

The other thing Jamie kept pointing at, both in that thread and in the “Missing required parameter: total_orders” one from last week, is types. If the FinalizePipeline body is on “Using Fields Below” and you typed 50 and true straight into the value fields, they go out as strings, even though they look right in the UI.