How to import the CSV data to Ignition Edge Perspective

I am using file upload component in ignition edge perspective to read the CSV data while copying the data to memory tag values are incorrect, using event script on file received.


I can see one potential problem.


Your dataset tag is only one column wide but the dataset you are pushing in is three columns wide.

I don't know what's going to happen in those circumstances. Perhaps the tag would be redefined so maybe it should work.

You might try adding a logger in there to output to the log what it's reading for your header. It should be seeing the same columns but doesn't hurt to check if it's reading as a list/array as expected or as just a single string which could be throwing it off.

Thanks for suggestion, added additional two columns to the memory tag. now its throwing the error.

That's telling you that you've messed up the Python indentation on line 2 of your script.

In the script editor, right-click in the script text area | Appearance | enable both Whitespace and Tab Lines.

Tip: when replying to someone use the Reply button under their post rather than the general reply button. That way they get notified and the username of the person you are replying to shows up above your post.