<?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>transient value is not getting saved after the process model is debugged</title><link>https://community.appian.com/discussions/f/process/21429/transient-value-is-not-getting-saved-after-the-process-model-is-debugged</link><description>Hi, 
 I used a transient value in my CDT&amp;#39;s, I able to see all the values while i am debugging the process model except the transient value, can you guys please help me with this issue. I did not get any errors but still, I am not getting the value their</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: transient value is not getting saved after the process model is debugged</title><link>https://community.appian.com/thread/83870?ContentTypeID=1</link><pubDate>Tue, 20 Jul 2021 16:35:29 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:fccf8a2e-e1c8-4c5e-9ec0-39e9e9989eef</guid><dc:creator>t v s satyanarayana rao</dc:creator><description>&lt;p&gt;Hi mamathak001,&lt;/p&gt;
&lt;p&gt;Hope this might be helpful,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Use a script task ,&lt;/p&gt;
&lt;p&gt;create a new custom output , in the expression editor , use this code&lt;/p&gt;
&lt;p&gt;Expression: repeat(count(&lt;span&gt;pv!ammenities&lt;/span&gt;),&lt;span&gt;pv!list.listingId&lt;/span&gt;)&lt;/p&gt;
&lt;p&gt;saveInto :&amp;nbsp;&lt;span&gt;pv!ammenities&lt;/span&gt;&lt;span&gt;.listingIdFk&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Process Flow:&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;1 Write to DB (list)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;2. Script Task (in the Data , create a new custom output and use the above code)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;3. Write to DB (ammenities)&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: transient value is not getting saved after the process model is debugged</title><link>https://community.appian.com/thread/83723?ContentTypeID=1</link><pubDate>Thu, 15 Jul 2021 11:44:04 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c5353360-1df5-4052-940a-ca993becd696</guid><dc:creator>mamathak0001</dc:creator><description>&lt;p&gt;then mapping key value will be empty right in the variable tab right.&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/14/pastedimage1626349428800v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: transient value is not getting saved after the process model is debugged</title><link>https://community.appian.com/thread/83717?ContentTypeID=1</link><pubDate>Thu, 15 Jul 2021 10:24:18 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1a9c267c-61fa-41d4-b407-5d068dea3be0</guid><dc:creator>Selvakumar Kumarasamy</dc:creator><description>&lt;p&gt;Oh okay, sorry I forgot about that transient. Now I got the issue. The output of the node stores the value that it got from the database as a result of the write operation.&lt;/p&gt;
&lt;p&gt;So in your case, the transient value will not be there in the database. Hence null is stored in the CDT.&lt;/p&gt;
&lt;p&gt;If your use-case is just to store the primary key in the variable, then I would suggest creating a new output mapping like - index(ac!storedValues,&amp;quot;listingId&amp;quot;,null()) &amp;amp; into the respective field of the CDT.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: transient value is not getting saved after the process model is debugged</title><link>https://community.appian.com/thread/83713?ContentTypeID=1</link><pubDate>Thu, 15 Jul 2021 10:09:07 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c2199483-216b-4676-bc3c-90ca93638cb7</guid><dc:creator>mamathak0001</dc:creator><description>&lt;p&gt;please don&amp;#39;t mind if I am wrong&amp;nbsp;&lt;/p&gt;
&lt;p&gt;1.I am not using the transient value in the database it is only up to my database entity as per my requirement&lt;/p&gt;
&lt;p&gt;so I am using the XSD code as&lt;/p&gt;
&lt;p&gt;&amp;lt;xsd:element name=&amp;quot;mappingKey&amp;quot; nillable=&amp;quot;true&amp;quot; type=&amp;quot;xsd:int&amp;quot;&amp;gt;&lt;br /&gt; &amp;lt;xsd:annotation&amp;gt;&lt;br /&gt; &amp;lt;xsd:appinfo source=&amp;quot;appian.jpa&amp;quot;&amp;gt;@Transient&amp;lt;/xsd:appinfo&amp;gt;&lt;br /&gt; &amp;lt;/xsd:annotation&amp;gt;&lt;br /&gt; &amp;lt;/xsd:element&amp;gt;&lt;/p&gt;
&lt;p&gt;2.yes it is done correctly and published with recent version of the CDT only&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: transient value is not getting saved after the process model is debugged</title><link>https://community.appian.com/thread/83712?ContentTypeID=1</link><pubDate>Thu, 15 Jul 2021 10:03:02 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a89cbf12-d832-4058-803d-22d98c8d679f</guid><dc:creator>Selvakumar Kumarasamy</dc:creator><description>&lt;p&gt;No worries! Just a couple of questions from my end:&lt;br /&gt;&lt;br /&gt;1. Is the value stored in the database correctly?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;2. Is the XSD mapping done correctly in the CDT? Is the datastore published with the recent version of the CDT?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: transient value is not getting saved after the process model is debugged</title><link>https://community.appian.com/thread/83661?ContentTypeID=1</link><pubDate>Wed, 14 Jul 2021 15:47:52 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:bb2f58bb-29c0-4131-b2f8-fe864d335aa0</guid><dc:creator>mamathak0001</dc:creator><description>&lt;p&gt;as you suggested I checked the inputs and output tab I unable to find the error will you please check sorry for asking you again&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/14/pastedimage1626277704075v1.png" alt=" " /&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/14/pastedimage1626277721833v2.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: transient value is not getting saved after the process model is debugged</title><link>https://community.appian.com/thread/83650?ContentTypeID=1</link><pubDate>Wed, 14 Jul 2021 11:34:11 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2eff4e89-c58a-4859-b922-491f0ef91a01</guid><dc:creator>mamathak0001</dc:creator><description>&lt;p&gt;thank you so much, it helped me&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: transient value is not getting saved after the process model is debugged</title><link>https://community.appian.com/thread/83645?ContentTypeID=1</link><pubDate>Wed, 14 Jul 2021 07:39:18 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:50754f14-0316-4aee-a3a1-15f7a38839b4</guid><dc:creator>Selvakumar Kumarasamy</dc:creator><description>&lt;p&gt;&lt;a href="/members/mamathak0001"&gt;mamathak0001&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I think the issue is in your &lt;strong&gt;Write to Data Store Entity Node&lt;/strong&gt;. It&amp;#39;s clearly visible that the variable has the value in your script task &amp;amp; after the Write to DSE node the variable value is overridden. I suggest you to check the inputs&amp;amp; outputs tab of this node.&lt;/p&gt;
&lt;p&gt;Since the value in your list variable is null, it is being updated as null in your &lt;span&gt;other&amp;nbsp;&lt;/span&gt;variable as well.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/14/pastedimage1626248258645v1.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: transient value is not getting saved after the process model is debugged</title><link>https://community.appian.com/thread/83644?ContentTypeID=1</link><pubDate>Wed, 14 Jul 2021 07:33:33 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:464a3a9a-1ea8-452e-b82a-ad1ed67b6ad7</guid><dc:creator>mamathak0001</dc:creator><description>&lt;p&gt;yes&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/14/pastedimage1626248051682v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: transient value is not getting saved after the process model is debugged</title><link>https://community.appian.com/thread/83643?ContentTypeID=1</link><pubDate>Wed, 14 Jul 2021 07:31:16 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3dc9a1c3-3422-4aab-b7ed-c771d3b18587</guid><dc:creator>mamathak0001</dc:creator><description>&lt;p&gt;sorry i forgot to share another screet shot regarding the amenity CDT&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/14/pastedimage1626247909051v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/14/pastedimage1626247923423v2.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/14/pastedimage1626248128155v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;this is the code I have written in expression editor, to get the listingId PRIMARY KEY&amp;nbsp; from list CDT and store into the ammenity CDT&lt;/p&gt;
&lt;p&gt;a!forEach(&lt;br /&gt; pv!ammenities,&lt;br /&gt; a!update(&lt;br /&gt; data: fv!item,&lt;br /&gt; index:&amp;quot;listingIdFk&amp;quot;,&lt;br /&gt; value: index(&lt;br /&gt; pv!list.listingId,&lt;br /&gt; wherecontains(&lt;br /&gt; fv!item.mappingKey,&lt;br /&gt; pv!list.mappingKey&lt;br /&gt; ),&lt;br /&gt; null&lt;br /&gt; )&lt;br /&gt; &lt;br /&gt; )&lt;br /&gt;)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: transient value is not getting saved after the process model is debugged</title><link>https://community.appian.com/thread/83642?ContentTypeID=1</link><pubDate>Wed, 14 Jul 2021 07:30:39 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:91677b17-ea2c-41ed-8d24-37ea24579eed</guid><dc:creator>Selvakumar Kumarasamy</dc:creator><description>&lt;p&gt;Can you please share the other screenshots as well? If you can scroll down, you can see the changes made to the variable by the process&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: transient value is not getting saved after the process model is debugged</title><link>https://community.appian.com/thread/83641?ContentTypeID=1</link><pubDate>Wed, 14 Jul 2021 07:28:16 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:90a8ce9d-cfe0-422c-9dd1-ad62355ffdba</guid><dc:creator>mamathak0001</dc:creator><description>&lt;p&gt;sure&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/14/pastedimage1626247743483v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: transient value is not getting saved after the process model is debugged</title><link>https://community.appian.com/thread/83640?ContentTypeID=1</link><pubDate>Wed, 14 Jul 2021 07:27:22 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:587ebbbe-ff66-45c7-8c20-7ff8ce21eac5</guid><dc:creator>Selvakumar Kumarasamy</dc:creator><description>&lt;p&gt;If possible, can you please share the screenshots of your process history view?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: transient value is not getting saved after the process model is debugged</title><link>https://community.appian.com/thread/83638?ContentTypeID=1</link><pubDate>Wed, 14 Jul 2021 07:23:13 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6f7e53f9-da14-4108-8761-d9a80ba37078</guid><dc:creator>mamathak0001</dc:creator><description>&lt;p&gt;I did not do any update to that particular variable, I&amp;nbsp; updated only the audit fields.&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/14/pastedimage1626247416144v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/14/pastedimage1626247443077v2.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: transient value is not getting saved after the process model is debugged</title><link>https://community.appian.com/thread/83637?ContentTypeID=1</link><pubDate>Wed, 14 Jul 2021 07:18:51 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1a386965-2f90-49c4-985d-61972fdc5a11</guid><dc:creator>Selvakumar Kumarasamy</dc:creator><description>&lt;p&gt;If you&amp;#39;re able to see it first, then the value might have been overridden in the process flow. Have you traversed through all the updates done to that variable?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: transient value is not getting saved after the process model is debugged</title><link>https://community.appian.com/thread/83636?ContentTypeID=1</link><pubDate>Wed, 14 Jul 2021 07:15:20 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d9b6087b-c4a8-4fb2-9533-0187d4e43658</guid><dc:creator>mamathak0001</dc:creator><description>&lt;p&gt;thank you&amp;nbsp;&lt;a class="internal-link view-user-profile" href="/members/selvakumark"&gt;Selvakumar Kumarasamy&lt;/a&gt;,I able to see the values in the process history but Y those values r not storing in the process variable may know the reason please&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: transient value is not getting saved after the process model is debugged</title><link>https://community.appian.com/thread/83635?ContentTypeID=1</link><pubDate>Wed, 14 Jul 2021 07:11:39 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:da00a112-3d1e-434d-a92a-b65dd3b70751</guid><dc:creator>Selvakumar Kumarasamy</dc:creator><description>&lt;p&gt;Hi &lt;a href="/members/mamathak0001"&gt;mamathak0001&lt;/a&gt;,&lt;/p&gt;
&lt;p&gt;Did you track the changes in the variable using &lt;strong&gt;Process History&lt;/strong&gt; view? This might help you to find the issue at the process level. Or, if the process history doesn&amp;#39;t have this value, then&amp;nbsp;the change may occur in your interface when you click on any submit button.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>