﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » Issues  » Issue Adding A New Record To An Oracle 10g Database</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 09 Jun 2026 04:16:22 GMT</lastBuildDate><ttl>20</ttl><item><title>Issue Adding A New Record To An Oracle 10g Database</title><link>http://forum.strataframe.net/FindPost10921.aspx</link><description>Hello.  I'm trying to add a new record to a business object and then save it to an Oracle 10g database.  However, when I attempt to save the new record to the database I get the following error: "ORA-00936: missing expression" (which signals a bad SQL statement).&lt;br&gt;
&lt;br&gt;
Here is the stack trace:&lt;br&gt;
&lt;br&gt;
   at System.Data.OracleClient.OracleConnection.CheckError(OciErrorHandle errorHandle, Int32 rc)&lt;br&gt;
   at System.Data.OracleClient.OracleCommand.Execute(OciStatementHandle statementHandle, CommandBehavior behavior, Boolean needRowid, OciRowidDescriptor&amp; rowidDescriptor, ArrayList&amp; resultParameterOrdinals)&lt;br&gt;
   at System.Data.OracleClient.OracleCommand.ExecuteScalarInternal(Boolean needCLStype, Boolean needRowid, OciRowidDescriptor&amp; rowidDescriptor)&lt;br&gt;
   at System.Data.OracleClient.OracleCommand.ExecuteScalar()&lt;br&gt;
   at MicroFour.StrataFrame.Data.DbDataSourceItem.InternalExecuteScalar(DbCommand Command, Boolean IsTransactional, String TransactionKey)&lt;br&gt;
   at MicroFour.StrataFrame.Data.OracleDataSourceItem.UpdateRow(QueryInformation QueryInfo, DataRow RowToUpdate, ConcurrencyExceptionHandler ConcurrencyHandler, AddRowErrorHandler RowErrorHandler, Boolean RecreateCommand)&lt;br&gt;
   at MicroFour.StrataFrame.Data.DbDataSourceItem.UpdateRow(QueryInformation QueryInfo, DataRow RowToUpdate, ConcurrencyExceptionHandler ConcurrencyHandler, AddRowErrorHandler RowErrorHandler)&lt;br&gt;
   at MicroFour.StrataFrame.Data.DataLayer.UpdateDataTableThread(Object ThreadParams)&lt;br&gt;
   at MicroFour.StrataFrame.Business.BusinessLayer.Save(Boolean Transactional, String TransactionKey)&lt;br&gt;
   at MicroFour.StrataFrame.Business.BusinessLayer.Save()&lt;br&gt;
   at [Project].[Save button clicked event](Object sender, EventArgs e) in &lt;br&gt;
[Path]&lt;br&gt;
   at System.Windows.Forms.Control.OnClick(EventArgs e)&lt;br&gt;
   at System.Windows.Forms.Button.OnClick(EventArgs e)&lt;br&gt;
   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)&lt;br&gt;
   at System.Windows.Forms.Control.WmMouseUp(Message&amp; m, MouseButtons button, Int32 clicks)&lt;br&gt;
   at System.Windows.Forms.Control.WndProc(Message&amp; m)&lt;br&gt;
   at System.Windows.Forms.ButtonBase.WndProc(Message&amp; m)&lt;br&gt;
   at System.Windows.Forms.Button.WndProc(Message&amp; m)&lt;br&gt;
   at System.Windows.Forms.Control.ControlNative&amp;#119;indow.OnMessage(Message&amp; m)&lt;br&gt;
   at System.Windows.Forms.Control.ControlNative&amp;#119;indow.WndProc(Message&amp; m)&lt;br&gt;
   at System.Windows.Forms.Native&amp;#119;indow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)&lt;br&gt;
&lt;br&gt;
Any suggestions?&lt;br&gt;
&lt;br&gt;
Thanks,&lt;br&gt;
&lt;br&gt;
Jared</description><pubDate>Fri, 17 Aug 2007 20:17:43 GMT</pubDate><dc:creator>Jared Ewald</dc:creator></item><item><title>RE: Issue Adding A New Record To An Oracle 10g Database</title><link>http://forum.strataframe.net/FindPost10937.aspx</link><description>No problem :)&amp;nbsp; Glad you got it going!</description><pubDate>Fri, 17 Aug 2007 20:17:43 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Issue Adding A New Record To An Oracle 10g Database</title><link>http://forum.strataframe.net/FindPost10933.aspx</link><description>Thanks for the help!  The debug information showed that it was trying to get an autoincrement value from the database (which did not exist).  All I had to do was to turn autoincrement off in the business object properties.&lt;br&gt;
&lt;br&gt;
Thanks again!</description><pubDate>Fri, 17 Aug 2007 16:29:14 GMT</pubDate><dc:creator>Jared Ewald</dc:creator></item><item><title>RE: Issue Adding A New Record To An Oracle 10g Database</title><link>http://forum.strataframe.net/FindPost10927.aspx</link><description>Whenever you have an issue saving anything, the best thing to do is to first turn on debugging on your data source.&amp;nbsp; This will show you everything about the command including the connection, parms, etc.&amp;nbsp; To turn on debugging for a data source, open the AppMain.vb or program.cs file, where you more than likely have your data sources defined, and add the following code after your data sources have been created (either the DataBasics.DataSOurces.Add(...) or the SetConnections() method if you are using the Connection String WIzard).&lt;/P&gt;&lt;P&gt;[codesnippet]Databasics.DataSources("").SetDebugOn("c:\MyDebugFile.html",True)[/codesnippet]</description><pubDate>Fri, 17 Aug 2007 15:01:34 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>