<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wikidot="http://www.wikidot.com/rss-namespace">

	<channel>
		<title>Data Being Added Conflicts error on Save.</title>
		<link>http://www.peoplesoftwiki.com/forum/t-254405/data-being-added-conflicts-error-on-save</link>
		<description>Posts in the discussion thread &quot;Data Being Added Conflicts error on Save.&quot;</description>
				<copyright></copyright>
		<lastBuildDate>Wed, 08 Feb 2012 20:57:46 +0000</lastBuildDate>
		
					<item>
				<guid>http://www.peoplesoftwiki.com/forum/t-254405#post-837096</guid>
				<title>Re: Data Being Added Conflicts error on Save.</title>
				<link>http://www.peoplesoftwiki.com/forum/t-254405/data-being-added-conflicts-error-on-save#post-837096</link>
				<description></description>
				<pubDate>Mon, 26 Jul 2010 20:41:42 +0000</pubDate>
				<wikidot:authorName>MeridianGuy</wikidot:authorName>								<content:encoded>
					<![CDATA[
						 <p>Just to update… I found that the page had a secondary page which had a scroll area (instead of a group box). The scroll area property "No Auto Update" was NOT checked so the processor was doing an auto update in addition to my SQL Insert.</p> <p>The solution was to check the "No Auto Update" on both the grid and the scroll area on the secondary page.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://www.peoplesoftwiki.com/forum/t-254405#post-832657</guid>
				<title>Data Being Added Conflicts error on Save.</title>
				<link>http://www.peoplesoftwiki.com/forum/t-254405/data-being-added-conflicts-error-on-save#post-832657</link>
				<description></description>
				<pubDate>Tue, 20 Jul 2010 00:15:20 +0000</pubDate>
				<wikidot:authorName>MeridianGuy</wikidot:authorName>								<content:encoded>
					<![CDATA[
						 <p>My page has a level 1 grid whose primary record is a "top of stack" view. When the user modifies a "top of stack" row, upon the Save I do a CopyTo(&amp;Rec), where &amp;Rec is the underlying table, then I increment the effdt and effseq appropriately, then do a &amp;Rec.Insert.</p> <p>I am doing this for several grids on the page at the same level, and all grids work fine except this one grid. In all cases, the level 1 scrolls have one extra key than the parent. In this case, the trace shows the &amp;Rec.Insert succeeding, then it attempts the "Select for Update" into the original view giving the original effdt. This doesn't happen for any other grid. All other grids stop after the insert.</p> <p>TRACE FILE:</p> <p>If GetRow().IsChanged Then<br /> &amp;Rec = GetRecord();<br /> If &amp;Rec.EFFDT.Value = %Date And<br /> GetRow().IsNew = False Then<br /> &amp;Rec.EFFSEQ.Value = &amp;Rec.EFFSEQ.Value + 1;<br /> Else<br /> &amp;Rec.EFFDT.Value = %Date;<br /> &amp;Rec.EFFSEQ.Value = 0;<br /> End-If;<br /> …<br /> &amp;REC2 = CreateRecord(Record.ZG_ENT_KC);<br /> &amp;REC2.SetDefault();<br /> &amp;Rec.COPYFIELDSTO(&amp;REC2);<br /> &amp;REC2.Insert();</p> <p>Stmt=INSERT INTO PS_ZG_ENT_KC (ZG_ENTITY_ID,EMPLID,EFFDT,EFFSEQ,EFF_STATUS,PHONE, EMAIL_ADDR,LASTUPDOPRID,LASTUPDDTTM) VALUES (:1,:2,TO_DATE(:3,'YYYY-MM-DD'),:4,:5,:6,:7,:8,TO_TIMESTAMP(:9,'YYYY-MM-DD-HH24.MI.SS.FF'))<br /> value=V0000001<br /> value=7269&nbsp;555<br /> value<br /> 10-07-19<br /> value=0<br /> value=A<br /> value=444/444-4444<br /> value=<br /> value=743156<br /> value<br /> 10-07-19-19.36.34.000000<br /> End-If;</p> <p>Stmt=SELECT ZG_ENTITY_ID, EMPLID, EFFDT, TO_CHAR(EFFDT,'YYYY-MM-DD'), EFFSEQ, EFF_STATUS, PHONE, EMAIL_ADDR, LASTUPDOPRID, TO_CHAR(CAST((LASTUPDDTTM) AS TIMESTAMP),'YYYY-MM-DD-HH24.MI.SS.FF') FROM PS_ZG_ENT_KC_VW WHERE ZG_ENTITY_ID=:1 AND EMPLID=:2 AND EFFDT=TO_DATE(:3,'YYYY-MM-DD') AND EFFSEQ=:4 FOR UPDATE OF EFFDT, PHONE, LASTUPDOPRID, LASTUPDDTTM<br /> value=V0000001<br /> value=7269555value<br /> 10-07-15<br /> value=0</p> 
				 	]]>
				</content:encoded>							</item>
				</channel>
</rss>
