# Error on Excel Export. bug?

**URL:** <https://forum.inductiveautomation.com/t/error-on-excel-export-bug/92010>\
**Category:** Ignition\
**Created:** [June 18, 2024, 12:02pm UTC](https://forum.inductiveautomation.com/t/error-on-excel-export-bug/92010 "2024-06-18T12:02:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![roland.scheuer](https://avatars.discourse-cdn.com/v4/letter/r/c57346/32.png) [@roland.scheuer](https://forum.inductiveautomation.com/u/roland.scheuer)\
**Post date:** [June 18, 2024, 12:02pm UTC](https://forum.inductiveautomation.com/t/error-on-excel-export-bug/92010/1 "2024-06-18T12:02:40Z")

</div>

Ignition Version : 8.1.41

When i use this code to export a dataset to excel

```python
ds2 = system.db.runQuery("SELECT * from xxx LIMIT 10")
wb = system.dataset.toExcel(0, [ds2])

```

it fails with a exception:

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

Im pretty sure it worked in previous versions (cant remember when i tested it last time).

Any hints how to solve it?

EDIT: It works on 8.1.35

---

<div class="post-metadata">

**Author:** ![KathyApplebaum](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kathyapplebaum/32/7261_2.png) [@KathyApplebaum](https://forum.inductiveautomation.com/u/KathyApplebaum)\
**Post date:** [June 18, 2024, 3:49pm UTC](https://forum.inductiveautomation.com/t/error-on-excel-export-bug/92010/2 "2024-06-18T15:49:51Z")

</div>

We tried to reproduce this here and aren't hitting this error. You might need to work with [support](https://support.inductiveautomation.com/hc/en-us) to see what is different between your set up and ours so we can reproduce it and fix it.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [June 18, 2024, 4:17pm UTC](https://forum.inductiveautomation.com/t/error-on-excel-export-bug/92010/3 "2024-06-18T16:17:11Z")

</div>

Can you post the entire error here as preformatted text?

Also, what's the version of the reporting module you're using? Is your gateway hosted on Linux, and did you use a zip install to do the upgrade?

---

<div class="post-metadata">

**Author:** ![roland.scheuer](https://avatars.discourse-cdn.com/v4/letter/r/c57346/32.png) [@roland.scheuer](https://forum.inductiveautomation.com/u/roland.scheuer)\
**Post date:** [July 5, 2024, 6:57am UTC](https://forum.inductiveautomation.com/t/error-on-excel-export-bug/92010/4 "2024-07-05T06:57:01Z")

</div>

Sorry for my late response, but i was on vacation.  
I tried it just now again and i works! For me it seems a restart of the Gateway fixed it?

> [@paul-griffith](#):
>
> Also, what's the version of the reporting module you're using? Is your gateway hosted on Linux, and did you use a zip install to do the upgrade?

Yes exactly its hosted on Linux and we use the Zip Installer.  
Seems you know what i did wrong? 😃

Anyway Thank you for investigating.
