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

Is it a bug in the ETLSyntheaBuilder: all_visits does not exist #191

Closed
ASEKHARI opened this issue Apr 9, 2024 · 1 comment
Closed

Is it a bug in the ETLSyntheaBuilder: all_visits does not exist #191

ASEKHARI opened this issue Apr 9, 2024 · 1 comment

Comments

@ASEKHARI
Copy link

ASEKHARI commented Apr 9, 2024

Hi,

Similar to this issue: #188
table all_visits does not exist

I'm using CDM 5.4

ETLSyntheaBuilder::LoadEventTables(connectionDetails = cd, cdmSchema = cdmSchema, syntheaSchema = syntheaSchema, cdmVersion = cdmVersion, syntheaVersion = syntheaVersion)
Connecting using PostgreSQL driver
Running: insert_location.sql
|====================================================================================================================================================================| 100%
Executing SQL took 0.0198 secs
Running: insert_care_site.sql
|====================================================================================================================================================================| 100%
Executing SQL took 0.00703 secs
Running: insert_person.sql
|====================================================================================================================================================================| 100%
Executing SQL took 0.0136 secs
Running: insert_observation_period.sql
|====================================================================================================================================================================| 100%
Executing SQL took 0.0127 secs
Running: insert_provider.sql
|====================================================================================================================================================================| 100%
Executing SQL took 0.0106 secs
Running: insert_visit_occurrence.sql
| | 0%Error in .createErrorReport():
! Error executing SQL:
org.postgresql.util.PSQLException: ERROR: relation "cdm_synthea10.all_visits" does not exist
Position: 1145
An error report has been created at C:/Users/Laptop/Documents/errorReportSql.txt
Run rlang::last_trace() to see where the error occurred.

rlang::last_trace()
<error/rlang_error>
Error in .createErrorReport():
! Error executing SQL:
org.postgresql.util.PSQLException: ERROR: relation "cdm_synthea10.all_visits" does not exist
Position: 1145
An error report has been created at C:/Users/Laptop/Documents/errorReportSql.txt


Backtrace:

  1. └─ETLSyntheaBuilder::LoadEventTables(...)
  2. └─ETLSyntheaBuilder (local) runStep(sql, fileQuery)
  3. └─DatabaseConnector::executeSql(conn, sql)
    
  4.   └─base::tryCatch(...)
    
  5.     └─base (local) tryCatchList(expr, classes, parentenv, handlers)
    
  6.       └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
    
  7.         └─value[[3L]](cond)
    
  8.           └─DatabaseConnector:::.createErrorReport(dbms, err$message, sqlStatement, errorReportFile)
    
@ASEKHARI
Copy link
Author

ASEKHARI commented Apr 9, 2024

resolved, missed running a step in the process:
ETLSyntheaBuilder::CreateMapAndRollupTables(connectionDetails = cd, cdmSchema = cdmSchema, syntheaSchema = syntheaSchema, cdmVersion = cdmVersion, syntheaVersion = syntheaVersion)

full steps listed here: https://github.com/OHDSI/ETL-Synthea/blob/main/extras/codeToRun.R

@ASEKHARI ASEKHARI closed this as completed Apr 9, 2024
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