﻿<?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?)  » Concurrency error occuring when UpdateConcurrencyType is Off</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Thu, 04 Jun 2026 07:12:30 GMT</lastBuildDate><ttl>20</ttl><item><title>Concurrency error occuring when UpdateConcurrencyType is Off</title><link>http://forum.strataframe.net/FindPost18877.aspx</link><description>I am getting this error when I try to save data to my SQL Server database using a stored procedure. UpdateConcurrencyType is Off. So why am I getting this error and how can I stop it from happening?&lt;/P&gt;&lt;P&gt;BTW, I have stepped through the code and I can see that the problem is occurring on this line:&lt;/P&gt;&lt;FONT color=#0000ff size=2&gt;&lt;P&gt;Dim&lt;/FONT&gt;&lt;FONT color=#000000 size=2&gt; lnReturn &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;As&lt;/FONT&gt;&lt;FONT color=#000000 size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Integer&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;FONT color=#000000&gt; = Command.ExecuteNonQuery()&lt;/FONT&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;P&gt;in the &lt;FONT size=2&gt;InternalExecuteNonQuery method. The value of lnReturn is -1. However, SQL Profiler shows that the command executed successfully and the data gets updated. So what is going on here?&lt;/P&gt;&lt;/FONT&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; Possible concurrency issue encountered.&lt;BR&gt;DBConcurrencyException&lt;BR&gt;&amp;nbsp; Possible concurrency issue encountered.&lt;/P&gt;&lt;P&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 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.ControlNative&amp;#119;indow.OnMessage(Message&amp;amp; m)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.Control.ControlNative&amp;#119;indow.WndProc(Message&amp;amp; m)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.Native&amp;#119;indow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)&lt;BR&gt;</description><pubDate>Tue, 02 Sep 2008 14:16:34 GMT</pubDate><dc:creator>Marcia G Akins</dc:creator></item><item><title>RE: Concurrency error occuring when UpdateConcurrencyType is Off</title><link>http://forum.strataframe.net/FindPost18924.aspx</link><description>Hi Dustin.&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt; We don't specifically address creating custom (non DDT created) stored procedures in the help, but I agree the SET NOCOUNT ON nuance would be helpfull to include within the documentation. I'll add a note to the pertinent topics for the next build. &amp;lt;&amp;lt;&lt;/P&gt;&lt;P&gt;Thanks! I would hate to have anyone else have to go through what I went throguh yesterday trying to figure this out :(&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt; But regardless, the forum is the best place to look for these tyeps of nuances and tips for the framework. The CHM documentation simply can't compete with the depth of topics and tricks contributed by the users and SF staff.&amp;nbsp; &amp;lt;&amp;lt;&lt;/P&gt;&lt;P&gt;Well, as you can see, I have been posting like mad :) Even with the sparse documentation, the SET NOCOUNT ON was the worst thing I have run into while trying to get my head around it.</description><pubDate>Tue, 02 Sep 2008 14:16:34 GMT</pubDate><dc:creator>Marcia G Akins</dc:creator></item><item><title>RE: Concurrency error occuring when UpdateConcurrencyType is Off</title><link>http://forum.strataframe.net/FindPost18922.aspx</link><description>Glad you got it working :D&lt;/P&gt;&lt;P&gt;We don't specifically address creating custom (non DDT created) stored procedures in the help, but I agree the SET NOCOUNT ON nuance would be helpfull to include within the documentation. I'll add a note to the pertinent topics for the next build.&lt;/P&gt;&lt;P&gt;But regardless, the forum is the best place to look for these tyeps of nuances and tips for the framework. The CHM documentation simply can't compete with the depth of topics and tricks contributed by the users and SF staff.</description><pubDate>Tue, 02 Sep 2008 14:13:05 GMT</pubDate><dc:creator>Dustin Taylor</dc:creator></item><item><title>RE: Concurrency error occuring when UpdateConcurrencyType is Off</title><link>http://forum.strataframe.net/FindPost18879.aspx</link><description>Never mind - the problem was caused by this line at the top of the stored procedure:&lt;/P&gt;&lt;P&gt;SET NOCOUNT ON&lt;/P&gt;&lt;P&gt;It would be nice if these nuances were documented somewhere.</description><pubDate>Mon, 01 Sep 2008 15:33:26 GMT</pubDate><dc:creator>Marcia G Akins</dc:creator></item></channel></rss>