sibis-platform / ncanda-data-integration

This is the Data Integration, MRI, and Bioinformatics Component of the National Consortium on Alcohol and NeuroDevelopment in Adolescence (NCANDA), funded by the NIAAA.
https://www.nitrc.org/projects/ncanda-datacore
BSD 3-Clause "New" or "Revised" License
4 stars 10 forks source link

Bug/update bulk forms error parsing #455

Closed gcyoung1 closed 2 years ago

gcyoung1 commented 2 years ago

There was a bug parsing the stringified list of errors returned from rc_entry.import_records(form_status, overwrite='overwrite' ). It was splitting on ",", but the stringified list is actually a "\n"-separated list of errors, ie '"B-00026-M-1","limesurvey_ssaga_parent_complete","0","This field is located on a form that is locked. You must first unlock this form for this record."\n"B-00027-M-9","limesurvey_ssaga_parent_complete","0","This field is located on a form that is locked. You must first unlock this form for this record." would only split on commas and so wouldn't separate the two errors.