I have one problem when I migrated the sale datas. it is fail to migrate and shows an error that “Message: Mage2SalesOrderPayment: Cc Exp Month is too long (maximum is 12 characters)”
1 answer
Hi David,
“Message: Mage2SalesOrderPayment: Cc Exp Month is too long (maximum is 12 characters)”
That issue occurred because your M1 database has bad data in the ‘cc_exp_month’ field in the table ‘sales_flat_order_payment’.
To resolve this case, you can do steps below:
+ Open the PHP file at: pub/ub-tool/protected/controllers/Step7Controller.php
and find the code line:
} else if (in_array($key, array('base_amount_ordered', 'amount_ordered')) && strlen($val) > 12) {
and replace it with:
} else if (in_array($key, array('base_amount_ordered', 'amount_ordered', 'cc_exp_month')) && strlen($val) > 12) {
+ Once done, you can continue with the data migration in the step #7 by running the CLI command:
php -f bin/ubdatamigration run --step=7
Regards,
Mall.