# Fixing error: FastQ file for reads 1 must be provided, cannot contain spaces and must have extension

**URL:** <https://community.seqera.io/t/fixing-error-fastq-file-for-reads-1-must-be-provided-cannot-contain-spaces-and-must-have-extension/1756>\
**Category:** Ask for help\
**Tags:** nextflow, nf-core\
**Created:** [February 20, 2025, 12:45pm UTC](https://community.seqera.io/t/fixing-error-fastq-file-for-reads-1-must-be-provided-cannot-contain-spaces-and-must-have-extension/1756 "2025-02-20T12:45:57Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ramirobarrantes](https://dub1.discourse-cdn.com/flex013/user_avatar/community.seqera.io/ramirobarrantes/32/717_2.png) [@ramirobarrantes](https://community.seqera.io/u/ramirobarrantes)\
**Post date:** [February 20, 2025, 12:45pm UTC](https://community.seqera.io/t/fixing-error-fastq-file-for-reads-1-must-be-provided-cannot-contain-spaces-and-must-have-extension/1756/1 "2025-02-20T12:45:58Z")

</div>

I have a samplesheet that starts like this:

```auto
sample,fastq_1,fastq_2,strandedness
PSC001_Blood,/netfiles02/mbsr2/AGTC_SingularG4/250213_GAR-0032_0075_2_3B0605T/demux_corrected/Moonshot/PSC001BloodRNA_S1_L001_R1_001.fastq.gz,/netfiles02/mbsr2/AGTC_SingularG4/250213_GAR-0032_0075_2_3B0605T/demux_corrected/Moonshot/PSC001BloodRNA_S1_L001_R2_001.fastq.gz,auto

```

I even simplified it:

```auto
sample,fastq_1,fastq_2,strandedness
PSC001_Blood,PSC001BloodRNA_S1_L001_R1_001.fastq.gz,PSC001BloodRNA_S1_L001_R2_001.fastq.gz,auto
PSC001_Tumor,PSC001FFPERNA_S1_L001_R1_001.fastq.gz,PSC001FFPERNA_S1_L001_R2_001.fastq.gz,auto

```

But when I try to run rnaseq I get:

nextflow run nf-core/rnaseq -r 3.18.0 -profile apptainer --input rnaseq\_samplesheet.csv   
–outdir ./rnaseq\_output/ --fasta Homo\_sapiens\_assembly38\_renamedHLAContigs.fasta --gtf Homo\_sapiens.GRCh38.113.chr.gtf.gz  
…

> - –input (./PSC001/PSC001\_rnaseq\_samplesheet.csv): Validation of f  
> ile failed:  
> → Entry 2: Error for field ‘fastq\_2’ (/netfiles02/mbsr2/AGTC\_SingularG4/250213\_GAR-0032\_0075\_2\_3B0605T/demux\_corrected/Moonshot/PSC001FFPERNA\_S1\_L001\_R2\_001.fastq.gz): FastQ file for reads 2 cannot contain spaces and must have extension ‘.fq.gz’ or ‘.fastq.gz’  
> → Entry 2: Error for field ‘fastq\_1’ (/netfiles02/mbsr2/AGTC\_SingularG4/250213\_GAR-0032\_0075\_2\_3B0605T/demux\_corrected/Moonshot/PSC001FFPERNA\_S1\_L001\_R1\_001.fastq.gz): FastQ file for reads 1 must be provided, cannot contain spaces and must have extension ‘.fq.gz’ or ‘.fastq.gz’

How can I fix this? I think this has happened before with other nextflow versions but I am using the latest (24.10.4)

---

<div class="post-metadata">

**Author:** ![ctuni](https://dub1.discourse-cdn.com/flex013/user_avatar/community.seqera.io/ctuni/32/168_2.png) [@ctuni](https://community.seqera.io/u/ctuni)\
**Post date:** [February 20, 2025, 2:52pm UTC](https://community.seqera.io/t/fixing-error-fastq-file-for-reads-1-must-be-provided-cannot-contain-spaces-and-must-have-extension/1756/2 "2025-02-20T14:52:07Z")

</div>

I can’t see any spaces on the entry you provided, but try to open the samplesheet on a text editor that is capable of showing hidden or special characters in the file paths.

My personal preference is to simplify samplesheets by creating symbolic links to the FQ files on the run directory, that way the samplesheet can be much more simple and legible.

You can also try to wrap the paths on single quotes, that should scape special characters in the path (but I think the path should not have special characters to begin with!).

Best of luck with solving this issue!

---

<div class="post-metadata">

**Author:** ![ramirobarrantes](https://dub1.discourse-cdn.com/flex013/user_avatar/community.seqera.io/ramirobarrantes/32/717_2.png) [@ramirobarrantes](https://community.seqera.io/u/ramirobarrantes)\
**Post date:** [February 20, 2025, 3:11pm UTC](https://community.seqera.io/t/fixing-error-fastq-file-for-reads-1-must-be-provided-cannot-contain-spaces-and-must-have-extension/1756/3 "2025-02-20T15:11:51Z")

</div>

Thank you @ctuni!! Thank you very much for taking the time to answer. Unfortunately, neither of those things solved the issue, no special character and I also simplified the samplesheet

---

<div class="post-metadata">

**Author:** ![ramirobarrantes](https://dub1.discourse-cdn.com/flex013/user_avatar/community.seqera.io/ramirobarrantes/32/717_2.png) [@ramirobarrantes](https://community.seqera.io/u/ramirobarrantes)\
**Post date:** [February 20, 2025, 3:30pm UTC](https://community.seqera.io/t/fixing-error-fastq-file-for-reads-1-must-be-provided-cannot-contain-spaces-and-must-have-extension/1756/4 "2025-02-20T15:30:39Z")

</div>

It’s running now!! The issue was actually that the filename was incorrect. The error message was misleading of course, but the answer was simple. Again @ctuni, thank you very much as your prompt motivated me to look at the names more closely.

---

<div class="post-metadata">

**Author:** ![ctuni](https://dub1.discourse-cdn.com/flex013/user_avatar/community.seqera.io/ctuni/32/168_2.png) [@ctuni](https://community.seqera.io/u/ctuni)\
**Post date:** [February 20, 2025, 4:11pm UTC](https://community.seqera.io/t/fixing-error-fastq-file-for-reads-1-must-be-provided-cannot-contain-spaces-and-must-have-extension/1756/5 "2025-02-20T16:11:11Z")

</div>

Happy to hear that is working now!

---

<div class="post-metadata">

**Author:** ![ramirobarrantes](https://dub1.discourse-cdn.com/flex013/user_avatar/community.seqera.io/ramirobarrantes/32/717_2.png) [@ramirobarrantes](https://community.seqera.io/u/ramirobarrantes)\
**Post date:** [February 27, 2025, 4:12pm UTC](https://community.seqera.io/t/fixing-error-fastq-file-for-reads-1-must-be-provided-cannot-contain-spaces-and-must-have-extension/1756/6 "2025-02-27T16:12:00Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
