﻿<?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?)  » Data conflict checking inaccurate, and infinite update</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 02:51:31 GMT</lastBuildDate><ttl>20</ttl><item><title>Data conflict checking inaccurate, and infinite update</title><link>http://forum.strataframe.net/FindPost10612.aspx</link><description>Hi,&lt;br&gt;
I faced problem that, SF data collision checking incorrect. Even though that is no data conflict, but SF still show conflict dialog. I select myValue and click save. It caused inifinite loop. I checked Profiler, it keep executing update statement nonstop.&lt;br&gt;
&lt;br&gt;
Any ideas?</description><pubDate>Mon, 30 Jul 2007 09:52:57 GMT</pubDate><dc:creator>Chan</dc:creator></item><item><title>RE: Data conflict checking inaccurate, and infinite update</title><link>http://forum.strataframe.net/FindPost10635.aspx</link><description>Hi,&lt;br&gt;
You could find the screenshot from attachment in post#1 in this thread</description><pubDate>Mon, 30 Jul 2007 09:52:57 GMT</pubDate><dc:creator>Chan</dc:creator></item><item><title>RE: Data conflict checking inaccurate, and infinite update</title><link>http://forum.strataframe.net/FindPost10631.aspx</link><description>What field does the business object think is modified?&amp;nbsp; Can you send a screen shot of the data collision form?</description><pubDate>Mon, 30 Jul 2007 09:21:17 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Data conflict checking inaccurate, and infinite update</title><link>http://forum.strataframe.net/FindPost10629.aspx</link><description>Hi,&lt;br&gt;
The SQL is dynamically generated by SF datalayer.&lt;br&gt;
&lt;br&gt;
I don have any field to keep row version.&lt;br&gt;
&lt;br&gt;
Any ideas?</description><pubDate>Mon, 30 Jul 2007 09:16:26 GMT</pubDate><dc:creator>Chan</dc:creator></item><item><title>RE: Data conflict checking inaccurate, and infinite update</title><link>http://forum.strataframe.net/FindPost10625.aspx</link><description>Is the UPDATE statement being built by the data source dynamically, or is it executing a stored procedure?&amp;nbsp; If it's executing a stored procedure, then make sure that SET NOCOUNT ON is not turned on in the sproc (you might have to explicitly call SET NOCOUNT OFF), since it's the one that is returning the number of records affected.&amp;nbsp; &lt;P&gt;Also, if you have a trigger that is updating the value, and you're using a TIMESTAMP field for concurrency, then each time the trigger modifies the row, the timestamp is also going to change, meaning that the value within the BO is not going to match, so you're going to get a concurrency exception when you update the row again (since the trigger just modified it).&amp;nbsp; If this is the case, consider moving to row versioning; change the timestamp column to an integer column, and tell the business object to use row versioning.</description><pubDate>Mon, 30 Jul 2007 09:02:38 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Data conflict checking inaccurate, and infinite update</title><link>http://forum.strataframe.net/FindPost10616.aspx</link><description>Hi,&lt;br&gt;
After some debugging, I found that, when update my table, the RecordsAffected property value in the following code return 0 which affected by my update trigger.&lt;br&gt;
&lt;br&gt;
[codesnippet]                        '-- We need to execute the first command reader because it's a batch&lt;br&gt;
                        loReader = Me.InternalExecuteReader(loCommand, QueryInfo.IsTransactional, QueryInfo.TransactionKey)&lt;br&gt;
&lt;br&gt;
                        '-- Get the rows affected&lt;br&gt;
                        lnReturn = loReader.RecordsAffected&lt;br&gt;
[/codesnippet]&lt;br&gt;
&lt;br&gt;
I have SET NOCOUNT ON in my trigger, but still not work. Any ideas?&lt;br&gt;
&lt;br&gt;
Thank you</description><pubDate>Sun, 29 Jul 2007 11:04:09 GMT</pubDate><dc:creator>Chan</dc:creator></item></channel></rss>