Hi everyone,
I try to import the Analysis specifications sheet but it got this error:
Traceback (innermost last):
Module ZPublisher.WSGIPublisher, line 156, in transaction_pubevents
Module ZPublisher.WSGIPublisher, line 338, in publish_module
Module ZPublisher.WSGIPublisher, line 256, in publish
Module ZPublisher.mapply, line 85, in mapply
Module ZPublisher.WSGIPublisher, line 62, in call_object
Module senaite.core.exportimport.dataimport, line 108, in call
Module senaite.core.exportimport.load_setup_data, line 119, in call
Module senaite.core.exportimport.setupdata, line 111, in call
Module senaite.core.exportimport.setupdata, line 1706, in Import
Module senaite.core.exportimport.setupdata, line 1689, in resolve_service
Module ZTUtils.Lazy, line 140, in getitem
IndexError: 0
The sheet that I use is the same as from this link : https://docs.google.com/spreadsheets/d/1m56tIL24f-cBqMoWouzgtoRAyzNBPTUgbW9GHYMFdfY/edit#gid=936537807
I think that the error is from there, but Iâm not sure:
class Analysis_Specifications(WorksheetImporter):
def resolve_service(self, row):
bsc = getToolByName(self.context, âbika_setup_catalogâ)
service = bsc(
portal_type=âAnalysisServiceâ,
title=safe_unicode(row[âserviceâ])
)
if not service:
service = bsc(
portal_type=âAnalysisServiceâ,
getKeyword=safe_unicode(row[âserviceâ])
)
service = service[0].getObject()
return service
I also tried to do add data manualy but in senaite I only see âsample typeâ, âDynamic Analysis Specificationâ, "Title " and âDescriptionâ fields. So, the problem is that I donât know how to put âsample typeâ, âkeywordâ, âminimumâ and âmaximumâ value which is on the Analysis specifications sheet. Anyone can help me? Is there something that I have missing?