Hi,
I've constructed a flow which on a weekly basis gets JSON from an API, initialises a variable of the JSON, parses that JSON, and then for each row in the data populates a new line in a SQL database. This works as expected and populates all rows to my database

The API has a record limit so i'd like to loop through and get multiple pages. Ideally I'd do this until the record count = 0 but I thought i'd start off simple and just loop through a set number of times. I initalise two variables, then start a Do Until loop. Here I call my API, write the JSON to one of the variable then parse the JSON. The sample JSON used to configure the parser is exactly the same as the non looping version.
When I get to writing the data to the database my flow fails, It says all records are null, there is no data and nothing can be written. I can see the JSON data in the Raw Output view of the run
Do i need to do something different to my JSON call, variable, parser or writer because I'm using them in a loop?


Thanks for any help