# Object has no attribute 'export CSV'

**URL:** <https://forum.inductiveautomation.com/t/object-has-no-attribute-export-csv/56394>\
**Category:** Ignition\
**Tags:** ignition81\
**Created:** [February 22, 2022, 12:07am UTC](https://forum.inductiveautomation.com/t/object-has-no-attribute-export-csv/56394 "2022-02-22T00:07:16Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Johnny\_Li1](https://avatars.discourse-cdn.com/v4/letter/j/34f0e0/32.png) [@Johnny\_Li1](https://forum.inductiveautomation.com/u/Johnny_Li1)\
**Post date:** [February 22, 2022, 12:07am UTC](https://forum.inductiveautomation.com/t/object-has-no-attribute-export-csv/56394/1 "2022-02-22T00:07:16Z")

</div>

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/7/2/7283d8952db611ad548350ab7dcd98b7f72cd46b.png)  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/a/b/ab67943d92ea8dd1d4da2fd62ea564086e2d023d.png)

Hi everyone

I am trying to export data to csv, but it seems like got some error on export csv this funciton.  
Anyone knows how to solve this issue ?

Many thanks  
Johnny

---

<div class="post-metadata">

**Author:** ![cesrom](https://avatars.discourse-cdn.com/v4/letter/c/ea666f/32.png) [@cesrom](https://forum.inductiveautomation.com/u/cesrom)\
**Post date:** [February 22, 2022, 1:48am UTC](https://forum.inductiveautomation.com/t/object-has-no-attribute-export-csv/56394/2 "2022-02-22T01:48:41Z")

</div>

Checking the documentation, `system.dataset.exportCSV` appears to be only available to Vision clients.

Perhaps you could try [`system.dataset.toCSV`](https://docs.inductiveautomation.com/display/DOC81/system.dataset.toCSV) since it is accessible from Perspective sessions.

---

<div class="post-metadata">

**Author:** ![Johnny\_Li1](https://avatars.discourse-cdn.com/v4/letter/j/34f0e0/32.png) [@Johnny\_Li1](https://forum.inductiveautomation.com/u/Johnny_Li1)\
**Post date:** [February 22, 2022, 1:51am UTC](https://forum.inductiveautomation.com/t/object-has-no-attribute-export-csv/56394/3 "2022-02-22T01:51:29Z")

</div>

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/1/2/12c67e24ddd74118a4d6433ef32092a8755789ca.png)  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/0/1/01181cb57301396df1a3ee47eec6ad6f5428947a.png)

Hi there , thanks for replying

I tried toCSV but still i need to export it , seems like saveFile this function is not working neither.

---

<div class="post-metadata">

**Author:** ![cesrom](https://avatars.discourse-cdn.com/v4/letter/c/ea666f/32.png) [@cesrom](https://forum.inductiveautomation.com/u/cesrom)\
**Post date:** [February 22, 2022, 1:53am UTC](https://forum.inductiveautomation.com/t/object-has-no-attribute-export-csv/56394/4 "2022-02-22T01:53:22Z")

</div>

`system.file.saveFile` is only available to Vision clients.

---

<div class="post-metadata">

**Author:** ![Johnny\_Li1](https://avatars.discourse-cdn.com/v4/letter/j/34f0e0/32.png) [@Johnny\_Li1](https://forum.inductiveautomation.com/u/Johnny_Li1)\
**Post date:** [February 22, 2022, 2:10am UTC](https://forum.inductiveautomation.com/t/object-has-no-attribute-export-csv/56394/5 "2022-02-22T02:10:47Z")

</div>

is there any possible solution in perspective ?  
cheers

---

<div class="post-metadata">

**Author:** ![bschroeder](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bschroeder/32/13260_2.png) [@bschroeder](https://forum.inductiveautomation.com/u/bschroeder)\
**Post date:** [February 22, 2022, 5:33am UTC](https://forum.inductiveautomation.com/t/object-has-no-attribute-export-csv/56394/6 "2022-02-22T05:33:45Z")

</div>

Use system.perspective.download: [system.perspective.download - Ignition User Manual 8.1 - Ignition Documentation](https://docs.inductiveautomation.com/display/DOC81/system.perspective.download)

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [February 22, 2022, 12:40pm UTC](https://forum.inductiveautomation.com/t/object-has-no-attribute-export-csv/56394/7 "2022-02-22T12:40:47Z")

</div>

> [@Johnny\_Li1](#):
>
> is there any possible solution in perspective ?

Not for access to the browser-local filesystem, no. That would be an enormous security hole. The only option is to trigger a download, as noted by @bschroeder.
