﻿<?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  » Conversion from type 'DBNull' to type 'String' is not valid. (Oracle10gR2)</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Mon, 08 Jun 2026 21:09:04 GMT</lastBuildDate><ttl>20</ttl><item><title>Conversion from type 'DBNull' to type 'String' is not valid. (Oracle10gR2)</title><link>http://forum.strataframe.net/FindPost1281.aspx</link><description>Hi,&lt;/P&gt;&lt;P&gt;when retrieving data from Oracle database a VARCHAR2 field being NULL gives an expections. When there is text in the field then the select works ok.&lt;/P&gt;&lt;P&gt;What might be the problem here and how can it be solved?&lt;/P&gt;&lt;P&gt;TIA,&lt;/P&gt;&lt;P&gt;Kari&lt;/P&gt;&lt;P&gt;ps. I did find some other post related to null values put not quite like this. Also, when can we expect the next release with the DevExpress wrapper among other enhancements :-)&lt;/P&gt;&lt;P&gt;Picture attached</description><pubDate>Thu, 20 Jul 2006 08:34:04 GMT</pubDate><dc:creator>Kari Paukku</dc:creator></item><item><title>RE: Conversion from type 'DBNull' to type 'String' is not valid. (Oracle10gR2)</title><link>http://forum.strataframe.net/FindPost1899.aspx</link><description>I have it working, Kari, but I have to get the security hooks to the point that the framework is stable before I can release it.&amp;nbsp; We finished the security editors yesterday, so I believe I'll have the update posted by the end of the weekend.&amp;nbsp; Sorry for the delay, but the security and these fixes will be worth it.</description><pubDate>Thu, 20 Jul 2006 08:34:04 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Conversion from type 'DBNull' to type 'String' is not valid. (Oracle10gR2)</title><link>http://forum.strataframe.net/FindPost1898.aspx</link><description>Hi,&lt;/P&gt;&lt;P&gt;any news on the&amp;nbsp;fix for Oracle? I today (20-JUL-06) downloaded the SF Installation package for DevEx 6.15 and tested the Oracle update. The " AND AND AND " problem is still open, I quess...?&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Kari</description><pubDate>Thu, 20 Jul 2006 03:20:37 GMT</pubDate><dc:creator>Kari Paukku</dc:creator></item><item><title>RE: Conversion from type 'DBNull' to type 'String' is not valid. (Oracle10gR2)</title><link>http://forum.strataframe.net/FindPost1677.aspx</link><description>It's in the works, and I'm running the changes through the unit tests to iron out any other issues.</description><pubDate>Tue, 27 Jun 2006 12:41:43 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Conversion from type 'DBNull' to type 'String' is not valid. (Oracle10gR2)</title><link>http://forum.strataframe.net/FindPost1676.aspx</link><description>Hi,&lt;/P&gt;&lt;P&gt;any news relating the Oracle update probkem...?&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Kari</description><pubDate>Tue, 27 Jun 2006 12:18:40 GMT</pubDate><dc:creator>Kari Paukku</dc:creator></item><item><title>RE: Conversion from type 'DBNull' to type 'String' is not valid. (Oracle10gR2)</title><link>http://forum.strataframe.net/FindPost1499.aspx</link><description>Kari,&lt;/P&gt;&lt;P&gt;I am answering this from the floor of Tech-Ed and we will be out of the office all week.&amp;nbsp; We will get your problem resolve first thing when we get back.&amp;nbsp; Sorry for any trouble.</description><pubDate>Sun, 11 Jun 2006 09:22:41 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Conversion from type 'DBNull' to type 'String' is not valid. (Oracle10gR2)</title><link>http://forum.strataframe.net/FindPost1494.aspx</link><description>Hi,&lt;/P&gt;&lt;P&gt;just downloaded the latest (8.6.2006)&amp;nbsp;version of SF but the problem updating Oracle database still seems to be there....&lt;/P&gt;&lt;P&gt;Any estimate when the final version of 1.4.1 will be available?&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Kari</description><pubDate>Sat, 10 Jun 2006 14:17:25 GMT</pubDate><dc:creator>Kari Paukku</dc:creator></item><item><title>RE: Conversion from type 'DBNull' to type 'String' is not valid. (Oracle10gR2)</title><link>http://forum.strataframe.net/FindPost1326.aspx</link><description>Well, Kari, that's what I would call a bug :Whistling:&lt;P&gt;I'll get it fixed and post you an update ASAP.&amp;nbsp; Thanks for the help.&amp;nbsp; I'll have to take a look at my unit tests and figure out why that one wasn't picked up...</description><pubDate>Thu, 01 Jun 2006 11:55:58 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Conversion from type 'DBNull' to type 'String' is not valid. (Oracle10gR2)</title><link>http://forum.strataframe.net/FindPost1324.aspx</link><description>Hi Ben,&lt;/P&gt;&lt;P&gt;and thanks for all the help. The new SF showed nicely what was the problem. As I read&amp;nbsp;it, &amp;nbsp;SF adds a couple of extra "AND"'s into the update's where clause:&lt;/P&gt;&lt;P&gt;&lt;TABLE cellSpacing=0&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class=RowHeader&gt; &lt;/TD&gt;&lt;TD&gt;UPDATE "RESYS"."EMP" SET "EMP_NAME" = :EMP_NAME WHERE "EMP_NO" = :EMP_NO &lt;STRONG&gt;&lt;FONT style="BACKGROUND-COLOR: #dd11dd"&gt;AND AND AND&lt;/FONT&gt;&lt;/STRONG&gt; (("EMP_NAME" = :EMP_NAME_ORG) OR ((:EMP_NAME_ORG IS NULL) AND ("EMP_NAME" IS NULL))) &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/P&gt;&lt;P&gt;Here is the SQL for the table &lt;/P&gt;&lt;P&gt;&lt;BR&gt;===================================================&lt;BR&gt;-- Table EMP&lt;/P&gt;&lt;P&gt;CREATE TABLE emp&lt;BR&gt;&amp;nbsp;(&lt;BR&gt;&amp;nbsp; emp_no&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NUMBER(10) NOT NULL,&lt;BR&gt;&amp;nbsp; emp_name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VARCHAR2(50)&lt;BR&gt;&amp;nbsp;);&lt;/P&gt;&lt;P&gt;-- Constraints for EMP&lt;/P&gt;&lt;P&gt;ALTER TABLE emp&lt;BR&gt;&amp;nbsp;ADD CONSTRAINT pk_emp PRIMARY KEY (emp_no);&lt;/P&gt;&lt;P&gt;INSERT INTO EMP (EMP_NO, EMP_NAME) VALUES (1,'Bart Simpson');&lt;BR&gt;=====================================================&lt;/P&gt;&lt;P&gt;&lt;BR&gt;Attached is the full debug.html file in PDF format.&amp;nbsp; What I did&amp;nbsp;was 1) retrieve the data =&amp;gt; ok, 2) update the EMP_NAME to 'Bart Simpson testing update' =&amp;gt; error. I'm using Oracle 10gR2&amp;nbsp;running on&amp;nbsp;a WinXP machine.&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Kari</description><pubDate>Thu, 01 Jun 2006 11:42:54 GMT</pubDate><dc:creator>Kari Paukku</dc:creator></item><item><title>RE: Conversion from type 'DBNull' to type 'String' is not valid. (Oracle10gR2)</title><link>http://forum.strataframe.net/FindPost1311.aspx</link><description>OK, Kari, here's the maintenance install.&amp;nbsp; Just let me know what you find.&amp;nbsp; You'll have to pull the setup exe out of the zip file... the forum won't let you upload executables.&lt;/P&gt;&lt;P&gt;Thanks :)</description><pubDate>Wed, 31 May 2006 17:13:12 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Conversion from type 'DBNull' to type 'String' is not valid. (Oracle10gR2)</title><link>http://forum.strataframe.net/FindPost1310.aspx</link><description>Well, Kari, I'm not sure why the debug isn't working, but I'm building you a maintenance release right now that has some additional debugging information.&amp;nbsp; You can install this one and just leave it installed, don't worry about going back to the pre-release.&lt;/P&gt;&lt;P&gt;Once you get it installed, it should give you more information in the debug file.&amp;nbsp; Also, if you can get the version of Oracle that you're running, the table structure (screenshot or CREATE TABLE script would be fine), and the .Designer.vb file for the business object and post those with the output from the debug file, it will go a long way towards helping me to reproduce the error.&amp;nbsp; &lt;/P&gt;&lt;P&gt;Let me know :) Thanks&lt;/P&gt;&lt;P&gt;P.S.&amp;nbsp; I'll post the maintenance install here in a second.</description><pubDate>Wed, 31 May 2006 16:58:13 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Conversion from type 'DBNull' to type 'String' is not valid. (Oracle10gR2)</title><link>http://forum.strataframe.net/FindPost1309.aspx</link><description>Hi,&lt;/P&gt;&lt;P&gt;what might be the problem here: with the new relaese I still get the same ORA-00936 error mentioned in my previous post. Setting the debug on only shows the select statement - still the error appears when trying to save the changes.&lt;/P&gt;&lt;P&gt;Currently I'm testing this with the simplest possible query - just a couple of columns in the table. With SF samples everything is ok. Might the problem be with the SQL and Oracle? Unfortunately I didn't manage to find the right place to debug the application so that I could see the UPDATE statement.&lt;/P&gt;&lt;P&gt;Any ideas how to resolve this...?&lt;/P&gt;&lt;P&gt;Thank you for all your help,&lt;BR&gt;Kari</description><pubDate>Wed, 31 May 2006 16:41:56 GMT</pubDate><dc:creator>Kari Paukku</dc:creator></item><item><title>RE: Conversion from type 'DBNull' to type 'String' is not valid. (Oracle10gR2)</title><link>http://forum.strataframe.net/FindPost1288.aspx</link><description>The next release will be out before I leave the office today (4 hours or so to go) :)</description><pubDate>Fri, 26 May 2006 13:03:21 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Conversion from type 'DBNull' to type 'String' is not valid. (Oracle10gR2)</title><link>http://forum.strataframe.net/FindPost1286.aspx</link><description>We updated the debug mode in the version that I'm building to allow for the debugging of INSERT, UPDATE, and DELETE commands.&amp;nbsp; Before this version, the debug mode on the DbDataSourceItem class only showed SELECT commands.&amp;nbsp; So, once we get the new build to you, you can call SetDebugOn() on the DbDataSourceItem and you'll be able to see the command that is being sent to the database, and that will give us a clue.</description><pubDate>Fri, 26 May 2006 12:59:40 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Conversion from type 'DBNull' to type 'String' is not valid. (Oracle10gR2)</title><link>http://forum.strataframe.net/FindPost1285.aspx</link><description>Hi,&lt;/P&gt;&lt;P&gt;one additional problem: when I try to update the WWW-field I get "ORA-00936 Missing Expression" error.&lt;/P&gt;&lt;P&gt;So this is an Oracle error saying - I guess - that there is a problem with the update SQL-statement.&amp;nbsp;What might go wrong here and is there a way to see the update statement SF is sending to the database.&lt;/P&gt;&lt;P&gt;Thanks again,&lt;/P&gt;&lt;P&gt;Kari&lt;/P&gt;&lt;P&gt;The error window "An error occured while saving an the data to the server"&lt;BR&gt;================&lt;/P&gt;&lt;P&gt;BusinessLayerException&lt;BR&gt;&amp;nbsp;An error occurred while saving an the data to the server.&lt;BR&gt;DataLayerSavingException&lt;BR&gt;&amp;nbsp;ORA-00936: missing expression&lt;/P&gt;&lt;P&gt;OracleException&lt;BR&gt;&amp;nbsp;ORA-00936: missing expression&lt;/P&gt;&lt;P&gt;&lt;BR&gt;Source&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : MicroFour StrataFrame Business&lt;/P&gt;&lt;P&gt;Stack Trace: &lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Data.OracleClient.OracleConnection.CheckError(OciErrorHandle errorHandle, Int32 rc)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Data.OracleClient.OracleCommand.Execute(OciStatementHandle statementHandle, CommandBehavior behavior, Boolean needRowid, OciRowidDescriptor&amp;amp; rowidDescriptor, ArrayList&amp;amp; resultParameterOrdinals)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Data.OracleClient.OracleCommand.ExecuteNonQueryInternal(Boolean needRowid, OciRowidDescriptor&amp;amp; rowidDescriptor)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Data.OracleClient.OracleCommand.ExecuteNonQuery()&lt;BR&gt;&amp;nbsp;&amp;nbsp; at MicroFour.StrataFrame.Data.OracleDataSourceItem.UpdateRow(QueryInformation QueryInfo, DataRow RowToUpdate, ConcurrencyExceptionHandler ConcurrencyHandler, AddRowErrorHandler RowErrorHandler, Boolean RecreateCommand)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at MicroFour.StrataFrame.Data.DbDataSourceItem.UpdateRow(QueryInformation QueryInfo, DataRow RowToUpdate, ConcurrencyExceptionHandler ConcurrencyHandler, AddRowErrorHandler RowErrorHandler)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at MicroFour.StrataFrame.Data.DataLayer.UpdateDataTableThread(Object ThreadParams)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at MicroFour.StrataFrame.Data.DataLayer.SaveByForm(DataTable TableToSave, Boolean Transactional, String TransactionKey)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at MicroFour.StrataFrame.Business.BusinessLayer.SaveByForm(Boolean Transactional, String TransactionKey)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at MicroFour.StrataFrame.UI.Windows.Forms.BaseForm.Save(Boolean Transactional, String TransactionKey)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at MicroFour.StrataFrame.UI.Windows.Forms.BaseForm.Save()&lt;BR&gt;&amp;nbsp;&amp;nbsp; at MicroFour.StrataFrame.UI.Windows.Forms.MaintenanceFormToolStrip.cmdSave_Click(Object sender, EventArgs e)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.ToolStripButton.OnClick(EventArgs e)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.Control.WmMouseUp(Message&amp;amp; m, MouseButtons button, Int32 clicks)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.Control.WndProc(Message&amp;amp; m)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.ScrollableControl.WndProc(Message&amp;amp; m)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.ToolStrip.WndProc(Message&amp;amp; m)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message&amp;amp; m)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&amp;amp; m)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)&lt;BR&gt;</description><pubDate>Fri, 26 May 2006 12:30:13 GMT</pubDate><dc:creator>Kari Paukku</dc:creator></item><item><title>RE: Conversion from type 'DBNull' to type 'String' is not valid. (Oracle10gR2)</title><link>http://forum.strataframe.net/FindPost1283.aspx</link><description>Hi Ben,&lt;/P&gt;&lt;P&gt;thanks, that worked fine.&lt;/P&gt;&lt;P&gt;Kari&lt;/P&gt;&lt;P&gt;ps. Is there hope that we would have the next release available still this weekend?</description><pubDate>Fri, 26 May 2006 11:41:14 GMT</pubDate><dc:creator>Kari Paukku</dc:creator></item><item><title>RE: Conversion from type 'DBNull' to type 'String' is not valid. (Oracle10gR2)</title><link>http://forum.strataframe.net/FindPost1282.aspx</link><description>You will need to go through the BOMapper and customize your "WWW" field so that it will return an alternate value on NULL.&amp;nbsp; Within the BOMapper, select the business object, then select the WWW field.&amp;nbsp; Right-click the field and select Customize from the context menu.&amp;nbsp; In the customization dialog, select "Return Alternate On Null" as the null value handling type, and then set the return value to either "Nothing" or "String.Empty"&amp;nbsp;(without the quotes) and the field will return the appropriate value when a NULL value exists in the database.&lt;/P&gt;&lt;P&gt;As for the DevExpress wrapper, I'm building the install right now.</description><pubDate>Fri, 26 May 2006 11:00:27 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item></channel></rss>