Error on Excel Export. bug?

Ignition Version : 8.1.41

When i use this code to export a dataset to excel

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

it fails with a exception:

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

We tried to reproduce this here and aren't hitting this error. You might need to work with support to see what is different between your set up and ours so we can reproduce it and fix it.

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?

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?

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

Anyway Thank you for investigating.