<?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>FileUploadField</title><link>https://community.appian.com/discussions/f/user-interface/10597/fileuploadfield</link><description>Hi All, 
 We are getting this error while submitting the form which contains File Upload Field in 17.2 version. 
 Interface Definition: Expression evaluation error at function a!fileUploadField [line 53]: Error in a!forEach() expression during iteration</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: FileUploadField</title><link>https://community.appian.com/thread/90839?ContentTypeID=1</link><pubDate>Tue, 08 Feb 2022 19:58:19 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:82493478-8bbd-47fd-bb68-87080a6d7102</guid><dc:creator>umaisa khan</dc:creator><description>&lt;p&gt;its simple. Declare a local variable . In value and saveinto parameters pass that local variable. At last in submit button save local variable into rule input.&amp;nbsp; Done&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FileUploadField</title><link>https://community.appian.com/thread/47371?ContentTypeID=1</link><pubDate>Mon, 07 Aug 2017 10:46:56 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4e914b0d-1aba-4195-ba8c-726908307711</guid><dc:creator>sravanis</dc:creator><description>Hi namratak356,&lt;br /&gt;
&lt;br /&gt;
Go through the below link, it may be helps you. &lt;br /&gt;
&lt;a href="https://docs.appian.com/suite/help/17.2/File_Upload_Component.html"&gt;docs.appian.com/.../File_Upload_Component.html&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
thanks,&lt;br /&gt;
sravanis.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FileUploadField</title><link>https://community.appian.com/thread/47312?ContentTypeID=1</link><pubDate>Fri, 04 Aug 2017 02:47:51 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9fe318e6-08fb-4210-a867-d6cd67167faa</guid><dc:creator>sonalk</dc:creator><description>Hi namratak356 ,&lt;br /&gt;
&lt;br /&gt;
How did you resolve the above issue? Can you please guide me.&lt;br /&gt;
&lt;br /&gt;
Thanks,&lt;br /&gt;
Sonal&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FileUploadField</title><link>https://community.appian.com/thread/47054?ContentTypeID=1</link><pubDate>Tue, 25 Jul 2017 13:49:36 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:fcc859bd-6c58-4a89-92c7-fa5f4c244f34</guid><dc:creator>Pitla Mahesh</dc:creator><description>If I am not wrong the ri variable which we are using to capture the  document Id should be of type document  and in further usage we can use integer type to save it and this file upload  supports only in start forms and tasks forms.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FileUploadField</title><link>https://community.appian.com/thread/46289?ContentTypeID=1</link><pubDate>Wed, 21 Jun 2017 12:32:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:69217ea3-8a2d-4e73-b254-ecef60659f3a</guid><dc:creator>sergeiz</dc:creator><description>&amp;gt; the input that is mapped to process acps or pvs must be of type document&lt;br /&gt;
&lt;br /&gt;
AC must be of type Document. Then you can save them into pvs of type integer.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FileUploadField</title><link>https://community.appian.com/thread/46288?ContentTypeID=1</link><pubDate>Wed, 21 Jun 2017 12:27:26 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0cd20529-b811-48b5-a4e4-a0ef75e82144</guid><dc:creator>Rama Thummala</dc:creator><description>The type is not an issue...Type casting will happen automatically here..But the input that is mapped to process acps or pvs must be of type document, then only the document(s) will go to KC and permanent ids gets generated.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FileUploadField</title><link>https://community.appian.com/thread/46287?ContentTypeID=1</link><pubDate>Wed, 21 Jun 2017 12:16:42 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4c648855-79fb-4481-8d98-337018609a01</guid><dc:creator>sergeiz</dc:creator><description>Ok. In this case the array should contain Document type, not Numbers. And they will be updated with the permanent file ids.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FileUploadField</title><link>https://community.appian.com/thread/46286?ContentTypeID=1</link><pubDate>Wed, 21 Jun 2017 12:12:02 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:767547ef-0087-4652-91ee-9a1c4c1b0d31</guid><dc:creator>Josh</dc:creator><description>File upload fields support multiple files in 17.2, which is why you see an array in the example above.&lt;br /&gt;
&lt;br /&gt;
&lt;a href="https://docs.appian.com/suite/help/17.2/File_Upload_Component.html"&gt;docs.appian.com/.../File_Upload_Component.html&lt;/a&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FileUploadField</title><link>https://community.appian.com/thread/46285?ContentTypeID=1</link><pubDate>Wed, 21 Jun 2017 12:09:26 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:13b6701d-c688-46af-aebd-654cf29ee291</guid><dc:creator>sergeiz</dc:creator><description>Why do you save it into array? FileUploadField works with one file.&lt;br /&gt;
&lt;br /&gt;
&lt;a href="https://forum.appian.com/suite/help/16.3/SAIL_Components.html#FileUpload"&gt;forum.appian.com/.../SAIL_Components.html&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
The permanent document id will be available when the user input task is finished. Variables of Document type will be update and you can use them. Integers are not updated and produce errors.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FileUploadField</title><link>https://community.appian.com/thread/46281?ContentTypeID=1</link><pubDate>Wed, 21 Jun 2017 10:15:06 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:aa9d3319-75ed-4ce1-a496-726390b639bf</guid><dc:creator>Shivam Gupta</dc:creator><description>&lt;p&gt;where did you have used forEach expression . Can you brief me.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Otherwise I have tested this is running perfectly fine.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FileUploadField</title><link>https://community.appian.com/thread/46275?ContentTypeID=1</link><pubDate>Wed, 21 Jun 2017 05:51:45 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:47da5b11-0cd0-45c5-bbb4-6acf7915ccee</guid><dc:creator>namratak356</dc:creator><description>Here is the code snippet &lt;br /&gt;
-------------------------------------------------------------------------------&lt;br /&gt;
a!sectionLayout(&lt;br /&gt;
        contents:{&lt;br /&gt;
          a!fileUploadField(&lt;br /&gt;
  label: &amp;quot;Supporting Documents:&amp;quot;,&lt;br /&gt;
  target: cons!REQUEST_DOC_FOLDER,&lt;br /&gt;
  value: ri!documentIds,&lt;br /&gt;
  saveInto: {&lt;br /&gt;
    ri!documentIds&lt;br /&gt;
    &lt;br /&gt;
  }&lt;br /&gt;
)&lt;br /&gt;
        }&lt;br /&gt;
      )&lt;br /&gt;
