Update Failed NoneType

Installing techstation_item_control...
Updating DocTypes for techstation_item_control: [========================================] 100%
An error occurred while installing techstation_item_control: 'NoneType' object has no attribute 'lower'
Traceback (most recent call last):
  File "apps/frappe/frappe/commands/site.py", line 416, in install_app
    _install_app(app, verbose=context.verbose, force=force)
  File "apps/frappe/frappe/installer.py", line 307, in install_app
    sync_fixtures(name)
  File "apps/frappe/frappe/utils/fixtures.py", line 22, in sync_fixtures
    import_doc(fixtures_path)
  File "apps/frappe/frappe/core/doctype/data_import/data_import.py", line 216, in import_doc
    import_file_by_path(
  File "apps/frappe/frappe/modules/import_file.py", line 145, in import_file_by_path
    import_doc(
  File "apps/frappe/frappe/modules/import_file.py", line 242, in import_doc
    doc.insert()
  File "apps/frappe/frappe/model/document.py", line 259, in insert
    self.run_before_save_methods()
  File "apps/frappe/frappe/model/document.py", line 1045, in run_before_save_methods
    self.run_method("validate")
  File "apps/frappe/frappe/model/document.py", line 914, in run_method
    out = Document.hook(fn)(self, *args, **kwargs)
  File "apps/frappe/frappe/model/document.py", line 1264, in composer
    return composed(self, method, *args, **kwargs)
  File "apps/frappe/frappe/model/document.py", line 1246, in runner
    add_to_return_value(self, fn(self, *args, **kwargs))
  File "apps/frappe/frappe/model/document.py", line 911, in fn
    return method_object(*args, **kwargs)
  File "apps/frappe/frappe/desk/doctype/workspace/workspace.py", line 21, in validate
    validate_route_conflict(self.doctype, self.title)
  File "apps/frappe/frappe/desk/utils.py", line 21, in validate_route_conflict
    if slug(name) in all_names:
  File "apps/frappe/frappe/desk/utils.py", line 27, in slug
    return name.lower().replace(" ", "-")
AttributeError: 'NoneType' object has no attribute 'lower'

resolved it by

  • bench setup requirements
  • bench build
  • bench restart