Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reference datatype causes failure in Tile Excel Exporter #51

Open
jacobtylerwalls opened this issue Nov 12, 2024 · 0 comments
Open

Reference datatype causes failure in Tile Excel Exporter #51

jacobtylerwalls opened this issue Nov 12, 2024 · 0 comments

Comments

@jacobtylerwalls
Copy link
Member

jacobtylerwalls commented Nov 12, 2024

Bulk Data Manager:

  1. Tile Excel Exporter > select scheme graph
  2. Start
[2024-11-12 08:14:08,161: ERROR/ForkPoolWorker-8] sequence item 0: expected str instance, dict found
Traceback (most recent call last):
  File "/Users/jwalls/prj/arches/arches/app/tasks.py", line 319, in export_excel_data
    import_module.run_export_task(
  File "/Users/jwalls/prj/arches/arches/app/etl_modules/tile_excel_exporter.py", line 92, in run_export_task
    datatype_instance.transform_export_values(
  File "/Users/jwalls/prj/arches-references/arches_references/datatypes/datatypes.py", line 101, in transform_export_values
    return ",".join(value)
           ^^^^^^^^^^^^^^^
TypeError: sequence item 0: expected str instance, dict found

I used this diff to get a richer traceback:

diff --git a/arches/app/tasks.py b/arches/app/tasks.py
index 270d1e1939..887bfffb04 100644
--- a/arches/app/tasks.py
+++ b/arches/app/tasks.py
@@ -328,7 +328,7 @@ def export_excel_data(
         load_event = models.LoadEvent.objects.get(loadid=load_id)
         status = _("Completed") if load_event.status == "indexed" else _("Failed")
     except Exception as e:
-        logger.error(e)
+        logger.error(e, exc_info=True)
         load_event = models.LoadEvent.objects.get(loadid=load_id)
         load_event.status = "failed"
         load_event.save()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant