Beginner - Cannot create new Analysis Service


#1

Hi All,

Just started working with senaite.lims, installing it at a client’s lab, and have run into a problem trying to add an Analysis Service. This is a fresh install with no services added yet.

Any insight would be much appreciated, thanks!

The error I’m receiving is as follows:

Traceback (innermost last):
  Module ZPublisher.Publish, line 138, in publish
  Module ZPublisher.mapply, line 77, in mapply
  Module ZPublisher.Publish, line 48, in call_object
  Module Products.CMFPlone.FactoryTool, line 478, in __call__
  Module ZPublisher.mapply, line 77, in mapply
  Module ZPublisher.Publish, line 48, in call_object
  Module Products.CMFFormController.FSControllerPageTemplate, line 91, in __call__
  Module Products.CMFFormController.BaseControllerPageTemplate, line 29, in _call
  Module Products.CMFFormController.ControllerBase, line 232, in getNext
  Module Products.CMFFormController.Actions.TraverseTo, line 38, in __call__
  Module ZPublisher.mapply, line 77, in mapply
  Module ZPublisher.Publish, line 48, in call_object
  Module Products.CMFFormController.FSControllerPythonScript, line 105, in __call__
  Module Products.CMFFormController.Script, line 145, in __call__
  Module Products.CMFCore.FSPythonScript, line 127, in __call__
  Module Shared.DC.Scripts.Bindings, line 322, in __call__
  Module Shared.DC.Scripts.Bindings, line 359, in _bindAndExec
  Module Products.PythonScripts.PythonScript, line 344, in _exec
  Module script, line 1, in content_edit
   - <FSControllerPythonScript at /senaite/bika_setup/bika_analysisservices/portal_factory/AnalysisService/analysisservice.2019-08-20.1323532302/content_edit>
   - Line 1
  Module Products.CMFCore.FSPythonScript, line 127, in __call__
  Module Shared.DC.Scripts.Bindings, line 322, in __call__
  Module Shared.DC.Scripts.Bindings, line 359, in _bindAndExec
  Module Products.PythonScripts.PythonScript, line 344, in _exec
  Module script, line 12, in content_edit_impl
   - <FSPythonScript at /senaite/bika_setup/bika_analysisservices/portal_factory/AnalysisService/analysisservice.2019-08-20.1323532302/content_edit_impl>
   - Line 12
  Module Products.Archetypes.BaseObject, line 633, in processForm
  Module Products.Archetypes.BaseObject, line 626, in _processForm
   - __traceback_info__: (<AnalysisService at /senaite/bika_setup/bika_analysisservices/analysisservice.2019-08-20.1323532302>, <Field DuplicateVariation(fixedpoint:rw)>, <bound method AnalysisService.setDuplicateVariation of <AnalysisService at /senaite/bika_setup/bika_analysisservices/analysisservice.2019-08-20.1323532302>>)
  Module Products.Archetypes.CatalogMultiplex, line 118, in reindexObject
  Module Products.CMFPlone.CatalogTool, line 349, in catalog_object
  Module Products.ZCatalog.ZCatalog, line 476, in catalog_object
  Module Products.ZCatalog.Catalog, line 353, in catalogObject
  Module Products.ZCTextIndex.ZCTextIndex, line 184, in index_object
  Module Products.Archetypes.BaseObject, line 526, in SearchableText
  Module Products.Archetypes.BaseObject, line 526, in <lambda>
  Module Products.Archetypes.utils, line 568, in getValue
TypeError: DisplayList keys must be strings or ints, got <type 'dict'>

#2

Hi @alexanderstrand, this is a known issue described here:


Simply don’t fill the identifiers field.


#3

Unfortunately for me the Identifiers field is required, will attempt to workaround that. Thanks!

Edit: Apparently it only appears to be required on the form, I was able to leave it blank this time. Thanks for the help!