I have found that the converting the default types from Archetypes to Dexterity was rather painless. The conversion of custom types appears painless at the surface, but it just does not work as advertised. I am attempting to use the @@custom_migration form. I have created my Dexterity Type. Everything maps one-to-one. I had already converted the default types a couple of weeks ago but left the custom type until later. Partial migrations are said to be supported.
The docs that I am following are here:
First when I browsed to the @@custom_migration form, I got an error complaining that it couldn't get the Schema for the Archetypes based types to build the form.
I imported all steps for Archetypes Content Types using portal_setup.
The form loaded. Then I mapped my custom type fields.
I ran the test, and it failed with red exclamation point. I saw in the log that it was complaining about not being able to find the dexterity folder type, so I went to portal_setup and imported plone.app.dexterity profile. Then I ran the test with a success green checkmark.
When I clicked "Migrate" the log indicated that it all migrated except that it ran into an error when it appears it might try to load the @@custom_migration form again. Now the error is that it can't iterate over the schema fields again. Although the log indicated Migrating was successful, nothing has actually been migrated. All it did was try to migrate the types that I had selected as "Do not migrate" as now I cannot edit any of the "default" items.
Has anyone else encountered these errors when converting custom Archetypes to Dexterity? Is there something that does not sound correct about the procedure that I described above? Any help is greatly appreciated. I am at my wit's end here.
Whenever I add "Archetypes Content Types for Plone" via portal_setup, I get the error: ComponentLookupError: (, 'Folder') when I attempt to migrate.
Whenever I add "plone.app.dexterity:testing", I get the successful Test configuration but then run into the error for Archetypes: AttributeError: schema in template "repeat="field python: view.getFieldsForATType(at_type)">.
It seems that the two profiles negate each other, but both have to work for the @@custom_migration form to work.