- Issue created by @Nishant
I encountered multiple errors while running the d7_field migration from a Drupal 7 site to Drupal 8. The errors indicate issues with field storage creation and missing entity types, particularly "profile2" and "country"
Set up a Drupal 8 environment.
Ensure the migrate, migrate_drupal, and migrate_drupal_ui modules are enabled.
Run the following Drush command:
drush migrate:import d7_field
The following errors occur during migration:
Actual Behavior:
The following errors occur during migration:
[error] Attempt to create a field storage field_countries with no type. (/var/www/html/web/core/modules/field/src/Entity/FieldStorageConfig.php:258)
[error] The "country" entity type does not exist. (/var/www/html/web/core/lib/Drupal/Core/Entity/EntityTypeManager.php:150)
[error] The "profile2" entity type does not exist. (/var/www/html/web/core/lib/Drupal/Core/Entity/EntityTypeManager.php:150)
[error] Attempt to create a field storage field_hq_country with no type. (/var/www/html/web/core/modules/field/src/Entity/FieldStorageConfig.php:258)
...
[notice] Processed 95 items (59 created, 0 updated, 36 failed, 0 ignored) in 3.6 seconds (1563.3/min) - done with 'd7_field'
In MigrateRunnerCommands.php line 458:
d7_field migration: 36 failed.
Expected Behavior:
The migration should successfully create the fields and recognize all entity types without any errors.
Environment:
Drupal 7.69 (source site)
Drupal 8.9.20 (destination site)
Drush version: 10.6.2
Troubleshooting Attempts:
Verified the existence of the profile2 and country entity types in the source database.
Checked field configuration and mappings in the migration configuration.
Confirmed all required migration modules are enabled.
Please let me know if additional logs or information is required. Thank you for your assistance!
Active
2.0
Code