bety icon indicating copy to clipboard operation
bety copied to clipboard

Unhelpful error message for bulk upload

Open gsrohde opened this issue 8 years ago • 3 comments

When the trait_covariate_associations table contains references to non-existent trait ids (CORRECTION: variable ids?; this table only refers to the variables table; see UPDATE below), the bulk upload will fail with the message "undefined method `name' for nil:NilClass", which is not very helpful.

The best solution is to ensure this error never occurs by imposing foreign-key constraints.

UPDATE: There already are foreign-key constraints on this table. Not sure what the cause was of the error I was seeing.

gsrohde avatar Aug 10 '16 16:08 gsrohde