Migration Error "GenerateMigrationResources.php [Line 872] => Undefined offset: XX"

Ran into this issue when migrating. Discovered an array mapping old payment gateways to new ones.

Mine was failing because I had a custom gateway that exceeded the bounds.

Delete the custom payment gateway in the old system
Restart the migration


Thanks for sharing the fix! Can you please explain, was the old value too long? We’d like to make sure this is corrected for other users.

It was out of bounds. The function getGatewayKeyById doesn’t allow for custom gateways. Mine had an ID of 62.