-----------------------------------------------------------------------&lt;br /&gt;
ri!documentIds--&amp;gt;Number(Integer)Array&lt;br /&gt;
When I am submitting the form it is giving error:&lt;br /&gt;
Could not display interface. Please check definition and inputs.&lt;br /&gt;
Interface Definition: Expression evaluation error at function a!fileUploadField [line 154]: Error in a!forEach() expression during iteration 1: Expression evaluation error at function fn!content_appian_internal [line 12]: Error evaluating function fn!content_appian_internal : Invalid Content ID&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FileUploadField</title><link>https://community.appian.com/thread/46264?ContentTypeID=1</link><pubDate>Tue, 20 Jun 2017 17:21:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d859c8eb-dba7-4099-855d-ca516bdc3b40</guid><dc:creator>Jacob Grafenstein</dc:creator><description>I think the previously submitted replies are correct, but I&amp;#39;d just like to provide a little clarification on the matter. When you upload a document inside of a SAIL form, Appian generates a temporary document ID. It isn&amp;#39;t until the form is submitted that Appian grants an uploaded document a permanent ID that can be used to reference the document. So, if you are attempting to reference the document ID inside of the foreach function, you&amp;#39;ll run into issues because Appian will be attempting to look for a document that has not yet been persisted in the system. Consider chaining two forms together in your process model to reference a document ID that has been uploaded.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FileUploadField</title><link>https://community.appian.com/thread/46250?ContentTypeID=1</link><pubDate>Tue, 20 Jun 2017 12:49:23 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ffb284db-aef4-4b13-9476-f63017e1d116</guid><dc:creator>abhinavg712</dc:creator><description>&lt;a href="/members/namratak356"&gt;namratak356&lt;/a&gt;  are you trying to look for temporary document id in your code as Appian generates a temp doc/content ID initially  before the document is being persisted in the DMS&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FileUploadField</title><link>https://community.appian.com/thread/46249?ContentTypeID=1</link><pubDate>Tue, 20 Jun 2017 11:53:45 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d148b538-b9d2-41b0-990a-75def744264b</guid><dc:creator>Rama Thummala</dc:creator><description>Hi &lt;a href="/members/namratak356"&gt;namratak356&lt;/a&gt; ,&lt;br /&gt;
&lt;br /&gt;
Can you please share your code snippet here?&lt;br /&gt;
I am suspecting that the issue due to referencing the document or it&amp;#39;s id (inside forEach() )before submitting the form.Make sure the uploaded document should be submitted to the process model before trying to access it.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>