Can someone help? When running /@@import_content I get this error, and I've already created the Requisicoes2Folder Type :
Traceback (innermost last):
Module ZPublisher.WSGIPublisher, line 162, in transaction_pubevents
Module ZPublisher.WSGIPublisher, line 371, in publish_module
Module ZPublisher.WSGIPublisher, line 266, in publish
Module ZPublisher.mapply, line 85, in mapply
Module ZPublisher.WSGIPublisher, line 63, in call_object
Module collective.exportimport.import_content, line 176, in __call__
Module collective.exportimport.import_content, line 236, in do_import
Module collective.exportimport.import_content, line 392, in import_new_content
Module Products.CMFPlone.utils, line 355, in _createObjectByType
ValueError: Invalid type Requisicoes2Folder
Ana Bárbara via Plone Community wrote at 2022-10-24 16:35 +0000:
Can someone help? I'm trying to keep the same name, capital letters, on the short name, but it won't let me, which is giving an error when importing content (archetypes) from a previous 5.1.6 Plone version site, when running /@@import_content :
Traceback (innermost last):
...
Module collective.exportimport.import_content, line 236, in do_import
Module collective.exportimport.import_content, line 392, in import_new_content
Module Products.CMFPlone.utils, line 355, in _createObjectByType
ValueError: Invalid type Requisicoes2Folder
Apparently, the (CMF) type Requisicoes2Folder is missing in
the instance into which you try to import. Check portal_types.
The (import) target instance must have all resources
referenced by the import, including all referenced types.
Thank you!!! However, I've already created the type, it should work now, correct? (It is just create a new dexterity type with the corresponding name, right?)
The name has to fit exactly. Did you create it trough the web or in code? If ttw then the id of the type is probably not Requisicoes2Folder but requisicoes2folder. You can rename the type in /portal_types/manage_main
Ana Bárbara via Plone Community wrote at 2022-10-27 14:59 +0000:
Thank you!!! However, I've already created the type, it should work now, correct? (It is just create a new dexterity type with the corresponding name, right?) portal_types must know the type (in whatever way you have achieved this).