There was an error in evaluating the Pre-request Script: TypeError: Cannot read property 'shift' of undefined

@vaibhav.sh.05 :wave: I think you are resetting the array back to its original state every time, hence the reason why the request only runs for the first element and since the array never gets exhausted, you are stuck in an infinite loop.

Check the answers here to figure out how to create a loop setNextRequest() doesn't work


You are calling Get Buyer Program Information by ID to perform the iteration, and if you are setting the buyerProgramId array either in this request or any request in between, the array will always be reset to its original state.

You need to structure your Collection in a way that the first request initializes your variables, and then the next requests are used for looping