# Export\_data\_table not working

**URL:** <https://discuss.saleae.com/t/export-data-table-not-working/2396>\
**Category:** Logic 2 Software\
**Created:** [August 21, 2023, 1:28pm UTC](https://discuss.saleae.com/t/export-data-table-not-working/2396 "2023-08-21T13:28:14Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![albert.caba](https://avatars.discourse-cdn.com/v4/letter/a/e36b37/32.png) [@albert.caba](https://discuss.saleae.com/u/albert.caba)\
**Post date:** [August 21, 2023, 1:28pm UTC](https://discuss.saleae.com/t/export-data-table-not-working/2396/1 "2023-08-21T13:28:14Z")

</div>

Hi @timreyes ,

I am getting the following exception when executing export\_data\_table : `Traceback (most recent call last): File "C:\Users\nxf28218\Desktop\nfc_wlc_system_testbench\python\wireless_charging\common\runner.py", line 227, in run_measurements self._execute_measurement(m) File "C:\Users\nxf28218\Desktop\nfc_wlc_system_testbench\python\wireless_charging\common\runner.py", line 296, in _execute_measurement measurement.execute() File "C:\Users\nxf28218\Desktop\nfc_wlc_system_testbench\python\wireless_charging\measurements\decorators\wlc_run_decorator.py", line 133, in execute raise ex File "C:\Users\nxf28218\Desktop\nfc_wlc_system_testbench\python\wireless_charging\measurements\decorators\wlc_run_decorator.py", line 123, in execute self.measurement.execute(parent_id=run_id) File "C:\Users\nxf28218\Desktop\nfc_wlc_system_testbench\python\wireless_charging\measurements\decorators\wlc_repetition_decorator.py", line 74, in execute raise e File "C:\Users\nxf28218\Desktop\nfc_wlc_system_testbench\python\wireless_charging\measurements\decorators\wlc_repetition_decorator.py", line 68, in execute self.measurement.execute(parent_id=parent_id) File "C:\Users\nxf28218\Desktop\nfc_wlc_system_testbench\python\wireless_charging\measurements_1_0\decorators\wlc_robot_decorator.py", line 134, in execute self.measurement.execute(parent_id=parent_id) File "C:\Users\nxf28218\Desktop\nfc_wlc_system_testbench\python\wireless_charging\measurements\wlc_timeout_before_standby.py", line 96, in execute settings=None)], export_data=True) File "C:\Users\nxf28218\Desktop\nfc_wlc_system_testbench\python\wireless_charging\lab\salea2.py", line 297, in stop_capture [x[0] for x in low_level_analyzers_added]) File "C:\Users\nxf28218\Desktop\nfc_wlc_system_testbench\python\wireless_charging\.venv37\lib\site-packages\saleae\automation\capture.py", line 255, in export_data_table self.manager.stub.ExportDataTableCsv(request) File "C:\Python37\lib\contextlib.py", line 130, in __exit__ self.gen.throw(type, value, traceback) File "C:\Users\nxf28218\Desktop\nfc_wlc_system_testbench\python\wireless_charging\.venv37\lib\site-packages\saleae\automation\errors.py", line 121, in _error_handler raise grpc_error_to_exception(exc) from None saleae.automation.errors.ExportError: Export failed: ios_base::failbit set: iostream stream error`

My filepath is valid, and as analyzers I am using the handlerId return by add\_analyzer, and that should be fine as it is not complaining about it (it was complaining before, that’s why I know it is correct).

Any idea what could be the issue? I am out of ideas.

Thanks!

Albert

---

<div class="post-metadata">

**Author:** ![timreyes](https://yyz2.discourse-cdn.com/flex030/user_avatar/discuss.saleae.com/timreyes/32/108_2.png) [@timreyes](https://discuss.saleae.com/u/timreyes)\
**Post date:** [August 22, 2023, 12:21am UTC](https://discuss.saleae.com/t/export-data-table-not-working/2396/2 "2023-08-22T00:21:30Z")

</div>

@albert.caba The error `ios_base::failbit set: iostream stream error` seems to indicate an issue with accessing the filepath / directory.

Can you share a copy of your .py file with me (perhaps a modified copy) that allows me to quickly run your script without the need for external dependencies local to your PC, and that also still shows the same issue on your end?

---

<div class="post-metadata">

**Author:** ![albert.caba](https://avatars.discourse-cdn.com/v4/letter/a/e36b37/32.png) [@albert.caba](https://discuss.saleae.com/u/albert.caba)\
**Post date:** [August 23, 2023, 5:48am UTC](https://discuss.saleae.com/t/export-data-table-not-working/2396/3 "2023-08-23T05:48:23Z")

</div>

Hi @timreyes thank you for your fast response. You were right, it was an incorrect path, I should have realized it, but maybe a more meaningful error would be useful! In the other hand, I have a question regarding the method add\_high\_level\_analyzer. How do I point to an HLA installed via GUI’s extension? In this case I want to use “I2C Transactions” that I have already installed, what should I set as “extension\_directory”? The extension seems to be installed in: “C:\Users\albert\AppData\Roaming\Logic\Marketplace\17” . Is there any way to point to the installed extensions instead of an specific folder? Thanks!

---

<div class="post-metadata">

**Author:** ![timreyes](https://yyz2.discourse-cdn.com/flex030/user_avatar/discuss.saleae.com/timreyes/32/108_2.png) [@timreyes](https://discuss.saleae.com/u/timreyes)\
**Post date:** [August 24, 2023, 12:17am UTC](https://discuss.saleae.com/t/export-data-table-not-working/2396/4 "2023-08-24T00:17:44Z")

</div>

@albert.caba It looks like we have an example script below. Could you give that a try?

> <https://github.com/saleae/logic2-automation/blob/b6468259c696a67168df5d5b3162afb8d3d07c6d/python/tests/hla_test.py#L12>

---

<div class="post-metadata">

**Author:** ![albert.caba](https://avatars.discourse-cdn.com/v4/letter/a/e36b37/32.png) [@albert.caba](https://discuss.saleae.com/u/albert.caba)\
**Post date:** [August 25, 2023, 5:31am UTC](https://discuss.saleae.com/t/export-data-table-not-working/2396/5 "2023-08-25T05:31:14Z")

</div>

What is the string value of asset\_path?

---

<div class="post-metadata">

**Author:** ![timreyes](https://yyz2.discourse-cdn.com/flex030/user_avatar/discuss.saleae.com/timreyes/32/108_2.png) [@timreyes](https://discuss.saleae.com/u/timreyes)\
**Post date:** [August 26, 2023, 2:57am UTC](https://discuss.saleae.com/t/export-data-table-not-working/2396/6 "2023-08-26T02:57:04Z")

</div>

@albert.caba Ah, that’s embarrassing. Sorry I rushed to send you that without checking first 🤦‍♂️

I don’t know off the top of my head, but let me run some tests early next week and I’ll share the line of code you need.
