common-workflow-language / common-workflow-language/cwltool

Schema already in use error

Open
#2,167 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
376
Forks
255
Avg merge
2d 7h
Merged PRs (30d)
12

Description

Hello,

Trying to run a complex workflow that involves multiple nested imports and multiple subworkflows.

I am unsure when an import needs to be placed in the schema definition requirement.

The workflow validates and packs successfully however generates the following error when run:

```
Traceback (most recent call last):
File "/usr/local/lib/cwltool-3.0.20201203173111/schema_salad/avro/schema.py", line 409, in __init__
items_schema = make_avsc_object(items, names)
File "/usr/local/lib/cwltool-3.0.20201203173111/schema_salad/avro/schema.py", line 635, in make_avsc_object
return RecordSchema(
name, namespace, fields, names, atype, doc, other_props
)
File "/usr/local/lib/cwltool-3.0.20201203173111/schema_salad/avro/schema.py", line 535, in __init__
NamedSchema.__init__(self, schema_type, name, namespace, names, other_props)
~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/cwltool-3.0.20201203173111/schema_salad/avro/schema.py", line 255, in __init__
new_name = names.add_name(name, namespace, self)
File "/usr/local/lib/cwltool-3.0.20201203173111/schema_salad/avro/schema.py", line 218, in add_name
raise SchemaParseException(fail_msg)
schema_salad.avro.schema.SchemaParseException: The name "dragen-qc-coverage" is already in use.
```

Workflow (zipped): https://github.com/umccr/cwl-ica/releases/download/dragen-wgts-dna-pipeline%2F4.4.4__20251015010222/dragen-wgts-dna-pipeline__4.4.4__20251015010222.zip

Stderr logs: [cwltool-already-in-use-debug-log.zip](https://github.com/user-attachments/files/23145423/cwltool-already-in-use-debug-log.zip)

Related: https://cwl.discourse.group/t/complex-workflow-cannot-be-packed/1022

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.