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

CSV File Ingest Failed #9583

Closed
sirineREKIK opened this issue May 10, 2023 · 3 comments
Closed

CSV File Ingest Failed #9583

sirineREKIK opened this issue May 10, 2023 · 3 comments

Comments

@sirineREKIK
Copy link
Contributor

sirineREKIK commented May 10, 2023

Regarding: Dataverse v 5.12.1

An error occured in logs when trying to ingest the CSV file : Infos_Gwell.csv
Ingest produced tabular data, but failed to save it in the database.
log file : ingest_bdd_error.log

@pdurbin
Copy link
Member

pdurbin commented May 10, 2023

@sirineREKIK thanks, I'm just pulling out the exception

Internal Exception: org.postgresql.util.PSQLException: ERROR: value too long for type character varying(255)
Error Code: 0
Call: INSERT INTO DATAVARIABLE (FACTOR, FILEENDPOSITION, FILEORDER, FILESTARTPOSITION, FORMAT, FORMATCATEGORY, INTERVAL, LABEL, NAME, NUMBEROFDECIMALPOINTS, ORDEREDFACTOR, RECORDSEGMENTNUMBER, TYPE, UNF, WEIGHTED, DATATABLE_ID) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)

I don't think it's this issue:

(A header is present and all values are under 255 according to head -1 Infos_Gwell.csv | tr \; "\n" | while read i; do echo $i | wc -c; done)

Maybe it's the semicolons:

@sirineREKIK do you want to try it again with commas (or tabs) instead of semicolons? Just to see what happens?

@sirineREKIK
Copy link
Contributor Author

@pdurbin
Yes it seems good when replacing semicolons with commas, no exception was reported.

@pdurbin
Copy link
Member

pdurbin commented Oct 9, 2023

@sirineREKIK thanks, closing in favor of this issue:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

2 participants