Hello
I got stuck when installing the Achilles with R. After long query of Achilles, Achilles Heel installation stopped with error message. Here, I would like to attach the R codes and Error report. Can you help me solve the problem? Thank you.
-R codes-
achillesResults <- Achilles::achilles(connectionDetails,
cdmDatabaseSchema = cdmDatabaseSchema,
oracleTempSchema = NULL,
resultsDatabaseSchema = resultsDatabaseSchema,
sourceName = db,
#analysisIds = c(691,791,891,1891),
createTable = TRUE,
smallcellcount = 5,
cdmVersion = “5”,
runHeel = TRUE,
validateSchema = TRUE,
vocabDatabaseSchema = vocabDatabaseSchema,
runCostAnalysis = FALSE,
sqlOnly = FALSE,
conceptHierarchy = TRUE,
createIndices = TRUE)
-Error message-
Executing Achilles Heel. This could take a while
|== | 5%Error: Error executing SQL:
com.microsoft.sqlserver.jdbc.SQLServerException: Invalid column name ‘measure_id’.
An error report has been created at C:/Users/Administrator/Documents/errorReport.txt
-Error Report-
DBMS:
sql server
Error:
com.microsoft.sqlserver.jdbc.SQLServerException: Invalid column name ‘measure_id’.
SQL:
insert into RESULT.DBO.ACHILLES_results_derived (analysis_id, stratum_1, statistic_value,measure_id)
select
–100000+analysis_id,
NULL as analysis_id,
stratum_2 as stratum_1,
sum(count_value) as statistic_value,
CAST(CONCAT(‘ach_’,CAST(analysis_id as VARCHAR),’:GlobalCnt’) AS VARCHAR(255)) as measure_id
from RESULT.achilles_results
where analysis_id in(1805,705,605,805,405) group by analysis_id,stratum_2,measure_id
R version:
R version 3.4.3 (2017-11-30)
Platform:
x86_64-w64-mingw32
Attached base packages:
- stats
- graphics
- grDevices
- utils
- datasets
- methods
- base
Other attached packages:
- Achilles (1.5)
- rjson (0.2.15)
- DatabaseConnector (2.0.5)
- SqlRender (1.4.8)
- devtools (1.13.5)