Hi,
I am trying to run Achilles analysis and kept getting the following error:
org.postgresql.util.PSQLException: ERROR: failed to find conversion function from unknown to text
An error report has been created at /usr/errorReport.txt
Below is part of the error report:
DBMS:
postgresql
Error:
org.postgresql.util.PSQLException: ERROR: failed to find conversion function from unknown to text
SQL:
CREATE TEMP TABLE s_tmpheel_25
AS
SELECT
analysis_id, stratum_1, stratum_2, sum(count_value) as statistic_value, measure_id
FROM(
–100000+analysis_id,
select
NULL as analysis_id,
stratum_2 as stratum_1,
cast(null as varchar(255)) as stratum_2,
count_value,
CAST(concat(‘ach_’,CAST(analysis_id as VARCHAR), ‘:GlobalCnt’) as varchar(255)) as measure_id
from result_cdm_synpuf_5_2_2.ACHILLES_results
where analysis_id in (1805,705,605,805,405)
) Q
group by analysis_id, stratum_1, stratum_2, measure_id
R version:
R version 3.5.0 (2018-04-23)
Platform:
x86_64-redhat-linux-gnu
Here is the command that I used to run Achilles:
achilles(connectionDetails,
cdmDatabaseSchema = “cdm”,
resultsDatabaseSchema=“result”,
vocabDatabaseSchema = “cdm”,
sourceName = “SUNPUF_1K”,
cdmVersion = “5.2.2”,
runHeel = TRUE,
runCostAnalysis = FALSE)
Does anybody know what went wrong? Thanks in advance!