Unable to insert into oracle database - ORA-00911 errorhttp://forums.asp.net/t/1582853.aspx/1?Unable+to+insert+into+oracle+database+ORA+00911+errorMon, 19 Mar 2012 01:31:56 -040015828533992844http://forums.asp.net/p/1582853/3992844.aspx/1?Unable+to+insert+into+oracle+database+ORA+00911+errorUnable to insert into oracle database - ORA-00911 error <p>Dear all,</p> <p>I am trying to insert values into oracle database using visual studio 2010 express edition. Please find the below code I used:</p> <p><br> </p> <p><pre class="prettyprint">protected void Button1_Click1(object sender, EventArgs e) { try { OracleConnection con = new OracleConnection(); con.ConnectionString = &quot;User ID=mpcst;Password=mpcst;Data Source=localhost/orcl&quot;; string commandtext = &quot;Insert into mpcst.metadata(BOUNDARY,THEME,SOCIOECO,LAYERNAME,PROJECT,MAPSCALE,LAYERENTITY,MAPBASESYSTEM,MAPPROJECTION,MAPDATUM,MAPMAJORAXIS,MAPMINORAXIS,MAPELLIPTICITY,POSITIONACCURACY,THEMEACCURACY,ELEVATIONACCURACY,OBJECTTYPE,CATEGORY,LAYERTYPE,LAYERGIS,LAYERDESC,LAYERCITATION,OPERATINGSYS,LAYERCLASSIFICATION,LAYERCLASSDESC,LAYERSPREAD,PROCPOSITIONACCURACY,PROCTHEMEACCURACY,PROCELEVATIONACCURACY,SURVEYYEAR,MAPPINGYEAR,DIGITIZEYEAR,AGENCYNAME,FOCALPERSON,ADDRESS,PHONE,FAX,EMAIL,WEBSITE,COLLABORATEAGENCY,COST) values (?BOUNDARY,?THEME,?SOCIOECO,?LAYERNAME,?PROJECT,?MAPSCALE,?LAYERENTITY,?MAPBASESYSTEM,?MAPPROJECTION,?MAPDATUM,?MAPMAJORAXIS,?MAPMINORAXIS,?MAPELLIPTICITY,?POSITIONACCURACY,?THEMEACCURACY,?ELEVATIONACCURACY,?OBJECTTYPE,?CATEGORY,?LAYERTYPE,?LAYERGIS,?LAYERDESC,?LAYERCITATION,?OPERATINGSYS,?LAYERCLASSIFICATION,?LAYERCLASSDESC,?LAYERSPREAD,?PROCPOSITIONACCURACY,?PROCTHEMEACCURACY,?PROCELEVATIONACCURACY,?SURVEYYEAR,?MAPPINGYEAR,?DIGITIZEYEAR,?AGENCYNAME,?FOCALPERSON,?ADDRESS,?PHONE,?FAX,?EMAIL,?WEBSITE,?COLLABORATEAGENCY,?COST)&quot;; OracleCommand cmd = new OracleCommand(commandtext, con); cmd.CommandType = CommandType.Text; cmd.Parameters.Add(&quot;?BOUNDARY&quot;, OracleDbType.Varchar2).Value = DropDownList1.SelectedValue.ToString(); cmd.Parameters.Add(&quot;?THEME&quot;, OracleDbType.Varchar2).Value = DropDownList2.SelectedValue.ToString(); cmd.Parameters.Add(&quot;?SOCIOECO&quot;, OracleDbType.Varchar2).Value = DropDownList3.SelectedValue.ToString(); cmd.Parameters.Add(&quot;?LAYERNAME&quot;, OracleDbType.Varchar2).Value = TextBox1.Text; cmd.Parameters.Add(&quot;?PROJECT&quot;, OracleDbType.Varchar2).Value = TextBox4.Text; cmd.Parameters.Add(&quot;?MAPSCALE&quot;, OracleDbType.Varchar2).Value = TextBox3.Text; cmd.Parameters.Add(&quot;?LAYERENTITY&quot;, OracleDbType.Varchar2).Value = TextBox5.Text; cmd.Parameters.Add(&quot;?MAPBASESYSTEM&quot;, OracleDbType.Varchar2).Value = TextBox6.Text; cmd.Parameters.Add(&quot;?MAPPROJECTION&quot;, OracleDbType.Varchar2).Value = TextBox7.Text; cmd.Parameters.Add(&quot;?MAPDATUM&quot;, OracleDbType.Varchar2).Value = TextBox8.Text; cmd.Parameters.Add(&quot;?MAPMAJORAXIS&quot;, OracleDbType.Varchar2).Value = TextBox9.Text; cmd.Parameters.Add(&quot;?MAPMINORAXIS&quot;, OracleDbType.Varchar2).Value = TextBox10.Text; cmd.Parameters.Add(&quot;?MAPELLIPTICITY&quot;, OracleDbType.Varchar2).Value = TextBox11.Text; cmd.Parameters.Add(&quot;?POSITIONACCURACY&quot;, OracleDbType.Varchar2).Value = TextBox12.Text; cmd.Parameters.Add(&quot;?THEMEACCURACY&quot;, OracleDbType.Varchar2).Value = TextBox13.Text; cmd.Parameters.Add(&quot;?ELEVATIONACCURACY&quot;, OracleDbType.Varchar2).Value = TextBox14.Text; cmd.Parameters.Add(&quot;?OBJECTTYPE&quot;, OracleDbType.Varchar2).Value = TextBox15.Text; cmd.Parameters.Add(&quot;?CATEGORY&quot;, OracleDbType.Varchar2).Value = TextBox16.Text; cmd.Parameters.Add(&quot;?LAYERTYPE&quot;, OracleDbType.Varchar2).Value = TextBox17.Text; cmd.Parameters.Add(&quot;?LAYERGIS&quot;, OracleDbType.Varchar2).Value = TextBox18.Text; cmd.Parameters.Add(&quot;?LAYERDESC&quot;, OracleDbType.Varchar2).Value = TextBox19.Text; cmd.Parameters.Add(&quot;?LAYERCITATION&quot;, OracleDbType.Varchar2).Value = TextBox20.Text; cmd.Parameters.Add(&quot;?OPERATINGSYS&quot;, OracleDbType.Varchar2).Value = TextBox21.Text; cmd.Parameters.Add(&quot;?LAYERCLASSIFICATION&quot;, OracleDbType.Varchar2).Value = TextBox22.Text; cmd.Parameters.Add(&quot;?LAYERCLASSDESC&quot;, OracleDbType.Varchar2).Value = TextBox23.Text; cmd.Parameters.Add(&quot;?LAYERSPREAD&quot;, OracleDbType.Varchar2).Value = TextBox24.Text; cmd.Parameters.Add(&quot;?PROCPOSITIONACCURACY&quot;, OracleDbType.Varchar2).Value = TextBox25.Text; cmd.Parameters.Add(&quot;?PROCTHEMEACCURACY&quot;, OracleDbType.Varchar2).Value = TextBox26.Text; cmd.Parameters.Add(&quot;?PROCELEVATIONACCURACY&quot;, OracleDbType.Varchar2).Value = TextBox27.Text; cmd.Parameters.Add(&quot;?SURVEYYEAR&quot;, OracleDbType.Varchar2).Value = TextBox28.Text; cmd.Parameters.Add(&quot;?MAPPINGYEAR&quot;, OracleDbType.Varchar2).Value = TextBox29.Text; cmd.Parameters.Add(&quot;?DIGITIZEYEAR&quot;, OracleDbType.Varchar2).Value = TextBox30.Text; cmd.Parameters.Add(&quot;?AGENCYNAME&quot;, OracleDbType.Varchar2).Value = TextBox31.Text; cmd.Parameters.Add(&quot;?FOCALPERSON&quot;, OracleDbType.Varchar2).Value = TextBox32.Text; cmd.Parameters.Add(&quot;?ADDRESS&quot;, OracleDbType.Varchar2).Value = TextBox33.Text; cmd.Parameters.Add(&quot;?PHONE&quot;, OracleDbType.Varchar2).Value = TextBox34.Text; cmd.Parameters.Add(&quot;?FAX&quot;, OracleDbType.Varchar2).Value = TextBox35.Text; cmd.Parameters.Add(&quot;?EMAIL&quot;, OracleDbType.Varchar2).Value = TextBox36.Text; cmd.Parameters.Add(&quot;?WEBSITE&quot;, OracleDbType.Varchar2).Value = TextBox37.Text; cmd.Parameters.Add(&quot;?COLLABORATEAGENCY&quot;, OracleDbType.Varchar2).Value = TextBox38.Text; cmd.Parameters.Add(&quot;?COST&quot;, OracleDbType.Varchar2).Value = TextBox39.Text; con.Open(); int result = cmd.ExecuteNonQuery(); Label1.Text = &quot;Data Saved&quot;; con.Close(); } catch (Exception ex) { Label1.Text = ex.ToString(); } } Am getting the error: Oracle.DataAccess.Client.OracleException ORA-00911: invalid character at Oracle.DataAccess.Client.OracleException.HandleErrorHelper(Int32 errCode, OracleConnection conn, IntPtr opsErrCtx, OpoSqlValCtx* pOpoSqlValCtx, Object src, String procedure) at Oracle.DataAccess.Client.OracleException.HandleError(Int32 errCode, OracleConnection conn, String procedure, IntPtr opsErrCtx, OpoSqlValCtx* pOpoSqlValCtx, Object src) at Oracle.DataAccess.Client.OracleCommand.ExecuteNonQuery() at _Default.Button1_Click1(Object sender, EventArgs e) in c:\Documents and Settings\Sharat\My Documents\Visual Studio Could anyone tell me where the problem is. I thank all in advance, Sharat. 2010\WebSites\MetadataAdmin\Default.aspx.cs:line 70</pre><br> <br> </p> 2010-07-26T15:33:22-04:003993835http://forums.asp.net/p/1582853/3993835.aspx/1?Re+Unable+to+insert+into+oracle+database+ORA+00911+errorRe: Unable to insert into oracle database - ORA-00911 error <p>Go to line number 70 and see what you are passing as the parameter value.</p> <p>It looks like you are not escaping single quote or having some special character in there.</p> <p>if you have a single quote, replace that single quote with two single quotes in your TextBox.</p> <p>txtValue.Text.Replace(&quot;'&quot;,&quot;'')</p> <p>That should work I guess, but replace for string values and see if it clears the error message<br> </p> <p><br> </p> 2010-07-27T04:36:40-04:003994380http://forums.asp.net/p/1582853/3994380.aspx/1?Re+Unable+to+insert+into+oracle+database+ORA+00911+errorRe: Unable to insert into oracle database - ORA-00911 error <p>Thank you for reply I also tried by replacing that single quote with two single quotes in your TextBox.&nbsp;&nbsp;&nbsp; txtValue.Text.Replace(&quot;'&quot;,&quot;'') but still am getting the error.</p> <p><b>Please find the below code I tried:</b></p> <p><pre class="prettyprint">protected void Button1_Click1(object sender, EventArgs e) { try { OracleConnection con = new OracleConnection(); con.ConnectionString = &quot;User ID=mpcst;Password=mpcst;Data Source=192.168.1.10/orcl&quot;; //string connstr = &quot;Provider=OraOLEDB.Oracle.1;Persist Security Info=False;User ID=mpcst;Password=mpcst;Data Source=192.168.1.10/orcl&quot;; string commandtext = &quot;Insert into mpcst.metadata(BOUNDARY,THEME,SOCIOECO,LAYERNAME,PROJECT,MAPSCALE,LAYERENTITY,MAPBASESYSTEM,MAPPROJECTION,MAPDATUM,MAPMAJORAXIS,MAPMINORAXIS,MAPELLIPTICITY,POSITIONACCURACY,THEMEACCURACY,ELEVATIONACCURACY,OBJECTTYPE,CATEGORY,LAYERTYPE,LAYERGIS,LAYERDESC,LAYERCITATION,OPERATINGSYS,LAYERCLASSIFICATION,LAYERCLASSDESC,LAYERSPREAD,PROCPOSITIONACCURACY,PROCTHEMEACCURACY,PROCELEVATIONACCURACY,SURVEYYEAR,MAPPINGYEAR,DIGITIZEYEAR,AGENCYNAME,FOCALPERSON,ADDRESS,PHONE,FAX,EMAIL,WEBSITE,COLLABORATEAGENCY,COST) values (:BOUNDARY,:THEME,:SOCIOECO,:LAYERNAME,:PROJECT,:MAPSCALE,:LAYERENTITY,:MAPBASESYSTEM,:MAPPROJECTION,:MAPDATUM,:MAPMAJORAXIS,:MAPMINORAXIS,:MAPELLIPTICITY,:POSITIONACCURACY,:THEMEACCURACY,:ELEVATIONACCURACY,:OBJECTTYPE,:CATEGORY,:LAYERTYPE,:LAYERGIS,:LAYERDESC,:LAYERCITATION,:OPERATINGSYS,:LAYERCLASSIFICATION,:LAYERCLASSDESC,:LAYERSPREAD,:PROCPOSITIONACCURACY,:PROCTHEMEACCURACY,:PROCELEVATIONACCURACY,:SURVEYYEAR,:MAPPINGYEAR,:DIGITIZEYEAR,:AGENCYNAME,:FOCALPERSON,:ADDRESS,:PHONE,:FAX,:EMAIL,:WEBSITE,:COLLABORATEAGENCY,:COST)&quot;; OracleCommand cmd = new OracleCommand(commandtext, con); cmd.CommandType = CommandType.Text; cmd.Parameters.Add(&quot;:BOUNDARY&quot;, OracleDbType.Varchar2).Value = DropDownList1.SelectedValue.ToString(); cmd.Parameters.Add(&quot;:THEME&quot;, OracleDbType.Varchar2).Value = DropDownList2.SelectedValue.ToString(); cmd.Parameters.Add(&quot;:SOCIOECO&quot;, OracleDbType.Varchar2).Value = DropDownList3.SelectedValue.ToString(); cmd.Parameters.Add(&quot;:LAYERNAME&quot;, OracleDbType.Varchar2).Value = TextBox1.Text; cmd.Parameters.Add(&quot;:PROJECT&quot;, OracleDbType.Varchar2).Value = TextBox4.Text; cmd.Parameters.Add(&quot;:MAPSCALE&quot;, OracleDbType.Varchar2).Value = TextBox3.Text; cmd.Parameters.Add(&quot;:LAYERENTITY&quot;, OracleDbType.Varchar2).Value = TextBox5.Text; cmd.Parameters.Add(&quot;:MAPBASESYSTEM&quot;, OracleDbType.Varchar2).Value = TextBox6.Text; cmd.Parameters.Add(&quot;:MAPPROJECTION&quot;, OracleDbType.Varchar2).Value = TextBox7.Text; cmd.Parameters.Add(&quot;:MAPDATUM&quot;, OracleDbType.Varchar2).Value = TextBox8.Text; cmd.Parameters.Add(&quot;:MAPMAJORAXIS&quot;, OracleDbType.Varchar2).Value = TextBox9.Text; cmd.Parameters.Add(&quot;:MAPMINORAXIS&quot;, OracleDbType.Varchar2).Value = TextBox10.Text; cmd.Parameters.Add(&quot;:MAPELLIPTICITY&quot;, OracleDbType.Varchar2).Value = TextBox11.Text; cmd.Parameters.Add(&quot;:POSITIONACCURACY&quot;, OracleDbType.Varchar2).Value = TextBox12.Text; cmd.Parameters.Add(&quot;:THEMEACCURACY&quot;, OracleDbType.Varchar2).Value = TextBox13.Text; cmd.Parameters.Add(&quot;:ELEVATIONACCURACY&quot;, OracleDbType.Varchar2).Value = TextBox14.Text; cmd.Parameters.Add(&quot;:OBJECTTYPE&quot;, OracleDbType.Varchar2).Value = TextBox15.Text; cmd.Parameters.Add(&quot;:CATEGORY&quot;, OracleDbType.Varchar2).Value = TextBox16.Text; cmd.Parameters.Add(&quot;:LAYERTYPE&quot;, OracleDbType.Varchar2).Value = TextBox17.Text; cmd.Parameters.Add(&quot;:LAYERGIS&quot;, OracleDbType.Varchar2).Value = TextBox18.Text; cmd.Parameters.Add(&quot;:LAYERDESC&quot;, OracleDbType.Varchar2).Value = TextBox19.Text; cmd.Parameters.Add(&quot;:LAYERCITATION&quot;, OracleDbType.Varchar2).Value = TextBox20.Text; cmd.Parameters.Add(&quot;:LAYERCLASSIFICATION&quot;, OracleDbType.Varchar2).Value = TextBox22.Text; cmd.Parameters.Add(&quot;:LAYERCLASSDESC&quot;, OracleDbType.Varchar2).Value = TextBox23.Text; cmd.Parameters.Add(&quot;:LAYERSPREAD&quot;, OracleDbType.Varchar2).Value = TextBox24.Text; cmd.Parameters.Add(&quot;:PROCPOSITIONACCURACY&quot;, OracleDbType.Varchar2).Value = TextBox25.Text; cmd.Parameters.Add(&quot;:PROCTHEMEACCURACY&quot;, OracleDbType.Varchar2).Value = TextBox26.Text; cmd.Parameters.Add(&quot;:PROCELEVATIONACCURACY&quot;, OracleDbType.Varchar2).Value = TextBox27.Text; cmd.Parameters.Add(&quot;:SURVEYYEAR&quot;, OracleDbType.Varchar2).Value = TextBox28.Text; cmd.Parameters.Add(&quot;:MAPPINGYEAR&quot;, OracleDbType.Varchar2).Value = TextBox29.Text; cmd.Parameters.Add(&quot;:DIGITIZEYEAR&quot;, OracleDbType.Varchar2).Value = TextBox30.Text; cmd.Parameters.Add(&quot;:AGENCYNAME&quot;, OracleDbType.Varchar2).Value = TextBox31.Text; cmd.Parameters.Add(&quot;:FOCALPERSON&quot;, OracleDbType.Varchar2).Value = TextBox32.Text; cmd.Parameters.Add(&quot;:ADDRESS&quot;, OracleDbType.Varchar2).Value = TextBox33.Text; cmd.Parameters.Add(&quot;:PHONE&quot;, OracleDbType.Varchar2).Value = TextBox34.Text; cmd.Parameters.Add(&quot;:FAX&quot;, OracleDbType.Varchar2).Value = TextBox35.Text; cmd.Parameters.Add(&quot;:EMAIL&quot;, OracleDbType.Varchar2).Value = TextBox36.Text; cmd.Parameters.Add(&quot;:WEBSITE&quot;, OracleDbType.Varchar2).Value = TextBox37.Text; cmd.Parameters.Add(&quot;:COLLABORATEAGENCY&quot;, OracleDbType.Varchar2).Value = TextBox38.Text; cmd.Parameters.Add(&quot;:COST&quot;, OracleDbType.Varchar2).Value = TextBox39.Text; con.Open(); cmd.ExecuteNonQuery(); Label1.Text = &quot;Data Saved&quot;; con.Close(); } catch (Exception ex) { Label1.Text = ex.ToString(); }</pre></p> <p><br> </p> <p><b>Still am getting the error:</b></p> <p><br> </p> <table> <tbody> <tr> <td><span id="MainContent_Label1">Oracle.DataAccess.Client.OracleException ORA-01008: not all variables bound at Oracle.DataAccess.Client.OracleException.HandleErrorHelper(Int32 errCode, OracleConnection conn, IntPtr opsErrCtx, OpoSqlValCtx* pOpoSqlValCtx, Object src, String procedure) at Oracle.DataAccess.Client.OracleException.HandleError(Int32 errCode, OracleConnection conn, String procedure, IntPtr opsErrCtx, OpoSqlValCtx* pOpoSqlValCtx, Object src) at Oracle.DataAccess.Client.OracleCommand.ExecuteNonQuery() at _Default.Button1_Click1(Object sender, EventArgs e) in c:\Documents and Settings\Sharat\My Documents\Visual Studio 2010\WebSites\MetadataAdmin\Default.aspx.cs:line 68</span> </td> </tr> </tbody> </table> <p><br> </p> <p><b>Am unable find the error in the code. Could anyone help me for fixing this error.</b></p> <p><br> </p> <p><b>Thanks &amp; Regards,</b></p> <p><b>Sharat<br> </b></p> <p><br> </p> <p><br> </p> <p><br> </p> 2010-07-27T09:30:12-04:004883509http://forums.asp.net/p/1582853/4883509.aspx/1?Re+Unable+to+insert+into+oracle+database+ORA+00911+errorRe: Unable to insert into oracle database - ORA-00911 error <p>Hello.</p> <p>Concerning the second exception (<span>ORA-01008), i</span>n case you did not find out the answear by now, you missed OPERATINGSYS, between&nbsp;LAYERCITATION and LAYERCLASSIFICATION.</p> <p>Be sure to add the parameters in the right order. Something like:</p> <pre class="prettyprint">cmd.Parameters.Add(&quot;:LAYERCITATION&quot;, OracleDbType.Varchar2).Value = TextBox20.Text; cmd.Parameters.Add(&quot;OPERATINGSYS&quot;, OracleDbType.Varchar2).Value = TextBox21.Text; //&quot;:&quot; are not mandatory in the parameter name cmd.Parameters.Add(&quot;:LAYERCLASSIFICATION&quot;, OracleDbType.Varchar2).Value = TextBox22.Text;</pre> 2012-03-16T09:05:30-04:004886430http://forums.asp.net/p/1582853/4886430.aspx/1?Re+Unable+to+insert+into+oracle+database+ORA+00911+errorRe: Unable to insert into oracle database - ORA-00911 error <p>Get rid of colons in add parm</p> <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span class="kwd">string</span><span class="pln"> commandtext </span> <span class="pun">=</span><span class="pln"> </span><span class="str">&quot;Insert into mpcst.metadata(BOUNDARY) values (:BOUNDARY)&quot;</span><span class="pun">;</span></p> <p><span class="pun">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cmd<span class="pun">.</span><span class="typ">Parameters</span><span class="pun">.</span><span class="typ">Add</span><span class="pun">(</span><span class="str">&quot;BOUNDARY&quot;</span><span class="pun">,</span><span class="pln"> </span><span class="typ">OracleDbType</span><span class="pun">.</span><span class="typ">Varchar2</span><span class="pun">).</span><span class="typ">Value</span><span class="pln"> </span><span class="pun">=</span><span class="pln"> </span><span class="typ">DropDownList1</span><span class="pun">.</span><span class="typ">SelectedValue</span><span class="pun">.</span><span class="typ">ToString</span><span class="pun">();</span><span class="pln"> </span></span></p> <p><span class="pun">use the COLON only to signify the BIND variable in the Insert statement VAlues section</span></p> <p><span class="pun">example</span></p> <pre class="prettyprint">Imports System.Xml.Linq.XElement Public Shared Sub updateUnitsActiveFlag(ByVal decQuantity As Decimal) ' Insert Quantity into new row Units table' Dim OraConnStr As String = ConfigurationManager.ConnectionStrings(&quot;{YourOraConnStrName}&quot;).ConnectionString Try Dim SQL = &lt;SQL&gt; INSERT INTO {YOURSCHEMANAME}.UNITS (UNITS_SEQ, QUANTITY, DATE_CLOSED) VALUES (UNIT_SEQ.NextVal, :BindVarQuantity, :DateClosed) &lt;/SQL&gt; Using conn As New OracleConnection(OraConnStr) Using cmd As New OracleCommand(SQL.Value, conn) cmd.Parameters.Clear() cmd.Parameters.Add(&quot;BindVarQuantity&quot;, OracleDbType.Decimal, decQuantity, ParameterDirection.Input) cmd.Parameters.Add(&quot;DateClosed&quot;, OracleDbType.Date, dateDateClosed, ParameterDirection.Input) conn.Open() cmd.ExecuteNonQuery() End Using End Using Catch ex As Exception ' you exception handling here End Try End Sub</pre> <p><span class="pun"></span></p> 2012-03-19T01:22:49-04:004886436http://forums.asp.net/p/1582853/4886436.aspx/1?Re+Unable+to+insert+into+oracle+database+ORA+00911+errorRe: Unable to insert into oracle database - ORA-00911 error <p></p> <blockquote><span class="icon-blockquote"></span> <h4>sansan</h4> <p></p> <p>It looks like you are not escaping single quote or having some special character in there.</p> <p>if you have a single quote, replace that single quote with two single quotes in your TextBox.</p> <p>txtValue.Text.Replace(&quot;'&quot;,&quot;'')</p> <p>That should work I guess, but replace for string values and see if it clears the error message</p> <p></p> <p></p> </blockquote> <p></p> <p>Not true when you are using query parameters such as the OP is doing.&nbsp; For the OP, to troubleshoot the problem, start commenting out all lines until you are adding just a single field.&nbsp; If that works, start uncommenting them one at a time until you find which one causes the error.</p> 2012-03-19T01:31:56-04:00