Open balack opened 8 years ago
@balack
That issue because have some new work flow of sales module in Magento 2. and your database migrated is multiple stores and it's missing needed tables for module-sales and module-sales-sequence. You can see more at this: http://i.imgur.com/rkFvbC8.png => That are initial tables after you install a fresh Magento 2. and after migrate data with this tool, your database was missing some tables for other stores (not default store) See more: https://mage2.pro/t/topic/511
Regards, Mall.
Hi, I get the same error in 2.0.0 and 2.0.2 , what is the solution ? regards,
Philip
`[2016-02-11 13:09:47] main.CRITICAL: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1103 Incorrect table name ''' in /var/www/clients/client1/web1/web/vendor/magento/zendframework1/library/Zend/Db/Statement/Pdo.php:228 Stack trace:
Hi, I have the tables in my database,
Regards, Philip
@philipvandebriel 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/
Regards, Mall.
_@quynhvv _
I'm also facing this issue. Do you have any idea, how to resolve this.?? Is this issue comes after migration or default magento 2.0 have this issue ??
Please help me.
Thanks
Yes you missing some tables in your store view because you have more then 2 store views. In phpmyadmin, you can make new sequence_...... tables for every storeview. After the error is away because the backend need to write the ordernumber, invoicenumber etc... to every storeview.
@philipvandebriel:
Thanks for the reply, but can you please let me know is this default magento2 issue, or this issue comes after data migration??
Also the new table 'sequence_' is define in table sales_sequence_meta \ (see column sequence_table)
In this table also there is column of meta_id.
This meta_id is define in the 'sales_sequence_profile'.
So i have one doubt: to create new table sequence_ for every store is that required to fill up the information in table 'sales_sequence_meta' and 'sales_sequence_profile'?? If yes then what will be the profile id??
Thanks for you reply.
After migrate success, I'm test checkout product and error :
http://pasteboard.co/O8rPR5k.png http://pasteboard.co/PG1ixR7.png And logs:
[2016-01-15 08:49:03] main.CRITICAL: exception 'Zend_Db_Statement_Exception' with message 'Report ID: webapi-5698b27f9bb41; Message: SQLSTATE[42000]: Syntax error or access violation: 1103 Incorrect table name '', query was: INSERT INTO `` () VALUES ()' in /var/www/html/magento20new/lib/internal/Magento/Framework/Webapi/ErrorProcessor.php:194 Stack trace:
0 /var/www/html/magento20new/lib/internal/Magento/Framework/Webapi/ErrorProcessor.php(139): Magento\Framework\Webapi\ErrorProcessor->_critical(Object(Zend_Db_Statement_Exception))
1 /var/www/html/magento20new/app/code/Magento/Webapi/Controller/Rest.php(163): Magento\Framework\Webapi\ErrorProcessor->maskException(Object(Zend_Db_Statement_Exception))
2 /var/www/html/magento20new/var/generation/Magento/Webapi/Controller/Rest/Interceptor.php(24): Magento\Webapi\Controller\Rest->dispatch(Object(Magento\Framework\App\Request\Http))
3 /var/www/html/magento20new/lib/internal/Magento/Framework/App/Http.php(115): Magento\Webapi\Controller\Rest\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http))
4 /var/www/html/magento20new/lib/internal/Magento/Framework/App/Bootstrap.php(258): Magento\Framework\App\Http->launch()
5 /var/www/html/magento20new/index.php(39): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http))
6 {main} [] []
Can you help me? pls