# How to import the CSV data to Ignition Edge Perspective

**URL:** <https://forum.inductiveautomation.com/t/how-to-import-the-csv-data-to-ignition-edge-perspective/100147>\
**Category:** General Discussion\
**Tags:** perspective\
**Created:** [December 23, 2024, 5:39am UTC](https://forum.inductiveautomation.com/t/how-to-import-the-csv-data-to-ignition-edge-perspective/100147 "2024-12-23T05:39:29Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Deepak\_CL](https://avatars.discourse-cdn.com/v4/letter/d/b19c9b/32.png) [@Deepak\_CL](https://forum.inductiveautomation.com/u/Deepak_CL)\
**Post date:** [December 23, 2024, 5:39am UTC](https://forum.inductiveautomation.com/t/how-to-import-the-csv-data-to-ignition-edge-perspective/100147/1 "2024-12-23T05:39:29Z")

</div>

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.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/6/a/6af2b6e7998f56b9ab9079811cbdc9a34b9e986e.png)  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/7/2/7202f3b4324228445f0e08e1276fc445775d00dd.png)

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [December 23, 2024, 12:13pm UTC](https://forum.inductiveautomation.com/t/how-to-import-the-csv-data-to-ignition-edge-perspective/100147/2 "2024-12-23T12:13:05Z")

</div>

I can see one potential problem.

 ![Dataset tag](https://us1.discourse-cdn.com/inductiveautomation/original/3X/d/3/d353ed1a6e9b7d7015771c2a94da732c166017fc.png)  
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.

---

<div class="post-metadata">

**Author:** ![michael.flagler](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/michael.flagler/32/26272_2.png) [@michael.flagler](https://forum.inductiveautomation.com/u/michael.flagler)\
**Post date:** [December 24, 2024, 3:54pm UTC](https://forum.inductiveautomation.com/t/how-to-import-the-csv-data-to-ignition-edge-perspective/100147/3 "2024-12-24T15:54:54Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Deepak\_CL](https://avatars.discourse-cdn.com/v4/letter/d/b19c9b/32.png) [@Deepak\_CL](https://forum.inductiveautomation.com/u/Deepak_CL)\
**Post date:** [January 2, 2025, 8:08am UTC](https://forum.inductiveautomation.com/t/how-to-import-the-csv-data-to-ignition-edge-perspective/100147/4 "2025-01-02T08:08:23Z")

</div>

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

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/3/f/3ff02dd13dbdc6d68beb87498ca68c76d428b71f.png)

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [January 2, 2025, 9:35am UTC](https://forum.inductiveautomation.com/t/how-to-import-the-csv-data-to-ignition-edge-perspective/100147/5 "2025-01-02T09:35:34Z")

</div>

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.
