<?xml version="1.0" encoding="utf-8"?><rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
    xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
    xmlns:admin="http://webns.net/mvcb/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:content="http://purl.org/rss/1.0/modules/content/">
    <channel>
    <title>Magento Issue Tracking</title>
    <link>http://www.magentocommerce.com/bug-tracking/</link>
    <description></description>
    <dc:language>en</dc:language>
    <dc:creator>MagentoCommerce</dc:creator>
    <dc:rights>Copyright {gmt_date format="%Y"}</dc:rights>
    <dc:date>{gmt_date format="%Y-%m-%dT%H:%i:%s%Q"}</dc:date>
    <admin:generatorAgent rdf:resource="http://expressionengine.com/" />
        <item>
        <title>View Issue #28676 / Integrity constraint violation UNQ_SALES_FLAT_ORDER_INCREMENT_ID error and FIX</title>
        <link>http://www.magentocommerce.com/bug-tracking/issue?issue=14682</link>
        <description><![CDATA[<strong>Posted:</strong> 2013-01-29 04:43:16<br/><strong>Category:</strong> Orders<br/><strong>Version:</strong> 1.7.0.2<br/><strong>Priority:</strong> urgent<br/><strong>Status:</strong> assigned<br/><strong>Reported By:</strong> <a href="http://www.magentocommerce.com/boards/member/25996987/">wormhit</a></strong><br/><br/>After upgrade we started to receive a lot of these exceptions:<br />
<br />
exception 'Zend_Db_Statement_Exception' with message 'SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'C01744029' for key 'UNQ_SALES_FLAT_ORDER_INCREMENT_ID'' in ..../lib/Zend/Db/Statement/Pdo.php:241<br />
<br />
After googling around I found no working fix for this.<br />
So I found a bug in magento code.<br />
<br />
app/code/core/Mage/Sales/Model/Resource/Quote.php line 165<br />
$bind      = array(':increment_id' =&gt; (int)$orderIncrementId);<br />
needs to be:<br />
$bind      = array(':increment_id' =&gt; $orderIncrementId);<br />
<br />
Please fix so we don't need to override this method anymore. ;)<br />
<br />
Cheers!<br/><br/><hr/>]]></description>
    </item>
    
    </channel>
</rss>