This is my last step (hopefully) of the work in the last two weeks - I did setup WebAPI, Atlas and backend CDM tables, and now I am loading Achilles in R, and encounter this error message:
DBMS:
postgresql
Error:
org.postgresql.util.PSQLException: ERROR: relation "results.achilles_results" does not exist
SQL:
create index idx_ar_aid on results.achilles_results (analysis_id)
R version:
R version 4.0.4 (2021-02-15)
Platform:
x86_64-apple-darwin17.0
Attached base packages:
- stats
- graphics
- grDevices
- utils
- datasets
- methods
- base
Other attached packages:
- Achilles (1.6.7)
- DatabaseConnector (3.0.0)
- devtools (2.3.2)
- usethis (2.0.1)
- rJava (0.9-13)
And here is what I have:
my CDM database backend:
– cdm
schema which contains the cdm and vocab tables
– results
schema, which is completely separate from cdm
schema
then, I used this URL:
to generate a long DDL script, and then I ran this script manually and created lots of tables under results
schema (this is the step I am not sure about).
After all these, I followed the steps described here to install Achilles using R, and here are my two main steps:
connectionDetails <- createConnectionDetails(
dbms=“postgresql”,
server=“localhost/synpuf_CDM”,
user=“postgres”,
password=“xxxx”,
port=“5432”)
achilles(connectionDetails,
cdmDatabaseSchema = “cdm”,
resultsDatabaseSchema=“results”,
vocabDatabaseSchema = “cmd”,
numThreads = 1,
sourceName = “synpuf_CDM”,
cdmVersion = “5”,
runHeel = FALSE,
runCostAnalysis = FALSE)
and then I got this error:
Error:
org.postgresql.util.PSQLException: ERROR: relation "results.achilles_results" does not exist
and I do have some other error reports, for example,
-rw-r--r-- 1 yul09 staff 888 Mar 1 15:11 achillesError_1425.txt
-rw-r--r-- 1 yul09 staff 1042 Mar 1 16:03 achillesError_900.txt
-rw-r--r-- 1 yul09 staff 1033 Mar 1 16:03 achillesError_901.txt
-rw-r--r-- 1 yul09 staff 1339 Mar 1 16:03 achillesError_902.txt
-rw-r--r-- 1 yul09 staff 2251 Mar 1 16:03 achillesError_903.txt
-rw-r--r-- 1 yul09 staff 1515 Mar 1 16:03 achillesError_904.txt
-rw-r--r-- 1 yul09 staff 1073 Mar 1 16:03 achillesError_906.txt
-rw-r--r-- 1 yul09 staff 2607 Mar 1 16:03 achillesError_907.txt
-rw-r--r-- 1 yul09 staff 990 Mar 1 16:03 achillesError_909.txt
-rw-r--r-- 1 yul09 staff 812 Mar 1 16:03 achillesError_910.txt
-rw-r--r-- 1 yul09 staff 1262 Mar 1 16:03 achillesError_920.txt
-rw-r--r-- 1 yul09 staff 1075 Mar 1 16:03 achillesError_1000.txt
-rw-r--r-- 1 yul09 staff 1066 Mar 1 16:03 achillesError_1001.txt
-rw-r--r-- 1 yul09 staff 1392 Mar 1 16:03 achillesError_1002.txt
-rw-r--r-- 1 yul09 staff 2280 Mar 1 16:03 achillesError_1003.txt
-rw-r--r-- 1 yul09 staff 1568 Mar 1 16:03 achillesError_1004.txt
-rw-r--r-- 1 yul09 staff 1126 Mar 1 16:03 achillesError_1006.txt
-rw-r--r-- 1 yul09 staff 2646 Mar 1 16:03 achillesError_1007.txt
-rw-r--r-- 1 yul09 staff 1012 Mar 1 16:03 achillesError_1009.txt
-rw-r--r-- 1 yul09 staff 834 Mar 1 16:03 achillesError_1010.txt
-rw-r--r-- 1 yul09 staff 1305 Mar 1 16:03 achillesError_1020.txt
-rw-r--r-- 1 yul09 staff 7602 Mar 1 16:03 achillesError_1900.txt
-rw-r--r-- 1 yul09 staff 838 Mar 1 16:03 achillesError_2200.txt
-rw-r--r-- 1 yul09 staff 832 Mar 1 16:03 achillesError_2201.txt
-rw-r--r-- 1 yul09 staff 484 Mar 1 16:03 errorReportSql.txt
drwxr-xr-x 4 yul09 staff 128 Mar 1 16:03 output
for example, 1425.txt says this,
DBMS:
postgresql
Error:
org.postgresql.util.PSQLException: ERROR: column "payer_source_concept_id" does not exist
Position: 116
SQL:
--HINT DISTRIBUTE_ON_KEY(stratum_1)
CREATE TEMP TABLE s_tmpach_1425
AS
SELECT
1425 as analysis_id,
cast(payer_source_concept_id AS varchar(255)) AS stratum_1,
cast(null AS varchar(255)) AS stratum_2,
cast(null as varchar(255)) as stratum_3,
cast(null as varchar(255)) as stratum_4,
cast(null as varchar(255)) as stratum_5,
COUNT(*) AS count_value
FROM
cdm.payer_plan_period
group by payer_source_concept_id
R version:
R version 4.0.4 (2021-02-15)
Can someone please kindly let me know which part I did wrong? really appreciated any help I can get.
Thanks!