<?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>pass an auto increment primary key field to sub process</title><link>https://community.appian.com/discussions/f/new-to-appian/23323/pass-an-auto-increment-primary-key-field-to-sub-process</link><description>I have a PK field called requestId under request Entity. I want to pass the value of this requestId to the subprocess. 
 I already tried making the subprocess synchronous and also tried putting stored values to a process variable but to no avail. 
 
</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: pass an auto increment primary key field to sub process</title><link>https://community.appian.com/thread/89543?ContentTypeID=1</link><pubDate>Fri, 07 Jan 2022 12:03:44 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1d57c8bc-ba47-40ad-835c-55273c96b06f</guid><dc:creator>saarcenal</dc:creator><description>&lt;p&gt;Thank you Stefan! This fixed the problem!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: pass an auto increment primary key field to sub process</title><link>https://community.appian.com/thread/89542?ContentTypeID=1</link><pubDate>Fri, 07 Jan 2022 11:53:05 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ff30f75b-6ba5-4a2f-92d1-89766e1a7d61</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;OK. This is a very common mistake. The data written to DB is read back and available in the &amp;quot;Stored Values&amp;quot;.&lt;/p&gt;
&lt;p&gt;Before you change that, make sure to remove the &amp;quot;Save Into&amp;quot; in the inputs. Using both would lead to a race condition as both assignments want to write to the same process variable.&lt;/p&gt;
&lt;p&gt;Then select your pv!request as target to the &amp;quot;Stored Values&amp;quot;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: pass an auto increment primary key field to sub process</title><link>https://community.appian.com/thread/89541?ContentTypeID=1</link><pubDate>Fri, 07 Jan 2022 11:47:19 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:82160f64-6cbd-48c3-ae36-5892c2ce289d</guid><dc:creator>saarcenal</dc:creator><description>&lt;p&gt;Hi Stefan,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;This is the data I/O under the write to request entity.&amp;nbsp; As for the variables, all values under request were filled correctly except the requestId (PK).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;requestId=,&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Input&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/62/pastedimage1641555856342v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Output&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/62/pastedimage1641555864842v2.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: pass an auto increment primary key field to sub process</title><link>https://community.appian.com/thread/89538?ContentTypeID=1</link><pubDate>Fri, 07 Jan 2022 10:01:33 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:72ce53b8-ab03-4606-a300-162bb81419a3</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;If the initial insert into DB is done in the node &amp;quot;Write to CRP_Request Entity&amp;quot; then I would like to see screenshots of the data inputs and outputs. Did you check in process monitoring whether the process variables look like expected?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>