Error messages migrating sales data

Team,
I received below error messages while migrating sales data using  UB Data Migration Pro tool .
[error] [ub_data_migration] Mage2SalesQuote: Grand Total is too long (maximum is 12 characters).
-- Base Grand Total is too long (maximum is 12 characters).
Mage2SalesQuote: Grand Total is too long (maximum is 12 characters).
-- Base Grand Total is too long (maximum is 12 characters).
Mage2SalesQuote: Grand Total is too long (maximum is 12 characters).
-- Base Grand Total is too long (maximum is 12 characters).
Mage2SalesQuote: Grand Total is too long (maximum is 12 characters).
-- Base Grand Total is too long (maximum is 12 characters).
Please do the needful
 

3 answers

Profile photo of Mall Staff 184060.00 $tone February 26, 2017
Public

Hi lakvenkat,
That issues come from you have some bad data with new rules of Magento2 in the sales data section.
What is the version of our tool in your working now?
Regards,
Mall.

#1
Profile photo of Mall Staff 184060.00 $tone February 27, 2017
Public

Hi lakvenkat,
As i mentioned, that issues come from you have some bad data with new rules of Magento2.
Let’s open the php file at path: pub/ub-tool/protected/controllers/Step7Controller.php
And find to the code line:

$quote2->$key = $quote->$key;

and replace it by code lines:

if (in_array($key, array('base_grand_total', 'grand_total')) AND strlen($quote->$key) > 12) {
$quote2->$key = substr(trim($quote->$key), 0, 12);
}

And you can continue with data migration in the step #7.
Regards,
Mall.

#3

Please login or Register to Submit Answer

Written By

Comments