django-import-export: Getting column name causing import error
Hi,
I try to import CSV data from a file into a Django DB. I’ve a column called “price” containing a floating point value. But this value has the “,” as decimal separator which leads of course into an “<class ‘decimal.ConversionSyntax’>” error. That’s fine.
But I try to get the column name “price” causing this conversion error, but can’t find it in the result of the “import_data()” function. I call “import_data()” like this:
result = resource.import_data(
dataset=dataset,
dry_run=False,
raise_errors=False,
use_transactions=True,
collect_failed_rows=True,
rollback_on_validation_errors=True,
)
Any idea how to get the column name?
Thank you!
About this issue
- Original URL
- State: closed
- Created 6 months ago
- Comments: 15 (7 by maintainers)
Oh, shit! I though it would already be integrated in “https://pypi.org/project/django-import-export/3.3.6/”. My mistake, sorry for that! I’ll re-test.