-
Notifications
You must be signed in to change notification settings - Fork 2
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
Error: nanodbc/nanodbc.cpp:1708: 42S01: [Simba][SQLEngine] (31738) Table or view already exists: MGSTDdrug_cohorts_set #23
Comments
Hi @anallg anallg, it looks like the renv did not deploy? In the version IncidencePrevalence package version that is used in this code, the temporarytable is still a used argument (it was only removed in the next version). |
@catalamarti do you think you can help with the first error in generateDrugUtilidationCohortSet? it does not look like a package version problem? it does not create the cdm$drug_cohorts object. |
Hi @tiozab, I've never worked with renv before. Yesterday, it gave me problems with the path, so I proceeded without deploying renv. Today, I believe I am running it correctly. Exists a folder named renv in the working directory but the error persists when executing the code against the empty schema, so I'm sure the table doesn't exist. Can you tell me how to confirm if I'm running with renv? Bellow you can find the full log execution. _> renv::activate()
1: Activate the project and use the project library. Restarting R session...
Attaching package: ‘dplyr’ The following objects are masked from ‘package:stats’:
The following objects are masked from ‘package:base’:
Attaching package: ‘dbplyr’ The following objects are masked from ‘package:dplyr’:
Attaching package: ‘CDMConnector’ The following object is masked from ‘package:dbplyr’:
Attaching package: ‘log4r’ The following object is masked from ‘package:base’:
Attaching package: ‘zip’ The following objects are masked from ‘package:utils’:
Attaching package: ‘Capr’ The following object is masked from ‘package:ggplot2’:
The following object is masked from ‘package:CDMConnector’:
Warning message:
Attaching package: ‘testthat’ The following object is masked from ‘package:tidyr’:
The following object is masked from ‘package:dplyr’:
The following object is masked from ‘package:devtools’:
Attaching package: ‘DrugUtilisation’ The following object is masked from ‘package:Capr’:
|
@catalamarti, the database management system is "oracle", the DrugUtilisation package version : "0.4.1" |
@anallg can you use another database connection for this study? oracle is not supported @edward-burn |
@tiozab Sorry, I thought it was clear. My database is not Oracle, it's Databricks. This is my connection string: db <- DBI::dbConnect(odbc::odbc(), |
We got additional resources, @sebastiaan101 can you be of help and liaise with @anallg that would be great |
Hi, I´m having the following issuer during the execution of the script:
Even though I make sure that the table does not exist before starting the execution, it still fails even after creating the table. I don't quite understand what the problem is, but the table contains data despite the error and seems ok:
Furthermore, if I continue with the step-by-step execution of the script, I encounter another error related to other table 2 statements later(removing temporary=TRUE argument because it generate a unused argument error ):
The table drug_cohorts also exists. I can´t understand where is the problem.
The text was updated successfully, but these errors were encountered: