an error happened when I migrate the sales data

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

Profile photo of Mall Staff 184060.00 $tone July 24, 2019
Public

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.

#

Please login or Register to Submit Answer

Written By

Comments