OHDSI Home | Forums | Wiki | Github

Error while running SkeletonComparativeEffectStudy program generated by Atlas

Hi Everyone,

I am trying to execute the R package generated by Estimation in Atlas. I am getting following error while executing the codeToRun.R.

Thanks,
Saber

Thread: Main
Message:  Repeated row-column entry at 19 - 1002
Level:  FATAL
Time:  2024-10-22 23:35:57

Stack trace:
19: (function (condition) 
{
    if (is(condition, "error")) {
        log("FATAL", conditionMessage(condition), e
18: stop(list("Repeated row-column entry at 19 - 1002", .loadCyclopsDataMultipleX(object, covariateId, rowId, c
17: .loadCyclopsDataMultipleX(object, covariateId, rowId, covariateValue, checkCovariateIds, checkCovariateBoun
16: loadNewSqlCyclopsDataMultipleX(object = dataPtr, covariateId = batch$covariateId, rowId = batch$rowId, cova
15: (function (batch) 
{
    covarNames <- unique(batch$covariateId)
    loadNewSqlCyclopsDataMultipleX(object = d
14: do.call(fun, append(list(batch), list(...)))
13: tryCatchList(expr, classes, parentenv, handlers)
12: tryCatch({
    while (!DBI::dbHasCompleted(result)) {
        batch <- DBI::dbFetch(result, n = batchSize)
   
11: Andromeda::batchApply(covariates, loadCovariates, batchSize = 1e+05)
10: convertToCyclopsData.tbl_dbi(covariateData$outcomes, covariates, modelType = "lr", quiet = TRUE, floatingPo
9: Cyclops::convertToCyclopsData(covariateData$outcomes, covariates, modelType = "lr", quiet = TRUE, floatingP
8: createPs(stopOnError = TRUE, excludeCovariateIds = list(), prior = list(1, TRUE, "laplace", 0, NULL, FALSE,
7: do.call("createPs", args)
6: FUN(X[[i]], ...)
5: lapply(x, fun, ...)
4: ParallelLogger::clusterApply(cluster, modelsToFit, fitSharedPsModel, refitPsForEveryStudyPopulation)
3: CohortMethod::runCmAnalyses(connectionDetails = connectionDetails, cdmDatabaseSchema = cdmDatabaseSchema, e
2: runCohortMethod(connectionDetails = connectionDetails, cdmDatabaseSchema = cdmDatabaseSchema, cohortDatabas
1: execute(connectionDetails = connectionDetails, cdmDatabaseSchema = cdmDatabaseSchema, cohortDatabaseSchema 

In addition: Warning messages:
1: In getDbCohortMethodData(connectionDetails = list(dbms = "snowflake",  :
  The excludeDrugsFromCovariates argument has been deprecated. Please explicitly exclude the drug concepts in the covariate settings
2: In getDbCohortMethodData(connectionDetails = list(dbms = "snowflake",  :
  Target cohort is empty
3: In createStudyPopulation(restrictToCommonPeriod = FALSE, removeDuplicateSubjects = "keep all",  :
  The addExposureDaysToStart argument is deprecated. Please use the startAnchor argument instead.
4: In createStudyPopulation(restrictToCommonPeriod = FALSE, removeDuplicateSubjects = "keep all",  :
  The addExposureDaysToEnd argument is deprecated. Please use the endAnchor argument instead.
5: In createStudyPopulation(restrictToCommonPeriod = FALSE, removeDuplicateSubjects = "keep all",  :
  The addExposureDaysToStart argument is deprecated. Please use the startAnchor argument instead.
6: In createStudyPopulation(restrictToCommonPeriod = FALSE, removeDuplicateSubjects = "keep all",  :
  The addExposureDaysToEnd argument is deprecated. Please use the endAnchor argument instead.

R version:
R version 4.4.1 (2024-06-14 ucrt)

Platform:
x86_64-w64-mingw32

Attached base packages:
- stats
- graphics
- grDevices
- datasets
- utils
- methods
- base

Other attached packages:
- CohortMethod (4.2.3)
- FeatureExtraction (3.2.0)
- Andromeda (0.6.0)
- dplyr (1.0.7)
- Cyclops (3.1.2)
- Demo (0.0.1)
- DatabaseConnector (6.3.2)
t