Failed to import a valid participating_orgs in activity SE-0-SE-6-T73-SIDA_ADMIN_2015-1, error was: Missing 'text()' from narrative","traceback":"Traceback (most recent call last):\n File \"/home/iatidatastoreclassic/iatidatastoreclassic/iati_datastore/iatilib/parse.py\", line 60, in xval\n val = ele.xpath(xpath)[0]\nIndexError: list index out of range\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File \"/home/iatidatastoreclassic/iatidatastoreclassic/iati_datastore/iatilib/parse.py\", line 618, in activity\n data[field] = function(xml, resource, major_version)\n File \"/home/iatidatastoreclassic/iatidatastoreclassic/iati_datastore/iatilib/parse.py\", line 184, in participating_orgs\n organisation = parse_org(ele, major_version=major_version, default_lang=default_lang)\n File \"/home/iatidatastoreclassic/iatidatastoreclassic/iati_datastore/iatilib/parse.py\
Describe the bug
Where a participating organisation has an empty narrative, this causes an error:
See for example this Swedish project:
https://d-portal.org/savi/?aid=SE-0-SE-6-SE-0-SE-6-71001016-LAO-21020-1
To Reproduce
Steps to reproduce the behaviour:
sida-200