Cant get this to increment through the csv

Hi All

having a issue where my macro wont increment through the csv but remains always on the first line in it, watched a few videos but I seem to be missing something.

please advise

{
“Name”: “test”,
“CreationDate”: “2021-7-15”,
“Commands”: [
{
“Command”: “XDesktopAutomation”,
“Target”: “true”,
“Value”: “”,
“Description”: “”
},
{
“Command”: “store”,
“Target”: “true”,
“Value”: “!errorignore”,
“Description”: “reconcile”
},
{
“Command”: “open”,
“Target”: “Login | Xero Accounting Software”,
“Value”: “”,
“Description”: “login”
},
{
“Command”: “click”,
“Target”: “id=xl-form-email”,
“Value”: “”,
“Description”: “login”
},
{
“Command”: “type”,
“Target”: “id=xl-form-email”,
“Value”: “removed”,
“Description”: “login”
},
{
“Command”: “type”,
“Target”: “id=xl-form-password”,
“Value”: “removed”,
“Description”: “login”
},
{
“Command”: “click”,
“Target”: “id=xl-form-password”,
“Value”: “”,
“Description”: “login”
},
{
“Command”: “click”,
“Target”: “id=xl-form-submit”,
“Value”: “”,
“Description”: “login”
},
{
“Command”: “XRunAndWait”,
“Target”: “C:\Users\e6430s\Desktop\uivision\datasources\Authy Desktop Setup 1.8.3.exe”,
“Value”: “#doubleclick”,
“Description”: “authy”
},
{
“Command”: “pause”,
“Target”: “1000”,
“Value”: “”,
“Description”: “authy”
},
{
“Command”: “XClick”,
“Target”: “xeroauth_dpi_144.png”,
“Value”: “”,
“Description”: “authy”
},
{
“Command”: “pause”,
“Target”: “500”,
“Value”: “”,
“Description”: “authy”
},
{
“Command”: “XClick”,
“Target”: “copy2_dpi_144.png”,
“Value”: “”,
“Description”: “authy”
},
{
“Command”: “pause”,
“Target”: “500”,
“Value”: “”,
“Description”: “authy”
},
{
“Command”: “XType”,
“Target”: “${KEY_ALT+KEY_F4}”,
“Value”: “”,
“Description”: “authy”
},
{
“Command”: “pause”,
“Target”: “500”,
“Value”: “”,
“Description”: “authy”
},
{
“Command”: “type”,
“Target”: “/html/body/div/div/div/div/form/div[1]/div/input”,
“Value”: “${!clipboard}”,
“Description”: “login”
},
{
“Command”: “clickAndWait”,
“Target”: “xpath=//[@id="auth-splashpage"]/div/div/form/button",
“Value”: “”,
“Description”: “login”
},
{
“Command”: “csvRead”,
“Target”: “companies.csv”,
“Value”: “”,
“Description”: “xero”
},
{
“Command”: “executeScript_Sandbox”,
“Target”: “return Number (1)”,
“Value”: “currentRow”,
“Description”: “reconcile”
},
{
“Command”: “while_v2”,
“Target”: “${currentRow} <= ${!CSVREADMAXROW}”,
“Value”: “currentRow”,
“Description”: “”
},
{
“Command”: “store”,
“Target”: “${currentRow}”,
“Value”: “!CSVREADLINENUMBER”,
“Description”: “”
},
{
“Command”: “csvRead”,
“Target”: “companies.csv”,
“Value”: “”,
“Description”: “”
},
{
“Command”: “open”,
“Target”: “Login | Xero Accounting Software”,
“Value”: “”,
“Description”: “xero”
},
{
“Command”: “pause”,
“Target”: “5000”,
“Value”: “”,
“Description”: “xero”
},
{
“Command”: “type”,
“Target”: “/html/body/div[5]/form/div/div[2]/section[1]/div[1]/div/div[1]/div/div/div[5]/div/div/table/tbody/tr/td/input”,
“Value”: “${!COL1}”,
“Description”: “xero”
},
{
“Command”: “pause”,
“Target”: “1000”,
“Value”: “”,
“Description”: “xero”
},
{
“Command”: “clickAndWait”,
“Target”: “/html/body/div[5]/form/div/div[2]/section[1]/div[1]/div/div[1]/div/div/div[5]/div/div/div[2]”,
“Value”: “”,
“Description”: “xero”
},
{
“Command”: “clickAndWait”,
“Target”: “/html/body/div[5]/form/div/div[2]/section[1]/div[1]/div/div[3]/div/table/tbody/tr/td[3]/div/div[1]/a”,
“Value”: “”,
“Description”: “xero”
},
{
“Command”: “pause”,
“Target”: “1000”,
“Value”: “”,
“Description”: “xero”
},
{
“Command”: “open”,
“Target”: “Login | Xero Accounting Software”,
“Value”: “”,
“Description”: “xero”
},
{
“Command”: “pause”,
“Target”: “1000”,
“Value”: “”,
“Description”: “reconcile”
},
{
“Command”: “store”,
“Target”: “5”,
“Value”: “i”,
“Description”: “reconcile”
},
{
“Command”: “label”,
“Target”: “bank feeds”,
“Value”: “”,
“Description”: “reconcile”
},
{
“Command”: “while_v2”,
“Target”: “${i}<16”,
“Value”: “”,
“Description”: “reconcile”
},
{
“Command”: “executeScript_Sandbox”,
“Target”: “return Number (${i}) +1;”,
“Value”: “i”,
“Description”: “reconcile”
},
{
“Command”: “verifyElementPresent”,
“Target”: “/html/body/div[2]/form/div/div[1]/div[${i}]/div/div[2]/div[1]/div[4]/a”,
“Value”: “”,
“Description”: “reconcile”
},
{
“Command”: “if_v2”,
“Target”: “${!LastCommandOk} == true”,
“Value”: “if no bank recon”,
“Description”: “”
},
{
“Command”: “clickAndWait”,
“Target”: “/html/body/div[2]/form/div/div[1]/div[${i}]/div/div[2]/div[1]/div[4]/a”,
“Value”: “”,
“Description”: “reconcile”
},
{
“Command”: “pause”,
“Target”: “1000”,
“Value”: “”,
“Description”: “reconcile”
},
{
“Command”: “times”,
“Target”: “5”,
“Value”: “”,
“Description”: “reconcile”
},
{
“Command”: “times”,
“Target”: “10”,
“Value”: “”,
“Description”: “reconcile”
},
{
“Command”: “verifyElementPresent”,
“Target”: “/html/body/div[2]/form/div/div[1]/div[2]/div[1]/div[3]/div[${!times}]/div[3]/div[2]/div/div[2]/div/a”,
“Value”: “”,
“Description”: “reconcile”
},
{
“Command”: “if_v2”,
“Target”: “${!LastCommandOk} == false”,
“Value”: “if no potential others”,
“Description”: “”
},
{
“Command”: “click”,
“Target”: “/html/body/div[2]/form/div/div[1]/div[2]/div[1]/div[3]/div[${!times}]/div[2]/a[1]”,
“Value”: “”,
“Description”: “reconcile”
},
{
“Command”: “end”,
“Target”: “”,
“Value”: “”,
“Description”: “”
},
{
“Command”: “end”,
“Target”: “”,
“Value”: “”,
“Description”: “”
},
{
“Command”: “verifyElementPresent”,
“Target”: “/html/body/div[2]/form/div/div[1]/div[2]/div[1]/div[5]/div/div/ul/li[3]/a”,
“Value”: “”,
“Description”: “”
},
{
“Command”: “if_v2”,
“Target”: “${!LastCommandOk} == true”,
“Value”: “if next page exists”,
“Description”: “”
},
{
“Command”: “click”,
“Target”: “/html/body/div[2]/form/div/div[1]/div[2]/div[1]/div[5]/div/div/ul/li[3]/a”,
“Value”: “nextpage”,
“Description”: “move onto next page”
},
{
“Command”: “pause”,
“Target”: “2000”,
“Value”: “”,
“Description”: “authy”
},
{
“Command”: “else”,
“Target”: “”,
“Value”: “”,
“Description”: “move onto next page”
},
{
“Command”: “open”,
“Target”: “Login | Xero Accounting Software”,
“Value”: “”,
“Description”: “move onto next page”
},
{
“Command”: “gotoLabel”,
“Target”: “bank feeds”,
“Value”: “”,
“Description”: “move onto next page”
},
{
“Command”: “end”,
“Target”: “”,
“Value”: “”,
“Description”: “reconcile”
},
{
“Command”: “end”,
“Target”: “”,
“Value”: “”,
“Description”: “reconcile”
},
{
“Command”: “else”,
“Target”: “”,
“Value”: “”,
“Description”: “reconcile”
},
{
“Command”: “gotoLabel”,
“Target”: “bank feeds”,
“Value”: “”,
“Description”: “move onto next page”
},
{
“Command”: “end”,
“Target”: “”,
“Value”: “”,
“Description”: “reconcile”
},
{
“Command”: “open”,
“Target”: “Login | Xero Accounting Software”,
“Value”: “”,
“Description”: “move onto next page”
},
{
“Command”: “gotoLabel”,
“Target”: “bank feeds”,
“Value”: “”,
“Description”: “move onto next page”
},
{
“Command”: “executeScript_Sandbox”,
“Target”: “return Number (${currentRow}) +1;”,
“Value”: “currentRow”,
“Description”: “”
},
{
“Command”: “end”,
“Target”: “”,
“Value”: “”,
“Description”: “”
},
{
“Command”: “end”,
“Target”: “”,
“Value”: “”,
“Description”: “”
},
{
“Command”: “click”,
“Target”: "xpath=//
[@id="header"]/header/div[2]/ol[2]/li[5]/button/div/abbr”,
“Value”: “”,
“Description”: “”
},
{
“Command”: “clickAndWait”,
“Target”: “xpath=//*[@id="header"]/header/div[2]/ol[2]/li[5]/div/div[2]/div/ol/li[6]/a”,
“Value”: “”,
“Description”: “”
},
{
“Command”: “selectWindow”,
“Target”: “tab=close”,
“Value”: “”,
“Description”: “”
}
]
}

this only relates to the currentRow references near the beginning and the end.

can anyone advise?

Think I got it, my last currentRow statement should have been a CSVREADLINENUMBER and I had it in the wrong position, it had to be one further down.