Hi everyone! I am having trouble running the geenrateCohortSet() function from the CohortGenerator function when trying to do cohort diagnostics. I believe my connectionDetails, database schema, cohort table names, and cohortDefinitionSet are all well defined, according to this article. Below is my codes and the error I faced:
CohortGenerator::generateCohortSet(
connectionDetails = connectionDetails,
cdmDatabaseSchema = cdmDatabaseSchema,
cohortDatabaseSchema = cohortDatabaseSchema,
cohortTableNames = cohortTableNames,
cohortDefinitionSet = cohortDefinitionSet,
incremental = FALSE
)
Error:
ArrayIndexOutOfBoundsException in .jcall("RJavaTools", "Ljava/lang/Object;", "invokeMethod", cl, .jcast(if (inherits(o, "jobjRef") || inherits(o, "jarrayRef")) o else cl, "java/lang/Object"), .jnew("java/lang/String", method), j_p, j_pc, use.true.class = TRUE, evalString = simplify, evalArray = FALSE): java.lang.ArrayIndexOutOfBoundsException: 1
I have not seen this error before. I looked online and thought this may be related to R’s memory usage not enough. I have set up R environment according to this GitHub page, so I though the environment should also be fine. Anyone knows what is going on? Any idea is helpful! Thank you!