You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I got the following error when trying to load the vocabulary tables from csv. It seems it's putting quotes around the whole list of column names in the insert, so it thinks that the list is the name of a single column. I checked and my table looks normal, with the 4 columns, as does the csv I'm inserting.
> cd <- DatabaseConnector::createConnectionDetails(
+ dbms = "postgresql",
+ server = "localhost/ohdsi",
+ user = "postgres",
+ password = "postgres",
+ port = 5432)
>
> cdmSchema <- "dbt_synthea_1k"
> cdmVersion <- "5.4"
> syntheaVersion <- "3.0.0"
> syntheaSchema <- "synthea_1k"
> syntheaFileLoc <- "~/Synthea/output/csv"
> vocabFileLoc <- "~/Synthea/vocab_shard_1k"
> ETLSyntheaBuilder::LoadVocabFromCsv(connectionDetails = cd, cdmSchema = cdmSchema, vocabFileLoc = vocabFileLoc)
Connecting using PostgreSQL driver
Working on file ~/Synthea/vocab_shard_1k/concept_ancestor.csv
- reading file
- type converting
- uploading 263067 rows of data in 1 chunks.
|==========================================================================================| 100%
Executing SQL took 0.605 secs
- chunk uploading started on 2024-07-13 19:30:27 for rows 1 to 263067
| | 0%Error in rJava::.jcall(batchedInsert, "Z", "executeBatch") :
java.sql.BatchUpdateException: Batch entry 0 INSERT INTO dbt_synthea_1k.concept_ancestor ("ancestor_concept_id,descendant_concept_id,min_levels_of_separation,max_levels_of_separation") VALUES(5.82111112743323E14) was aborted: ERROR: column "ancestor_concept_id,descendant_concept_id,min_levels_of_separat" of relation "concept_ancestor" does not exist
Position: 46 Call getNextException to see other errors in the batch.
The text was updated successfully, but these errors were encountered:
@katy-sadowski Would you be able to send me the file you are loading? The only thing I can think of is the fact that the name of the function is misleading in that it expects a tabbed delimiter instead of an actual comma in the load
I got the following error when trying to load the vocabulary tables from csv. It seems it's putting quotes around the whole list of column names in the insert, so it thinks that the list is the name of a single column. I checked and my table looks normal, with the 4 columns, as does the csv I'm inserting.
The text was updated successfully, but these errors were encountered: