Hi Everyone
I am getting started with implementing Achilles for a small pilot db at UW and ran into some errors. Appreciate any help.
Thanks!
-Abhi
achillesResults <- achilles(connectionDetails = connectionDetails,
cdmDatabaseSchema='omop',
cdmVersion = "4", runHeel = T, validateSchema=F)
output
Connecting using PostgreSQL driver
Executing multiple queries. This could take a while
|=========================================| 100%
Analysis took 1.44 mins
Done. Achilles results can now be found in omop
Executing Achilles Heel. This could take a while
|==== | 10%Error executing SQL: Error in .local(conn, statement, ...): execute JDBC update query failed in dbSendUpdate (ERROR: INSERT has more expressions than target columns
Position: 295)
An error report has been created at /Users/apratap/Dropbox/dev/achilles_test/errorReport.txt
Error in value[[3L]](cond) : no loop for break/next, jumping to top level
Detailed Error log:
DBMS:
postgresql
Error:
execute JDBC update query failed in dbSendUpdate (ERROR: INSERT has more expressions than target columns
Position: 295)
SQL:
INSERT INTO omop.ACHILLES_HEEL_results (
analysis_id,
ACHILLES_HEEL_warning
)
SELECT DISTINCT or1.analysis_id,
'ERROR: ' || cast(or1.analysis_id as VARCHAR) || '-' || oa1.analysis_name || '; count (n=' || cast(or1.count_value as VARCHAR) || ') should not be > 0' AS ACHILLES_HEEL_warning,
1 as rule_id,
or1.count_value as record_count
FROM omop.ACHILLES_results or1
INNER JOIN omop.ACHILLES_analysis oa1
ON or1.analysis_id = oa1.analysis_id
WHERE or1.analysis_id IN (
7,
8,
9,
114,
115,
118,
207,
208,
209,
210,
302,
409,
410,
411,
412,
413,
509,
510,
609,
610,
612,
613,
709,
710,
711,
712,
713,
809,
810,
812,
813,
814,
908,
909,
910,
1008,
1009,
1010,
1415,
1500,
1501,
1600,
1601,
1701
) --all explicit counts of data anamolies
AND or1.count_value > 0
R version:
R version 3.2.1 (2015-06-18)
Platform:
x86_64-apple-darwin13.4.0
Attached base packages:
- stats
- graphics
- grDevices
- utils
- datasets
- methods
- base
Other attached packages:
- Achilles (1.0)
- rjson (0.2.15)
- DatabaseConnector (1.3.0)
- RJDBC (0.2-5)
- rJava (0.9-7)
- DBI (0.3.1)
- SqlRender (1.1.3)