Skip to content

Error on trying to exclude analyses 110, 117 #59

Description

@apopassias

We try to run catalogueExport() excluding two analyzes (110, 177) because they run very slowly, taking hours or even days.
However, when we set the analysisIds parameter to all analyses except 110 and 117, then we get the message

"java.sql.SQLSyntaxErrorException: ORA-01723: zero-length columns not allowed".

In the log we see that there is a lot of incorrect SQL syntax as empty strings are treated as "" and not " space ".

CREATE TABLE EHDENRESULTS.catalogue_analysis AS WITH cte_analyses AS (SELECT 0 as analysis_id, 'Source name' as analysis_name, '' as stratum_1_name, '' as stratum_2_name, '' as stratum_3_name, '' as stratum_4_name, 'NA' as stratum_5_name FROM DUAL) SELECT analysis_id, analysis_name, stratum_1_name, stratum_2_name, stratum_3_name, stratum_4_name, stratum_5_name FROM cte_analyses

Any suggestions?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions