<?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>Document upload field</title><link>https://community.appian.com/discussions/f/user-interface/21613/document-upload-field</link><description>Interface Definition: Expression evaluation error [evaluation ID = af95d:a8823] : An error occurred while executing a save: Expression evaluation error: The save target must be a local variable that does not refresh on every evaluation or on an interval</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Document upload field</title><link>https://community.appian.com/thread/84521?ContentTypeID=1</link><pubDate>Thu, 12 Aug 2021 10:47:08 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:bcd0e6ec-ff20-4144-b448-a5c7995d783d</guid><dc:creator>gaddamv0001</dc:creator><description>&lt;p&gt;Yeah sure will try to simplify it. Thank you for your time and suggestions&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Document upload field</title><link>https://community.appian.com/thread/84520?ContentTypeID=1</link><pubDate>Thu, 12 Aug 2021 10:42:55 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:61992b34-05b7-413d-bc25-2fbcfdb212ab</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;In your code, I do not see any multiple lists ...&lt;/p&gt;
&lt;p&gt;This feels like a rather complicated design and you being stuck.&lt;/p&gt;
&lt;p&gt;I suggest to try to simplify it, ensure your data structures fit the purpose and also check the other hints I made.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Document upload field</title><link>https://community.appian.com/thread/84517?ContentTypeID=1</link><pubDate>Thu, 12 Aug 2021 09:44:42 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:dddcb5a8-4de7-4768-9ef7-b29a84295b32</guid><dc:creator>gaddamv0001</dc:creator><description>&lt;p&gt;Here actually I have a list and I have an option to add multiple lists. So for example, if i have list 1 and i upload 2 documents in it and i have list 2 and i upload 3 documents in&amp;nbsp; it should show me like&amp;nbsp;&lt;/p&gt;
&lt;p&gt;List 1 - Document 1&lt;/p&gt;
&lt;p&gt;List 1- Document 2&lt;/p&gt;
&lt;p&gt;List 2 - Document 1&lt;/p&gt;
&lt;p&gt;List 2 - Document 2&amp;nbsp;&lt;/p&gt;
&lt;p&gt;List 2 - Document 3&amp;nbsp;&lt;/p&gt;
&lt;p&gt;So when i trying to add a new list the documents in the previous list are generated. So that is why I used foreach to generate new (multiple) upload file fields for each different list .(Actually, i used transient value in my CDT .)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Document upload field</title><link>https://community.appian.com/thread/84510?ContentTypeID=1</link><pubDate>Thu, 12 Aug 2021 09:30:04 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1bfe7980-16be-43a6-b7e8-e04615be43e4</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;OK. So your ri!document is a multiple of SHA_document. Inside SHA_document is a single integer field called documentId.&lt;/p&gt;
&lt;p&gt;That should work in general. Looking a bit deeper in your code, I see some potential issues.&lt;/p&gt;
&lt;p&gt;For the value parameter you use a local variable, while for the saveInto your use fv!item.&lt;/p&gt;
&lt;p&gt;The addRowLink looks pretty complicated. What is that forEach() doing?&lt;/p&gt;
&lt;p&gt;Line 11 looks like&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;{
                                if(
                                  ri!isReadOnly,
                                  ri!Document,
                                  if(rule!FCO_isNullOrBlank(ri!Document),
                                  null(),
                                  ri!Document[wherecontains(local!mappingId,ri!Document.mappingKey)]
                                  )),},&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;What are the enclosing curly brackets doing? This might lead to a data structure that is a list containing a list of documents. Then fv!item is not a document, but rather a list of documents.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Document upload field</title><link>https://community.appian.com/thread/84508?ContentTypeID=1</link><pubDate>Thu, 12 Aug 2021 09:15:07 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7174add1-639e-4db5-bb13-438ac7e8347b</guid><dc:creator>gaddamv0001</dc:creator><description>&lt;p&gt;yes the appianDocId is an integer field in a document CDT and yes its is multiple&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Document upload field</title><link>https://community.appian.com/thread/84507?ContentTypeID=1</link><pubDate>Thu, 12 Aug 2021 08:11:05 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3c0cd9b6-7001-49bd-a148-f2f0b7857d14</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Is the field appianDocId a CDT type or an integer? Is it multiple?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Document upload field</title><link>https://community.appian.com/thread/84506?ContentTypeID=1</link><pubDate>Thu, 12 Aug 2021 08:03:16 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:15b8f561-bd52-46fc-988b-9da738d91ff5</guid><dc:creator>gaddamv0001</dc:creator><description>&lt;p&gt;When I tried I am facing the index error.&lt;/p&gt;
&lt;p&gt;Actually here appianDocId is the field where I save the uploaded documents&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Document upload field</title><link>https://community.appian.com/thread/84505?ContentTypeID=1</link><pubDate>Thu, 12 Aug 2021 08:01:44 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e7a658ad-490a-4c9b-a56c-447adab83d72</guid><dc:creator>gaddamv0001</dc:creator><description>&lt;p&gt;&lt;img alt=" " border="0" src="/cfs-file/__key/communityserver-discussions-components-files/13/7028.Capture.PNG" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Document upload field</title><link>https://community.appian.com/thread/84504?ContentTypeID=1</link><pubDate>Thu, 12 Aug 2021 07:48:39 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f698d9d1-096b-4fcb-b663-2349f97b728a</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Following the error message, the saveInto in line 29 should be more like&lt;/p&gt;
&lt;p&gt;fv!item.appianDocId.documentId&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>