Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I had to add some more exception catching to deal with errors I get doing a large upgrade of user-generated content. Mainly I would get fatal errors preventing an entire field from migrating if one record had text that was too long, so I just wanted to catch those errors and keep migrating.
Patch needs testing as I am running on drush and not using the drupal_set_message route myself.
Comment | File | Size | Author |
---|---|---|---|
#2 | cck-rolback_field_on_failed_data_migration-1266842-2.patch | 3.83 KB | fbrooks |
#1 | content-migrate-try.patch | 5.07 KB | Jody Lynn |
Comments
Comment #1
Jody LynnComment #2
fbrooks CreditAttribution: fbrooks commentedI agree that some kind of exception handling to allow it to continue is desirable, though I would take the additional step of rolling back the field in which the error occurred. See attached patch.
Comment #3
colanCommitted #2 in 821ff91, but we still need a patch for the second part of patch #1.