DemoCSVREadWithWhile.. Why is data added to original csv data to fill form web?

Hello World!
Sorry, but I realy need a little help from my friends… :slight_smile:
I’m trying to use DemoCSVREadWithWhile and an error chases me.
When it’s read csv to put a form it’s add “_1” after original data. Why?
The commands are in the subroutine:
´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´
“Commands”: [
{
“Command”: “click”,
“Target”: “id=AddressCEP”,
“Value”: “”,
“Targets”: [
“id=AddressCEP”,
“name=AddressCEP”,
“xpath=//[@id=“AddressCEP”]",
“xpath=//input[@id=‘AddressCEP’]”,
“xpath=//input”,
“css=#AddressCEP”
]
},
{
“Command”: “type”,
“Target”: “id=AddressCEP”,
“Value”: “{!COL7}_{!csvReadLineNumber}”,
“Targets”: [
“id=AddressCEP”,
“name=AddressCEP”,
"xpath=//
[@id=“AddressCEP”]”,
“xpath=//input[@id=‘AddressCEP’]”,
“xpath=//input”,
“css=#AddressCEP”
]
},
´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´
In routine is common code…
´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´
{
“Name”: “waittorun”,
“CreationDate”: “2020-6-23”,
“Commands”: [
{
“Command”: “store”,
“Target”: “180”,
“Value”: “!timeout_macro”
},
{
“Command”: “store”,
“Target”: “fast”,
“Value”: “!replayspeed”
},
{
“Command”: “comment”,
“Target”: “r e a d i n g c s v”,
“Value”: “”
},
{
“Command”: “csvRead”,
“Target”: “inception.csv”,
“Value”: “”
},
{
“Command”: “echo”,
“Target”: “Status = {!csvReadStatus}, line = {!csvReadLineNumber}”,
“Value”: “”
},
{
“Command”: “while_v2”,
“Target”: “{!csvReadStatus} == \"OK\"", "Value": "" }, { "Command": "echo", "Target": "status = {!csvReadStatus}, line = {!csvReadLineNumber}", "Value": "" }, { "Command": "open", "Target": "https://backofwindows.com/", "Value": "" }, { "Command": "comment", "Target": "Call subroutine for the actual form filling", "Value": "" }, { "Command": "run", "Target": "sub/Sub_FORM_insideup", "Value": "" }, { "Command": "executeScript_Sandbox", "Target": "return Number({!csvReadLineNumber})+1”,
“Value”: “!csvReadLineNumber”
},
{
“Command”: “store”,
“Target”: “true”,
“Value”: “!errorIgnore”
},
{
“Command”: “echo”,
“Target”: "Reading CSV line No. ${!csvReadLineNumber} ",
“Value”: “!errorIgnore”
},
{
“Command”: “csvRead”,
“Target”: “inception.csv”,
“Value”: “”
},
{
“Command”: “store”,
“Target”: “false”,
“Value”: “!errorIgnore”
},
{
“Command”: “end”,
“Target”: “”,
“Value”: “”
}
]
}
´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´
What is incorrect?
I very thank. :slight_smile:

_{!csvReadLineNumber} is _1 ! => Remove this part :slight_smile:

1 Like