<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>My approval Task duplicates the item with a new value in the Status field instead of udating it only with the new value in Status field</title><link>https://community.appian.com/discussions/f/process/24729/my-approval-task-duplicates-the-item-with-a-new-value-in-the-status-field-instead-of-udating-it-only-with-the-new-value-in-status-field</link><description>Hello everyone! 
 So when I create a new product It has the value &amp;quot;New&amp;quot; as default in the Status field. 
 After that it goes throw a Approval Task where the Supervisor has to decide if it is ACCEPTED or REJECTED. 
 Then it should update the Status field</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: My approval Task duplicates the item with a new value in the Status field instead of udating it only with the new value in Status field</title><link>https://community.appian.com/thread/95635?ContentTypeID=1</link><pubDate>Fri, 27 May 2022 15:53:42 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9701e802-513a-4606-ae83-7441b4a0a4fc</guid><dc:creator>Chamej</dc:creator><description>&lt;p&gt;Do you think the problem might be in my approval interface? Since the only value that it&amp;#39;s not getting is the ID:&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/14/6305.PNG" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Maybe I need to fix the ID fields (highlited in the next screenshot)?&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/14/5756.PNG" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Because checking the tutorial, eventhough they are using a reusable interface and I&amp;#39;m not, they use a get by ID rule)&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/14/8461.PNG" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: My approval Task duplicates the item with a new value in the Status field instead of udating it only with the new value in Status field</title><link>https://community.appian.com/thread/95633?ContentTypeID=1</link><pubDate>Fri, 27 May 2022 15:16:29 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:24d58e3b-e261-4fbc-a0f5-4b0675478079</guid><dc:creator>Chamej</dc:creator><description>&lt;p&gt;Right! So i did select in Output&amp;#39; tab&amp;nbsp;record as target and still doens&amp;#39;t work:&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/14/7380.PNG" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m sending more screenshots to you about the rest of the input/output config for my Task Event and my Update to Data Base:&lt;br /&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/14/1004.PNG" alt=" " /&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/14/0456.PNG" alt=" " /&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/14/8666.PNG" alt=" " /&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/14/2480.PNG" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you sooo much for your time, I really appreciate it&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: My approval Task duplicates the item with a new value in the Status field instead of udating it only with the new value in Status field</title><link>https://community.appian.com/thread/95632?ContentTypeID=1</link><pubDate>Fri, 27 May 2022 14:54:08 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d8afb109-29ef-466b-82cd-3a1252c5bfea</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;Your screenshot is of the Inputs tab. You actually need to configure the value to be saved via the Outputs tab (like you were about to have in your own &lt;a href="/discussions/f/process/24729/my-approval-task-duplicates-the-item-with-a-new-value-in-the-status-field-instead-of-udating-it-only-with-the-new-value-in-status-field/95623#95623"&gt;prior screenshot&lt;/a&gt;).&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/14/pastedimage1653663317339v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="112510" url="~/discussions/f/process/24729/my-approval-task-duplicates-the-item-with-a-new-value-in-the-status-field-instead-of-udating-it-only-with-the-new-value-in-status-field/95631#95631"]in the target value for Results Propoerties in Outputs, i can&amp;#39;t choose =pv!record as a target[/quote]
