dathere/datapusher-plus

Error on push of a CSV resource with only a header row in it (no data rows)

Closed this issue · 0 comments

Pushing a CSV resource to the DataStore with only a header row in it (no data rows) causes DataPusher to throw the following error.

Traceback (most recent call last):
File "/usr/lib/ckan/dpplus_venv/lib/python3.8/site-packages/apscheduler/executors/base.py", line 125, in run_job
retval = job.func(*job.args, **job.kwargs)
File "/usr/lib/ckan/dpplus_venv/datapusher-plus/datapusher/jobs.py", line 551, in push_to_datastore
dupe_count = int(str(qsv_dedup.stderr).strip())
ValueError: invalid literal for int() with base 10: "thread 'main' panicked at 'index out of bounds: the len is 0 but the index is 0', src/cmd/dedup.rs:105:32\nnote: run with RUST_BACKTRACE=1 environm
ent variable to display a backtrace"