# Error message upon running analysis

**URL:** <https://nextstrain.discourse.group/t/error-message-upon-running-analysis/597>\
**Category:** Help and Getting Started\
**Created:** [July 6, 2021, 8:44pm UTC](https://nextstrain.discourse.group/t/error-message-upon-running-analysis/597 "2021-07-06T20:44:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![NicholasM1992](https://avatars.discourse-cdn.com/v4/letter/n/839c29/32.png) [@NicholasM1992](https://nextstrain.discourse.group/u/NicholasM1992)\
**Post date:** [July 6, 2021, 8:44pm UTC](https://nextstrain.discourse.group/t/error-message-upon-running-analysis/597/1 "2021-07-06T20:44:39Z")

</div>

Good day,

Upon execution of the command  
“ncov$ snakemake --profile \<location of build, config, fasta and tsv files\>-p”

I am met with the following lines of error:

Traceback (most recent call last):  
File “scripts/diagnostic.py”, line 38, in   
recent\_sequences = metadata.date\_submitted.apply(lambda x: datestr\_to\_ordinal(x)\>recency\_cutoff)  
File “/home/artic/miniconda3/envs/nextstrain/lib/python3.8/site-packages/pandas/core/generic.py”, line 5465, in **getattr**  
return object. **getattribute** (self, name)  
AttributeError: ‘DataFrame’ object has no attribute ‘date\_submitted’  
[Tue Jul 6 20:55:45 2021]  
Error in rule diagnostic:  
jobid: 14  
output: results/to-exclude\_test.txt  
log: logs/diagnostics\_test.txt (check log file(s) for error message)  
shell:

```
    python3 scripts/diagnostic.py --metadata results/sanitized_metadata_test.tsv.xz --clock-filter 20 --snp-clusters 1 --output-exclusion-list results/to-exclude_test.txt 2>&1 | tee logs/diagnostics_test.txt
    
    (one of the commands exited with non-zero exit code; note that snakemake uses bash strict mode!)

```

Logfile logs/diagnostics\_test.txt:  
Traceback (most recent call last):  
File “scripts/diagnostic.py”, line 38, in   
recent\_sequences = metadata.date\_submitted.apply(lambda x: datestr\_to\_ordinal(x)\>recency\_cutoff)  
File “/home/artic/miniconda3/envs/nextstrain/lib/python3.8/site-packages/pandas/core/generic.py”, line 5465, in **getattr**  
return object. **getattribute** (self, name)  
AttributeError: ‘DataFrame’ object has no attribute ‘date\_submitted’

Any assistance will be appreciated