&lt;p&gt;Can you clarify what you mean by this?&amp;nbsp; I can see it as a dropdown selection in your pior screenshot.&amp;nbsp; You just need to select it(??)&lt;br /&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/14/pastedimage1653663400530v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: My approval Task duplicates the item with a new value in the Status field instead of udating it only with the new value in Status field</title><link>https://community.appian.com/thread/95631?ContentTypeID=1</link><pubDate>Fri, 27 May 2022 14:26:23 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:45181125-ffa6-41ed-b0aa-7f974ce84463</guid><dc:creator>Chamej</dc:creator><description>&lt;p&gt;But in the target value for Results Propoerties in Outputs, i can&amp;#39;t choose =pv!record as a target, since as you can see in my last screenshot, I can only select a target from the dropdown list. &lt;span class="emoticon" data-url="https://community.appian.com/cfs-file/__key/system/emoji/1f61e.svg" title="Disappointed"&gt;&amp;#x1f61e;&lt;/span&gt;&lt;br /&gt;I&amp;#39;ve selected Taget: record from that dropdown list, and nothing changed.&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/14/7115.PNG" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;This is a screenshot from my first Write to Data Story, where the item is added.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: My approval Task duplicates the item with a new value in the Status field instead of udating it only with the new value in Status field</title><link>https://community.appian.com/thread/95625?ContentTypeID=1</link><pubDate>Fri, 27 May 2022 14:09:16 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ccc77a94-1702-4a13-a886-2abc2d2261a6</guid><dc:creator>laurensw</dc:creator><description>&lt;p&gt;Choose the same value as set in the input parameter value&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/14/pastedimage1653660571242v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: My approval Task duplicates the item with a new value in the Status field instead of udating it only with the new value in Status field</title><link>https://community.appian.com/thread/95623?ContentTypeID=1</link><pubDate>Fri, 27 May 2022 13:56:32 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:46605242-3e4e-4649-aca3-643e683e01ab</guid><dc:creator>Chamej</dc:creator><description>&lt;p&gt;you mean like this Mike? Sorry I&amp;#39;ve never done this before, I&amp;#39;m not sure of what I&amp;#39;m doing here&lt;br /&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/14/WhatsApp-Image-2022_2D00_05_2D00_27-at-3.56.13-PM.jpeg" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: My approval Task duplicates the item with a new value in the Status field instead of udating it only with the new value in Status field</title><link>https://community.appian.com/thread/95622?ContentTypeID=1</link><pubDate>Fri, 27 May 2022 13:51:48 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:031f7795-2d21-448c-82a5-4be6d367d3c6</guid><dc:creator>laurensw</dc:creator><description>&lt;p&gt;Now set the correct process variable (the one that is missing its ID now) as target value.&lt;/p&gt;
&lt;p&gt;Upon the next instance of the process model, your problem should be solved.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: My approval Task duplicates the item with a new value in the Status field instead of udating it only with the new value in Status field</title><link>https://community.appian.com/thread/95621?ContentTypeID=1</link><pubDate>Fri, 27 May 2022 13:39:23 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:df411738-da80-47d9-ab92-6801a93015aa</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;The highlighted output needs to save back into the in-process CDT PV.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: My approval Task duplicates the item with a new value in the Status field instead of udating it only with the new value in Status field</title><link>https://community.appian.com/thread/95620?ContentTypeID=1</link><pubDate>Fri, 27 May 2022 13:11:01 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9fe7fbd1-2d8c-437f-99cd-c5054c572f47</guid><dc:creator>Chamej</dc:creator><description>&lt;p&gt;Here you go!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/14/1374.PNG" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: My approval Task duplicates the item with a new value in the Status field instead of udating it only with the new value in Status field</title><link>https://community.appian.com/thread/95617?ContentTypeID=1</link><pubDate>Fri, 27 May 2022 12:47:09 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6943e406-a6a0-41dd-bbde-74b1f5edb148</guid><dc:creator>laurensw</dc:creator><description>&lt;p&gt;Your elaboration indeed fits my description. Can you share a screenshot of the Data Outputs tab of the first Write to DB node in your process?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;We need to have the process variable registered as the result target.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: My approval Task duplicates the item with a new value in the Status field instead of udating it only with the new value in Status field</title><link>https://community.appian.com/thread/95615?ContentTypeID=1</link><pubDate>Fri, 27 May 2022 12:30:48 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8b88ce3d-cd03-4a71-9415-bdcb293abbc2</guid><dc:creator>Chamej</dc:creator><description>&lt;p&gt;That makes sense, because when I create a new Item, it generetes an ID, I can see it in the record as shown in the first image, and also in the summary, as I show here:&lt;br /&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/14/3581.PNG" alt=" " /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;So&amp;nbsp;the summary interface works.&lt;br /&gt;But then in the Approval Interface there must be some kind of mistake, because when I open the task to Aproove it, it doesn&amp;#39;t show the ID:&lt;br /&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/14/78766.PNG" alt=" " /&gt;&lt;br /&gt;&lt;br /&gt;I understand what you say, but i can&amp;#39;t find the mistake, this is the process detail of this second test made:&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/14/7215.PNG" alt=" " /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;So I guess I need to assign a value to the ID in the approval fase, and it has to be the ID of the item to be approved, but how can I do that?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: My approval Task duplicates the item with a new value in the Status field instead of udating it only with the new value in Status field</title><link>https://community.appian.com/thread/95614?ContentTypeID=1</link><pubDate>Fri, 27 May 2022 12:16:56 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b4a36f38-6f80-4461-a047-ef247064a9ba</guid><dc:creator>laurensw</dc:creator><description>&lt;p&gt;The problem here is most likely that you lose the id of the record somewhere in the interface/process.&lt;/p&gt;
&lt;p&gt;That is the reason why a new row appears; a new id is assigned to the updated version of the already existing record upon saving to database.&lt;/p&gt;
&lt;p&gt;Therefore I suggest check each step the data flows through in order to see where exactly the id of the item is lost.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;My guess:&amp;nbsp; it is the first write to DB node at which the variable is not mapped as data output result. If so, the initially written ID is not returned in the process variable.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>