﻿<?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 » Business Objects and Data Access (How do I?)  » Error in Insert (Save)</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 03:10:51 GMT</lastBuildDate><ttl>20</ttl><item><title>Error in Insert (Save)</title><link>http://forum.strataframe.net/FindPost16334.aspx</link><description>Hi,&lt;br&gt;
&lt;br&gt;
I have a BO of products that contains a field pro_nrow; this field is the Primary Key and the "Auto Incrementing" is enabled (Seed 1, Increment 1).&lt;br&gt;
&lt;br&gt;
When I try save a product, appears a error message &lt;br&gt;
&lt;br&gt;
&lt;br&gt;
[b]Unable to enter an explicit value for the identity column of the table 'tabproduto' when IDENTITY_INSERT is set to OFF.[/b]&lt;br&gt;
&lt;br&gt;
When I insert directly into a database gives certain.&lt;br&gt;
&lt;br&gt;
I looked debug.html the file and noticed that he is going empty ('') for the pro_nrow.&lt;br&gt;
Is attached the image of debug.html&lt;br&gt;
&lt;br&gt;
Thank you.</description><pubDate>Tue, 13 May 2008 09:36:04 GMT</pubDate><dc:creator>Angela Sampaio</dc:creator></item><item><title>RE: Error in Insert (Save)</title><link>http://forum.strataframe.net/FindPost16361.aspx</link><description>Good to hear you found your problem.</description><pubDate>Tue, 13 May 2008 09:36:04 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Error in Insert (Save)</title><link>http://forum.strataframe.net/FindPost16340.aspx</link><description>Glad you found it!</description><pubDate>Mon, 12 May 2008 14:10:00 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item><item><title>RE: Error in Insert (Save)</title><link>http://forum.strataframe.net/FindPost16339.aspx</link><description>Hi Greg, &lt;br&gt;
&lt;br&gt;
I find the problem ...&lt;br&gt;
In the "ProdutoBO.cs"  file the properties were set correctly, but in the form of product the BO "sysProdutoBO1" the property PrimaryKeyIsAutoIncremented was as false.&lt;br&gt;
&lt;br&gt;
Now is correctly.&lt;br&gt;
Thanks!</description><pubDate>Mon, 12 May 2008 13:39:09 GMT</pubDate><dc:creator>Angela Sampaio</dc:creator></item><item><title>RE: Error in Insert (Save)</title><link>http://forum.strataframe.net/FindPost16338.aspx</link><description>Yes, the BO is setup correctly...&lt;br&gt;
I don't know what more can be causing this problem...&lt;br&gt;</description><pubDate>Mon, 12 May 2008 13:19:36 GMT</pubDate><dc:creator>Angela Sampaio</dc:creator></item><item><title>RE: Error in Insert (Save)</title><link>http://forum.strataframe.net/FindPost16336.aspx</link><description>Is the BO setup correctly? It should be setup (in the CRUD settings area) with PrimaryKeyIsAutoIncremented=True, PrimaryKeyIsUpdatable=False and the field that is the PK should be shown as the PK in the BO Mapper (which will set that field as the PK when you build the BO).</description><pubDate>Mon, 12 May 2008 12:47:09 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item></channel></rss>