# An error was encountered while running DADA2 in R (return code 1), please inspect stdout and stderr to learn more

**URL:** https://forum.qiime2.org/t/an-error-was-encountered-while-running-dada2-in-r-return-code-1-please-inspect-stdout-and-stderr-to-learn-more/1938
**Category:** User Support
**Tags:** dada2
**Created:** [November 21, 2017, 2:08pm UTC](https://forum.qiime2.org/t/an-error-was-encountered-while-running-dada2-in-r-return-code-1-please-inspect-stdout-and-stderr-to-learn-more/1938 "2017-11-21T14:08:31Z")
**Posts on this page:** 1
**Showing post:** 25

<div class="post-metadata">

### Author: ![thermokarst](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/t/8e7dd6/32.png) [@thermokarst](https://forum.qiime2.org/u/thermokarst)
#### Post date: [December 14, 2017, 11:09pm UTC](https://forum.qiime2.org/t/an-error-was-encountered-while-running-dada2-in-r-return-code-1-please-inspect-stdout-and-stderr-to-learn-more/1938/25 "2017-12-14T23:09:04Z")

</div>

Thanks @wangj50!

> [@wangj50](#):
>
> but I think it may be misleading by saying “is likely not the case for demultiplexed data)”.

I agree! I updated that to clarify, "is likely not the case for your demultiplexed data".

With that said, looking back at that log, I made a mistake and must've misread something - I thought that there were the same number of unique sequences in each sample, fwd and reverse (that would likely be an issue, because then everything truly would be identical between fwd and rev). Given that, probably none of what I wrote above is valid, realizing I made a mistake!

> [@wangj50](#):
>
> although it is probably due to the tool that is used by Illumina/Sequencing center technicians.

Thanks! That is an important distinction (and one I should've made above) - I think most tools should handle making sure read-pairs are binned or dropped together (as a pair), preventing a mismatch from happening, but it really depends on the tool (I suspect there are some homegrown scripts floating around online that are responsible for creating these mismatched data!).

* * *

Going back to @hhftang's issue, and your similar issue you just reported, it sounds like this error message (`Error in isBimeraDenovoTable(unqs[[i]], …, verbose = verbose) : Input must be a valid sequence table.`) is caused when none of the sequences are actually merged. This might be happening because `--p-trunc-len-r` is set really low here (25). As noted [in the docs](https://docs.qiime2.org/2017.11/plugins/available/dada2/denoise-paired/), there needs to be at least a 20nt overlap between fwd and rev reads. Maybe take another look at your `demux summarize` viz and make sure that your `trunc-len-r` value is right. Keep us posted, and thanks for setting me straight!

---

_[View the full topic](https://forum.qiime2.org/t/an-error-was-encountered-while-running-dada2-in-r-return-code-1-please-inspect-stdout-and-stderr-to-learn-more/1938)._
