UofS-Pulse-Binfo / rawphenotypes

A Tripal module for storing raw phenotypic data. Specifically meant to help researchers contribute raw data, visualize summaries and download for further analysis.
2 stars 2 forks source link

Upload failing in Step3: "Germplasm doesn't exist" when it does #47

Closed laceysanderson closed 6 years ago

laceysanderson commented 6 years ago

When uploading a test (file: Test-2-NoErrors.xlsx):

2018-04-23 13:19:14: Calling: rawpheno_load_spreadsheet(63, a:0:{}, 1548, a:4:{i:0;s:5:"Entry";i:1;s:8:"Location";i:2;s:4:"Plot";i:3;s:3:"Rep";}) 0% complete... WD rawpheno: Uploading Phenoypic Data: Germplasm doesn't exist (name=Nugget; row=2) [error] CRITICAL (RAWPHENO): Uploading Phenoypic Data: Germplasm doesn't exist (name=Nugget; row=2) [site http://default] [TRIPAL CRITICAL] [RAWPHENO] Uploading Phenoypic Data: Germplasm doesn't exist (name=Nugget; row=2) WD rawpheno: [CODE 103] Failed to load phenoypic data (job 7895) [error] CRITICAL (RAWPHENO): [CODE 103] Failed to load phenoypic data (job 7895) [site http://default] [TRIPAL CRITICAL] [RAWPHENO] [CODE 103] Failed to load phenoypic data (job 7895) Drush command terminated abnormally due to an unrecoverable error. [error]

NOTE: The germplasm does exists:

kp3_fresh=# SELECT * FROM chado.stock WHERE name~'ugget'; stock_id | dbxref_id | organism_id | name | uniquename | description | type_id | is_obsolete ----------+-----------+-------------+--------+-------------+-------------+---------+------------- 8110 | 1910939 | 4 | Nugget | KP:GERM8110 | | 3683 | f (1 row)

reynoldtan commented 6 years ago

This occurs when uploading file to AGILE project and the system could not locate germplasm name specific to the project. In this example, nugget germplasm does not have nugget AGL germplasm in the system.

This happens only to stage 3 since the system requires germplasm name with token when saving data in stage 3.

reynoldtan commented 6 years ago

Fix: apply the same function to search germplasm name with AGL into stage 1- validate spreadsheet to validate if germplasm has a germplasm with AGL token in the system. Instruct data collector to contact administrator (support email) if this validation failed.

laceysanderson commented 6 years ago

Fixed by PR.