Issue: When reading a CSV file, the loop command to start from row n (where n > 1) always reads the first row of the CSV file during the initial iteration.
Example: When I loop from rows 5 to 10, it always performs the action for row 1 first.
I have attached the code for the macro that reads the CSV file, and the macro that needs to loop:
{
"Name": "read CSV",
"CreationDate": "2024-3-24",
"Commands": [
{
"Command": "store",
"Target": "fast",
"Value": "!replayspeed",
"Description": ""
},
{
"Command": "comment",
"Target": "The file ReadCSVTestData.csv is pre-installed with UI.Vision RPA.",
"Value": "",
"Description": ""
},
{
"Command": "csvRead",
"Target": "create new ad account innodi agency.csv",
"Value": "",
"Description": ""
},
{
"Command": "comment",
"Target": "Call subroutine for the actual form filling",
"Value": "",
"Description": ""
},
{
"Command": "run",
"Target": "SUB/Sub_CREATE NEW AD ACC",
"Value": "",
"Description": ""
}
]
}
{
"Name": "Sub_CREATE NEW AD ACC",
"CreationDate": "2024-3-24",
"Commands": [
{
"Command": "store",
"Target": "5",
"Value": "!timeout_wait",
"Description": ""
},
{
"Command": "store",
"Target": "fast",
"Value": "!replayspeed",
"Description": ""
},
{
"Command": "store",
"Target": "${!COL1}",
"Value": "adaccountname",
"Description": ""
},
{
"Command": "open",
"Target": "https://google.com/",
"Value": "",
"Description": ""
},
{
"Command": "type",
"Target": "id=APjFqb",
"Value": "${!COL1}",
"Targets": [
"id=APjFqb",
"name=q",
"xpath=//*[@id=\"APjFqb\"]",
"xpath=//textarea[@id='APjFqb']",
"xpath=//textarea",
"css=#APjFqb"
],
"Description": ""
},
{
"Command": "pause",
"Target": "5000",
"Value": "",
"Description": ""
}
]
}