<div dir="ltr">+1,<div><br></div><div>I have found this recently with 2 Contact Records when testing a migration process to V6.</div><div><br></div><div>Regards,</div><div><br></div><div>Danny</div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On 8 January 2014 11:05, Stefan Warnat <span dir="ltr"><<a href="mailto:ich@stefanwarnat.de" target="_blank">ich@stefanwarnat.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Hy,<div><br></div><div>Yesterday I found a very strange situation in one of my clients vtiger 5.4 systems.</div><div>The System ~250k records contains Leads with a leadid, which isn't a "setype LEAD" in vtiger_crmentity.</div>

<div>Some are Contacts, other Accounts, Tickets, ...</div><div>Also the ID exist correctly in the respective tables of contacts, accounts, ...</div><div><br></div><div>I create the following problem situation:</div><div>
Two records are created in absolutely the same moment. (The createdtime column is completely equal)</div>
<div>Because ADODB don't lock the sequence table, there could be a chance of duplicate crmid's, I suspect.</div><div>I'm not fully sure how safe the used "LAST_INSERT_ID(id+1)" is. </div><div>The normal "LAST_INSERT_ID()" is per connection, but only get back a auto increment.</div>

<div><br></div><div>Anyone other with this problem?</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>Stefan</div></font></span></div>
<br>_______________________________________________<br>
<a href="http://www.vtiger.com/" target="_blank">http://www.vtiger.com/</a><br></blockquote></div><br></div>