Loop is stuck at the first line of a csv file, not progressing to the next line

My json is not advancing to the next line of a csv file, please take a look at the code and let me know if you can help:

{
“Name”: “TestLoopMacro”,
“CreationDate”: “2023-11-07”,
“Commands”: [
{
“Command”: “csvRead”,
“Target”: “test.csv”,
“Value”: “”
},
{
“Command”: “label”,
“Target”: “startLoop”,
“Value”: “”
},
{
“Command”: “gotoIf”,
“Target”: “${!csvReadStatus} != ‘OK’”,
“Value”: “endLoop”
},
{
“Command”: “echo”,
“Target”: “Reading line ${!csvReadLineNumber}: ${!COL1}”,
“Value”: “blue”
},
{
“Command”: “csvRead”,
“Target”: “test.csv”,
“Value”: “”
},
{
“Command”: “gotoLabel”,
“Target”: “startLoop”,
“Value”: “”
},
{
“Command”: “label”,
“Target”: “endLoop”,
“Value”: “”
},
{
“Command”: “echo”,
“Target”: “Finished reading CSV file.”,
“Value”: “green”
}
]
}

I would never create a loop with “goto”. There are other better loop constructs in Kantu to use.I would explore them.

Before the macro restart for next loop you must add a command to increase the counter line

Un your case you must increment this variable !csvReadLineNumber

Read here