Note that there are some explanatory texts on larger screens.

plurals
  1. POUnable to save the invoice
    primarykey
    data
    text
    <p>After upgrading magento from <code>1.4.0.1</code> to <code>1.5.1.0</code>, i'm not able to submit an invoice. When i'm pointing my browser to <code>Sales -&gt; Orders -&gt; [order] View -&gt; Invoice</code> and click <code>Submit invoice</code>, i'm getting the error saying <code>Unable to save the invoice.</code></p> <p>I've checked what's going on in my exception.log file and here is the error:</p> <pre><code>exception 'Zend_Db_Statement_Exception' with message 'SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '100000001' for key 'UNQ_INCREMENT_ID'' in /home/misbhv/domains/*/public_html/lib/Zend/Db/Statement/Pdo.php:234 Stack trace: #0 /home/misbhv/domains/*/public_html/lib/Zend/Db/Statement.php(300): Zend_Db_Statement_Pdo-&gt;_execute(Array) #1 /home/misbhv/domains/*/public_html/lib/Zend/Db/Adapter/Abstract.php(479): Zend_Db_Statement-&gt;execute(Array) #2 /home/misbhv/domains/*/public_html/lib/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract-&gt;query('INSERT INTO `sk...', Array) #3 /home/misbhv/domains/*/public_html/lib/Varien/Db/Adapter/Pdo/Mysql.php(337): Zend_Db_Adapter_Pdo_Abstract-&gt;query('INSERT INTO `sk...', Array) #4 /home/misbhv/domains/*/public_html/lib/Zend/Db/Adapter/Abstract.php(574): Varien_Db_Adapter_Pdo_Mysql-&gt;query('INSERT INTO `sk...', Array) #5 /home/misbhv/domains/*/public_html/app/code/core/Mage/Core/Model/Mysql4/Abstract.php(414): Zend_Db_Adapter_Abstract-&gt;insert('sklep_sales_fla...', Array) #6 /home/misbhv/domains/*/public_html/app/code/core/Mage/Sales/Model/Mysql4/Order/Abstract.php(417): Mage_Core_Model_Mysql4_Abstract-&gt;save(Object(Mage_Sales_Model_Order_Invoice)) #7 /home/misbhv/domains/*/public_html/app/code/core/Mage/Core/Model/Abstract.php(318): Mage_Sales_Model_Mysql4_Order_Abstract-&gt;save(Object(Mage_Sales_Model_Order_Invoice)) #8 /home/misbhv/domains/*/public_html/app/code/core/Mage/Core/Model/Resource/Transaction.php(150): Mage_Core_Model_Abstract-&gt;save() #9 /home/misbhv/domains/*/public_html/app/code/core/Mage/Adminhtml/controllers/Sales/Order/InvoiceController.php(272): Mage_Core_Model_Resource_Transaction-&gt;save() #10 /home/misbhv/domains/*/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(420): Mage_Adminhtml_Sales_Order_InvoiceController-&gt;saveAction() #11 /home/misbhv/domains/*/public_html/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(253): Mage_Core_Controller_Varien_Action-&gt;dispatch('save') #12 /home/misbhv/domains/*/public_html/app/code/core/Mage/Core/Controller/Varien/Front.php(176): Mage_Core_Controller_Varien_Router_Standard-&gt;match(Object(Mage_Core_Controller_Request_Http)) #13 /home/misbhv/domains/*/public_html/app/code/core/Mage/Core/Model/App.php(340): Mage_Core_Controller_Varien_Front-&gt;dispatch() #14 /home/misbhv/domains/*/public_html/app/Mage.php(627): Mage_Core_Model_App-&gt;run(Array) #15 /home/misbhv/domains/*/public_html/index.php(80): Mage::run('', 'store') #16 {main} </code></pre> <p>I have no idea what to do with that and 'm not able to google any solution. Any help would be much appreciated!</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload