# \[BUG-11875\] Error when exporting a Power table into Excel

**URL:** <https://forum.inductiveautomation.com/t/bug-11875-error-when-exporting-a-power-table-into-excel/26101>\
**Category:** Ignition\
**Created:** [June 26, 2019, 10:26am UTC](https://forum.inductiveautomation.com/t/bug-11875-error-when-exporting-a-power-table-into-excel/26101 "2019-06-26T10:26:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jdenchev](https://avatars.discourse-cdn.com/v4/letter/j/f4b2a3/32.png) [@jdenchev](https://forum.inductiveautomation.com/u/jdenchev)\
**Post date:** [June 26, 2019, 10:26am UTC](https://forum.inductiveautomation.com/t/bug-11875-error-when-exporting-a-power-table-into-excel/26101/1 "2019-06-26T10:26:05Z")

</div>

When I use a button with scripting:

table = event.source.parent.getComponent(“PT\_PS”)  
filePath = system.dataset.exportExcel(“data.xls”, 1, table.data)  
if filePath != None:  
system.net.openURL(“file://”+filePath)

In 7.9, I can get an Excel file successfully. However, in Version 8, it gives me a blank file and can’t open the file. Any help will be highly appreciated.

 ![screenshot](https://us1.discourse-cdn.com/inductiveautomation/original/2X/3/340cdcab2f68510b9ef2f9bce58fc244ada80ca2.png)

---

<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:** [June 26, 2019, 12:14pm UTC](https://forum.inductiveautomation.com/t/bug-11875-error-when-exporting-a-power-table-into-excel/26101/2 "2019-06-26T12:14:43Z")

</div>

Known bug. The file extension is being left off. The work-around is to type in the extension, too.

---

<div class="post-metadata">

**Author:** ![jdenchev](https://avatars.discourse-cdn.com/v4/letter/j/f4b2a3/32.png) [@jdenchev](https://forum.inductiveautomation.com/u/jdenchev)\
**Post date:** [June 26, 2019, 12:42pm UTC](https://forum.inductiveautomation.com/t/bug-11875-error-when-exporting-a-power-table-into-excel/26101/3 "2019-06-26T12:42:51Z")

</div>

Is there anyway to add file extension inside the scripting?

---

<div class="post-metadata">

**Author:** ![awalker](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/awalker/32/6874_2.png) [@awalker](https://forum.inductiveautomation.com/u/awalker)\
**Post date:** [July 9, 2019, 7:06pm UTC](https://forum.inductiveautomation.com/t/bug-11875-error-when-exporting-a-power-table-into-excel/26101/4 "2019-07-09T19:06:17Z")

</div>

This issue was fixed in the 8.0.3 nightly build that was uploaded on 6/29.
