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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Jody Lynn’s picture

FileSize
5.07 KB
fbrooks’s picture

I 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.

colan’s picture

Version: 7.x-2.x-dev » 7.x-3.x-dev
Issue summary: View changes
Status: Needs review » Needs work

Committed #2 in 821ff91, but we still need a patch for the second part of patch #1.