Closed antuz88 closed 8 years ago
Same exact thing for me. Any luck solving?
Hi guys, I think issue come from your server config. Let's follow this https://github.com/ubertheme/magento2_data_migration/issues/9
Hope this help.
If that was true it would not have done everything in step 7 the first time before I reset.
I think it is something else. Like a dependant table or something. Can you please take a look ?
@Sam-PUMP I need a closer look to detect the root of issue as you said. Can you share me a dump of your Magento 1 database?
Here is something I found in the exception log that may be a hint?
[2016-01-24 17:43:28] main.CRITICAL: exception 'PDOException' with message 'SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (m2fresh
.sales_bestsellers_aggregated_daily
, CONSTRAINT SALES_BESTSELLERS_AGGRED_DAILY_PRD_ID_CAT_PRD_ENTT_ENTT_ID
FOREIGN KEY (product_id
) REFERENCES catalog_product_entity
(`entity_)' in /var/www/www.pumpunderwear.com/web/m2/magento2/vendor/magento/zendframework1/library/Zend/Db/Statement/Pdo.php:228
Stack trace:
Next exception 'Zend_Db_Statement_Exception' with message 'SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (m2fresh
.sales_bestsellers_aggregated_daily
, CONSTRAINT SALES_BESTSELLERS_AGGRED_DAILY_PRD_ID_CAT_PRD_ENTT_ENTT_ID
FOREIGN KEY (product_id
) REFERENCES catalog_product_entity
(entity_), query was: INSERT INTO
sales_bestsellers_aggregated_daily(
period,
store_id,
product_id,
product_name,
product_price,
qty_ordered) SELECT STRAIGHT_JOIN DATE(
source_table.
created_at) AS
period,
source_table.
store_id,
order_item.
product_id, MIN(order_item.name) AS
product_name, MIN(order_item.base_price) * MIN(source_table.base_to_global_rate) AS
product_price, SUM(order_item.qty_ordered) AS
qty_orderedFROM
sales_orderAS
source_table INNER JOIN
sales_order_itemAS
order_itemON order_item.order_id = source_table.entity_id WHERE (source_table.state != 'canceled') AND (order_item.product_type NOT IN('bundle', 'grouped', 'configurable')) GROUP BY DATE(
source_table.
created_at),
source_table.
store_id,
order_item.
product_idON DUPLICATE KEY UPDATE
period= VALUES(
period),
store_id= VALUES(
store_id),
product_id= VALUES(
product_id),
product_name= VALUES(
product_name),
product_price= VALUES(
product_price),
qty_ordered= VALUES(
qty_ordered`)' in /var/www/www.pumpunderwear.com/web/m2/magento2/vendor/magento/zendframework1/library/Zend/Db/Statement/Pdo.php:235
Stack trace:
On Jan 25, 2016, at 8:40 PM, Quynh Vu Van notifications@github.com wrote:
@Sam-PUMP https://github.com/Sam-PUMP I need a closer look to detect the root of issue as you said. Can you share me a dump of your Magento 1 database?
@Sam-PUMP , Do you re-index the data in Magento 1 successfully? Did you try reset the Step 7 and restart data migration on this step?
Yes I indexed successfullly. I did try to reset step 7 manually and via the backend, but when I re-try it no longer gets anything past sales order, only the FIRST time did it download everything in step 7, and now I have tried over 20 times and it never goes past sales order.
On Jan 25, 2016, at 9:34 PM, Quynh Vu Van notifications@github.com wrote:
@Sam-PUMP https://github.com/Sam-PUMP , Do you re-index the data in Magento 1 successfully? Did you try reset the Step 7 and restart data migration on this step?
— Reply to this email directly or view it on GitHub https://github.com/ubertheme/module-ubdatamigration/issues/12#issuecomment-174783772.
@Sam-PUMP
Yes I indexed successfullly.
Can you share me the screenshot to specify that? Can you share me a backup of your Magento1 database?
@Sam-PUMP I have downloaded your database file.. You should set the link download is private access or you should remove it from dropbox now.
Regards, quynhvv
Got the same problem, can't place order. I first created this issue on magento2 repo but apparently it seems like it is a problem within this module..
Some information good to know:
The method Magento\SalesSequence\Model\Sequence->getNextValue()
crashes.
It looks like this:
public function getNextValue()
{
$this->connection->insert($this->meta->getSequenceTable(), []);
$this->lastIncrementId = $this->connection->lastInsertId($this->meta->getSequenceTable());
return $this->getCurrentValue();
}
$this->meta->getSequenceTable()
returns NULL
, causing the adapter to do the following:
INSERT INTO `` () VALUES ()
This obviously doesn't work, thus the whole order creation crashes.
What could possibly cause $this->meta->getSequenceTable()
to return NULL?
@Desmaster Thanks for working around this tool. As data migration itself is a complex task as it relates to different factors including the server condition etc., we do provide migration custom service. Just add a note here, in case you might want to use our service. https://www.ubertheme.com/magento-custom-services/
Hi quynhvv,
I am also facing same issue like mentioned above , can you please give some idea how to fix it. Order not going through and gives same error as above mentioned by Desmaster
Thanks, Mitesh
Hi mitsprajapati, Thank you working around with this tool. For technical question please submit here: http://ubertheme.com/questions/ In case you want to use our service, let's submit here: https://www.ubertheme.com/magento-custom-services/ Regards, Mall.
Hi, i have migrate 1 to 6 step fine. On step 7 (sales migration) i received the message on the browser: "the connection is canceled" after 5/10min.
How can i solve it?
Thanks