# Error summary: HailException

**URL:** <https://discuss.hail.is/t/error-summary-hailexception/2600>\
**Category:** Hail Query & hailctl\
**Created:** [April 11, 2022, 5:19pm UTC](https://discuss.hail.is/t/error-summary-hailexception/2600 "2022-04-11T17:19:40Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shiri.Margalit](https://avatars.discourse-cdn.com/v4/letter/s/a3d4f5/32.png) [@Shiri.Margalit](https://discuss.hail.is/u/Shiri.Margalit)\
**Post date:** [April 11, 2022, 5:19pm UTC](https://discuss.hail.is/t/error-summary-hailexception/2600/1 "2022-04-11T17:19:40Z")

</div>

Hey,  
I’m trying to run a logistic regression on my matrix table:

```auto
gwas = hl.logistic_regression_rows(test='wald',
                                  y=hl.int(mt_filtered.pheno["Sel Related Thrombocytopenia"]),
                                  x=mt_filtered.GT.n_alt_alleles(),
                                  covariates=cov)

p = hl.plot.manhattan(gwas.p_value)
show(p)

```

but, I keep getting this error:

```auto
Hail version: 0.2.82-2ab242915c2c
Error summary: HailException: expected 294 fields, but found 295 fields

```

I passed quote=’"’ to the import\_table, but still with no change.

please help me 🙂  
thanks!  
Shiri

---

<div class="post-metadata">

**Author:** ![tpoterba](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.hail.is/tpoterba/32/61_2.png) [@tpoterba](https://discuss.hail.is/u/tpoterba)\
**Post date:** [April 11, 2022, 5:40pm UTC](https://discuss.hail.is/t/error-summary-hailexception/2600/2 "2022-04-11T17:40:43Z")

</div>

This is a problem with table import, so the logistic regression isn’t an important part of debugging the pipeline. What’s the code you use to import your table?

Also, upgrading to the latest version would be good, because the error message might be slightly different.

---

<div class="post-metadata">

**Author:** ![Shiri.Margalit](https://avatars.discourse-cdn.com/v4/letter/s/a3d4f5/32.png) [@Shiri.Margalit](https://discuss.hail.is/u/Shiri.Margalit)\
**Post date:** [April 11, 2022, 5:47pm UTC](https://discuss.hail.is/t/error-summary-hailexception/2600/3 "2022-04-11T17:47:59Z")

</div>

Hi,  
the import table code is:

`table = hl.import_table("meta_data/023-BOSTON_samples_edited.csv", impute=True, key="USUBJID", delimiter=',', quote='"')`

I filled all the null etries with 0. Now I’m getting this error:  
`Error summary: HailException: No complete samples: each sample is missing its phenotype or some covariate`

What could be the problem?..

---

<div class="post-metadata">

**Author:** ![cobalt](https://avatars.discourse-cdn.com/v4/letter/c/8491ac/32.png) [@cobalt](https://discuss.hail.is/u/cobalt)\
**Post date:** [September 26, 2022, 8:22am UTC](https://discuss.hail.is/t/error-summary-hailexception/2600/4 "2022-09-26T08:22:52Z")

</div>

Is this issue resolved? I’m facing this issue too.

---

<div class="post-metadata">

**Author:** ![tpoterba](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.hail.is/tpoterba/32/61_2.png) [@tpoterba](https://discuss.hail.is/u/tpoterba)\
**Post date:** [September 26, 2022, 12:59pm UTC](https://discuss.hail.is/t/error-summary-hailexception/2600/5 "2022-09-26T12:59:36Z")

</div>

> [@Shiri.Margalit](#):
>
> `Error summary: HailException: No complete samples: each sample is missing its phenotype or some covariate`

This error occurs when no samples have a defined value for the phenotype and each covariate. Take a look at missingness patterns of those fields / inputs – there’s probably a lot more missingness than you expect.
