Unanswered question

Why doesn't my script pick up a variable from the Variable Manager?

I have a csv file imported into my project under the file variable. I'm trying to access a certain column from that data sheet in the JavaScript I have written. For the most part, it is able to pick up values from some columns, but some columns it doesn't pick up. I made sure I'm typing the column name right and I do see the column under Variable Manager when I go to that specific variable.

Aayush S.
Aayush S.

Aayush S.

Level
1
189 / 750
points

Answers

Nouredine A.
Nouredine A.

Nouredine A.

Level
4
5000 / 5000
points
Team

If you do not see your column in NeoLoad then you should check your CSV file content. I guess a value of one of your cell breaks the reading of the CSV file. It could be a non escaped value, a double quote that does not end etc...

Aayush S.
Aayush S.

Aayush S.

Level
1
189 / 750
points

Hi Nouredine, I do see the column under variable manager, but when I try to access it, it doesn't recognize it. I'm doing the "variable name.the column name" and made sure it's spelled correctly, but it still isn't finding it for some reason.

Nouredine A.
Nouredine A.

Nouredine A.

Level
4
5000 / 5000
points
Team

My first response still applied. I had the same issue with another customer and the column was displayed in the variable manager but there were on the cell some return carriage and NeoLoad was sending the variable instead of the content of the cell. Is it what you encountered?

Aayush S.
Aayush S.

Aayush S.

Level
1
189 / 750
points

No, it's not returning anything in return. So in my script I'm extracting another column from a csv file and when I run the script, it shows that variable extracted and its value, however, when I do the same thing for this column, it doesn't even show this column as being extracted. Check the screenshot attached, this is when I run the check this userpath. The values that show "y" are being extracted from csv file from other columns, but I don't even see the other column being extracted let alone it returning something.

Aayush S.
Aayush S.

Aayush S.

Level
1
189 / 750
points

Issue is now resolved. Had issues with formatting in the csv file. thanks.