I have installed and run the test script “Fill a form with data from CSV file”. It works perfectly.
However, when I create similar scripts and upload my own CSV files I consistently get the following error:
[error] SyntaxError: Unexpected token b in JSON at position 0
The token, (“b” in the example above), is nearly always the first letter of the first word in the first column of the CSV file.
In an effort to diagnose my problem, I did a small experiment with the test script. I downloaded the data.csv file from the “Test Data” section then deleted it from Katalon. I then immediately re-uploaded the same file back into the Test Data section. After doing this, I got the same Syntax error (see above - but token was “i” in this case and position was “1”) and the test script failed.
Having failed the test script, I completely removed it and the associated test data and re-uploaded a new copy. This action restored the script to working order.
I have constructed csv files using google sheets and libreoffice - no difference. I’ve tried my Chromebook and my Windows PC - no difference. I’ve shut down all the other chrome extensions - no difference. I’ve tried an earlier version of Katalon Recorder (version no. escapes me at the moment but I believe it was one that was recommended on this forum) - no difference.
In summary, I’m uploading what appear to be perfectly good csv files that look exactly like the script example but I’m getting a consistent syntax error. And it’s also happening on the script example that comes with Katalon Recorder.
I’ve googled this problem but have not found anything that has helped me resolve this issue.
My Chrome browser version is 92.0.4515.157 and the Katalon Recorder version is 18.104.22.168
I would appreciate any help in solving this problem