Newman not considering the "postman.setNextRequest" in given collection while generating html or csv reports

Your question may already have an answer on the community forum. Please search for related topics, and then read through the guidelines before creating a new topic.

Here’s an outline with best practices for making your inquiry.

My question:
Newman not considering the “postman.setNextRequest” in given collection and the after the collection run stops it will not display results of api requests in html or csv when it encounters setNextRequest in “Test” Script

Details (like screenshots):
pm.test(“Verify the Response Code matches”, () => {
if (pm.response.code === 200) {
if (pm.response.json().value.length && pm.response.json().value.length != 0) {
var count = pm.response.json().value.length;
console.log("Records count is " + count);
}else {
postman.setNextRequest(“aef45c78-7d59-4cbc-9415-b6ad315e9672”);
}
}
else {
pm.expect.fail(Response code not equal to 200);

}

})

How I found the problem:

I’ve already tried: