﻿<?xml version="1.0" encoding="utf-8"?><rss version="2.0"><channel><title>Akal Tech RSS Feed</title><link>http://www.quickobjects.com/Views/Forum/Default.aspx</link><description>Akal Tech Forum Topics</description><copyright>Akal Tech (c) 2010. All rights reserved.</copyright><language>en-us</language><lastBuildDate>9/10/2010 7:33:51 PM GMT</lastBuildDate><item><title>Topic: Better (any) error messages on failed insert</title><description>&lt;br&gt;Topic Description: We ran into a situation today where we were insert data using the data objects and it was failing with no error message text being returned. The .Insert() command returned False, but the .ErrorString was not populated. I think it should return more inforamtion as to why it failed and did not insert.&lt;BR&gt;&lt;BR&gt;We had an issue previously with GUID column and default value not being set so I checked that but that was fine. I was then kind of stuck, and was looking at the intellisense help for the .Insert command and saw in there that a PK must be set on a table. I checked the .PrimaryKeyFields collection and found count of 0. So that meant we had forgot to set a PK on the table. we did that and regenerated the code for the objects and then it worked fine.&lt;BR&gt;&lt;BR&gt;Any way that the error string can be populated with some kind of message on an .Insert call failing that a PK needs to be set. Can even be just general message of common causes of the .Insert call not succeeding.&lt;BR&gt;&lt;BR&gt;Mike&lt;hr style="height:1px;"&gt;Replies: 1&lt;br&gt;Last Reply: Wed, 28 May 2008 23:50:32 GMT&lt;br&gt;Reply By: Victor Gavriluk&lt;hr style="height:1px;"&gt;</description><link>http://www.quickobjects.com/Views/Forum/Topic.aspx?BPT=5&amp;PT=10&amp;APT=19</link><pubDate>Wed, 28 May 2008 23:50:32 GMT</pubDate></item><item><title>Reply: Re: Better (any) error messages on failed insert</title><description>Hi Mike,&lt;br&gt;&lt;br&gt;This is good suggestion and we add message in ErrorString when there is no primary key in table.&lt;br&gt;&lt;br&gt;Also you can use &lt;a target="_blank" href="http://www.akaltech.com/Documentation/QuickObjects/v3.5/webframe.html?QuickObjects.DBLibrary%7EAkal.QuickObjects.DBLibrary.DatabaseObject%7EExceptionMode.html"&gt;ExceptionMode&lt;/a&gt; if you want catch any exception rather than Business Object catching for you if no PK no exception is fired.&lt;br&gt;&lt;br&gt;Thanks,&lt;br&gt;Victor&lt;br&gt;&lt;br&gt;Quick Objects Support&lt;br&gt;</description><link>http://www.quickobjects.com/Views/Forum/Topic.aspx?BPT=5&amp;PT=10&amp;APT=19</link><pubDate>Wed, 28 May 2008 23:50:32 GMT</pubDate></item></channel></rss>