Thanks for the reply... Are you suggesting that there may be an issue with MySQL receiving the data from zope and the way it handles it? <br> <br>Strange thing is that I&#39;m using the exact same method I have used thousands of times over and same code layout and this is the first time I&#39;m seeing it. I&#39;ve changed around a few things relating to variable names etc thinking it was the case but dumbing it down to the simplest way I can still is giving the error.<br>

<br>
<div class="gmail_quote">On Thu, Dec 10, 2009 at 1:03 PM, Andreas Jung <span dir="ltr">&lt;<a href="mailto:lists@zopyx.com">lists@zopyx.com</a>&gt;</span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">In case of a ZODB conflict error the whole request will be repeat up to<br>three times.<br>If you database does not provide proper transaction support (trible<br>

check your MySQL<br>installation and your table type useage), you&#39;re doomed. A proper RDBMS<br>like Oracle<br>or Postgres will behave properly and abort the transaction in case of a<br>ZODB transaction<br>abort.<br><br>

-aj<br><br>Am 10.12.09 19:59, schrieb Justin Dunsworth:<br>
<div>
<div></div>
<div class="h5">&gt; I am running into a brand new issue today that I can&#39;t, for the life<br>&gt; of me, figure out. I wrote a standard page to insert data into a MySQL<br>&gt; table using Z SQL methods from a form like I always have but for some<br>

&gt; strange reason it&#39;s running the same query twice, thus adding a<br>&gt; duplicate entry.<br>&gt;<br>&gt; I have confined the original code in it&#39;s own document, checked,<br>&gt; double checked, and still no avail. Here&#39;s the code for the page:<br>

&gt;<br>&gt; &lt;dtml-var frame_header&gt;<br>&gt; &lt;dtml-if addnewstatus&gt;<br>&gt;   &lt;dtml-try&gt;<br>&gt;     &lt;dtml-call &quot;RootSQLMethods.admin.Status_Add(_.None,_)&quot;&gt;<br>&gt;     &lt;dtml-call &quot;RESPONSE.redirect(BASE2+&#39;/statuses&#39;)&quot;&gt;<br>

&gt;   &lt;dtml-except&gt;<br>&gt;     &lt;p&gt;Error while submitting! Status not added.&lt;/p&gt;<br>&gt;     &lt;br&gt;Error type: &lt;dtml-var error_type&gt;<br>&gt;     &lt;br&gt;Error value: &lt;dtml-var error_value&gt;<br>

&gt;   &lt;/dtml-try&gt;<br>&gt; &lt;/dtml-if&gt;<br>&gt; &lt;form action=&quot;&amp;dtml-URL;&quot; method=&quot;post&quot;&gt;<br>&gt;   &lt;table class=&quot;tborder&quot; align=&quot;center&quot; width=&quot;30%&quot; cellspacing=&quot;0&quot; &gt;<br>

&gt;     &lt;tr&gt;&lt;td class=&quot;tcat&quot; align=&quot;center&quot; colspan=&quot;2&quot; style=&quot;font-size:<br>&gt; 12pt;&quot;&gt;Add New Status&lt;/td&gt;&lt;/tr&gt;<br>&gt;     &lt;tr&gt;&lt;td width=&quot;35%&quot; align=&quot;right&quot;&gt;&lt;b&gt;Name:&lt;/b&gt;&lt;/td&gt;&lt;td<br>

&gt; width=&quot;65%&quot;&gt;&lt;input type=&quot;text&quot; name=&quot;name_add&quot; size=15&gt;&lt;/td&gt;&lt;/tr&gt;<br>&gt;     &lt;tr&gt;&lt;td width=&quot;35%&quot; align=&quot;right&quot;<br>&gt; valign=&quot;top&quot;&gt;&lt;b&gt;Description:&lt;/b&gt;&lt;/td&gt;&lt;td width=&quot;65%&quot;&gt;&lt;textarea<br>

&gt; name=&quot;description_add&quot; cols=25 rows=4&gt;&lt;/textarea&gt;&lt;/td&gt;&lt;/tr&gt;<br>&gt;     &lt;tr&gt;&lt;td width=&quot;35%&quot; align=&quot;right&quot;&gt;&lt;b&gt;Sort:&lt;/b&gt;&lt;/td&gt;&lt;td<br>&gt; width=&quot;65%&quot;&gt;&lt;input type=&quot;text&quot; name=&quot;sort_add&quot; value=&quot;5&quot; size=1&gt;&lt;/td&gt;&lt;/tr&gt;<br>

&gt;     &lt;tr&gt;&lt;td align=&quot;center&quot; colspan=&quot;2&quot;&gt;&lt;hr&gt;&lt;/td&gt;&lt;/tr&gt;<br>&gt;     &lt;tr&gt;<br>&gt;       &lt;td&gt;&lt;input type=&quot;hidden&quot; name=&quot;addnewstatus&quot; value=&quot;1&quot;&gt;&lt;/td&gt;<br>

&gt;       &lt;td&gt;<br>&gt;         &lt;button class=&quot;button&quot; onclick=&quot;this.form.submit()&quot;&gt;Add<br>&gt; Status&lt;/button&gt;&amp;nbsp;&amp;nbsp;<br>&gt;         &lt;button class=&quot;button&quot; onclick=&quot;window.location = &#39;&lt;dtml-var<br>

&gt; BASE2&gt;/statuses&#39;; return false;&quot;&gt;Cancel&lt;/button&gt;<br>&gt;       &lt;/td&gt;<br>&gt;     &lt;/tr&gt;<br>&gt;   &lt;/table&gt;<br>&gt; &lt;/form&gt;<br>&gt; &lt;dtml-var frame_footer&gt;<br>&gt;<br>

&gt; I can run the SQL Method by itself and it works just fine (only<br>&gt; inserting it once) but when run as a separate page it adds the two.<br>&gt;<br>&gt; Any assistance is appreciated<br>&gt;<br>&gt;<br></div></div>

&gt; _______________________________________________<br>&gt; Zope maillist  -  <a href="mailto:Zope@zope.org">Zope@zope.org</a><br>&gt; <a href="https://mail.zope.org/mailman/listinfo/zope" target="_blank">https://mail.zope.org/mailman/listinfo/zope</a><br>

&gt; **   No cross posts or HTML encoding!  **<br>&gt; (Related lists -<br>&gt;  <a href="https://mail.zope.org/mailman/listinfo/zope-announce" target="_blank">https://mail.zope.org/mailman/listinfo/zope-announce</a><br>
&gt;  <a href="https://mail.zope.org/mailman/listinfo/zope-dev" target="_blank">https://mail.zope.org/mailman/listinfo/zope-dev</a> )<br>
&gt;<br><font color="#888888"><br><br>--<br>ZOPYX Ltd. &amp; Co KG          \  zopyx group<br>Charlottenstr. 37/1          \  The full-service network for your<br>D-72070 Tübingen              \  Python, Zope and Plone projects<br>

<a href="http://www.zopyx.com/" target="_blank">www.zopyx.com</a>, <a href="mailto:info@zopyx.com">info@zopyx.com</a>  \  <a href="http://www.zopyxgroup.com/" target="_blank">www.zopyxgroup.com</a><br>------------------------------------------------------------------------<br>

E-Publishing, Python, Zope &amp; Plone development, Consulting<br><br><br></font></blockquote></div><br>