<?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>How to restrict uploading of duplicate files in Appian Interface ?</title><link>https://community.appian.com/discussions/f/general/25169/how-to-restrict-uploading-of-duplicate-files-in-appian-interface</link><description>I&amp;#39;m trying to use the file upload functionality in Appian Interface and is there any way I can restrict from uploading the file with the same name which already exists in the db or even if it allows the upload is there a way to over write the existing</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to restrict uploading of duplicate files in Appian Interface ?</title><link>https://community.appian.com/thread/97763?ContentTypeID=1</link><pubDate>Thu, 14 Jul 2022 17:16:01 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:aee3cecd-d7e6-4414-84c7-b88a1bf0facd</guid><dc:creator>sharmistav0001</dc:creator><description>&lt;p&gt;Thanks Mike!!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to restrict uploading of duplicate files in Appian Interface ?</title><link>https://community.appian.com/thread/97762?ContentTypeID=1</link><pubDate>Thu, 14 Jul 2022 17:02:12 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:73b22f70-de02-45c5-8257-ea0fe65c039c</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;cool - when you&amp;#39;d mentioned UI Path Bot previously that made me second-guess things, but I&amp;#39;m with you.&amp;nbsp; Basically in that case you&amp;#39;d just set the &amp;quot;target&amp;quot; of the File Upload Field to point to your existing document ID; this will cause the upload (when completed) to add the new file as a new version of the existing document.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to restrict uploading of duplicate files in Appian Interface ?</title><link>https://community.appian.com/thread/97759?ContentTypeID=1</link><pubDate>Thu, 14 Jul 2022 16:52:53 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:91bf99c2-90c3-44ba-bbf8-b9cbeb0eed0d</guid><dc:creator>sharmistav0001</dc:creator><description>&lt;p&gt;via an Appian Interface using the file upload option!!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to restrict uploading of duplicate files in Appian Interface ?</title><link>https://community.appian.com/thread/97758?ContentTypeID=1</link><pubDate>Thu, 14 Jul 2022 16:52:11 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:433a58c4-ca40-4378-9124-2a769bc5c12b</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;Whether the &amp;quot;new version&amp;quot; route is even technically possible depends on the method by which you&amp;#39;re getting the file in your system - can you describe in a bit more detail how you&amp;#39;re doing so?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to restrict uploading of duplicate files in Appian Interface ?</title><link>https://community.appian.com/thread/97757?ContentTypeID=1</link><pubDate>Thu, 14 Jul 2022 16:50:43 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e1cca656-dc91-45c2-bdcd-e2e0888ddf7d</guid><dc:creator>sharmistav0001</dc:creator><description>&lt;p&gt;Thanks for the clear explanation Mike.I would want to try out the new version solution is there any way you can&amp;nbsp; point me out towards working of that&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to restrict uploading of duplicate files in Appian Interface ?</title><link>https://community.appian.com/thread/97668?ContentTypeID=1</link><pubDate>Wed, 13 Jul 2022 13:59:07 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:38bc451f-d9de-4e22-a15e-b2cb5b3de31d</guid><dc:creator>Mike Schmitt</dc:creator><description>[quote userid="104685" url="~/discussions/f/general/25169/how-to-restrict-uploading-of-duplicate-files-in-appian-interface/97667#97667"]I want to over write the existing cumulative file [/quote]
&lt;p&gt;FWIW in Appian there really isn&amp;#39;t such a thing as &amp;quot;overwrite&amp;quot; the same way that it works in Windows and other conventional operating systems. In Appian there&amp;#39;s no restriction on 2 files with identical names in the same folder (since the primary identifier is the Document ID which is always unique and not changeable from the front-end).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The closest thing you have in Appian to &amp;quot;overwriting&amp;quot; is the &amp;quot;new version&amp;quot; functionality, where when adding a document, it can be added as a new version of an existing one (provi1ded the extensions are identical).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You might look into implementing this via &amp;quot;new version&amp;quot;, though it&amp;#39;s not the solution I&amp;#39;d recommend first, honestly.&amp;nbsp; The first thing I&amp;#39;d suggest is to simply rename incoming documents to add a clear, lexically-sortable date stamp to each one (i.e. an iso 8601 style string like &amp;quot;2022-07-13&amp;quot;).&amp;nbsp; You would then simply store all of these documents separately in the same folder, and do what you need from there.&lt;/p&gt;
&lt;p&gt;Further, if you&amp;#39;d like to give yourself increased power and flexibility when finding particular instances of the file, you could have a process add the Doc ID to a field of a bespoke DB table, in which you write a new row each time you receive a new version of the document - along with a &amp;quot;created&amp;quot; DATETIME column which you populate with the current timestamp upon writing.&amp;nbsp; In this way you&amp;#39;d always be easily able to grab the latest uploaded document by using the QueryEntity function to grab the latest row and thus the latest Document ID.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to restrict uploading of duplicate files in Appian Interface ?</title><link>https://community.appian.com/thread/97667?ContentTypeID=1</link><pubDate>Wed, 13 Jul 2022 13:44:25 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:59d7db98-92d6-435b-b562-602a65a3ad8b</guid><dc:creator>sharmistav0001</dc:creator><description>&lt;p&gt;Thanks for your answer Mike.My scenario is that I get a weekly file with a cumulative data from previous weeks with the same name and to make it clear to the user regarding which is the latest file I want to over write the existing cumulative file in the system.(PS:This files are being uploaded by UI Path Bot)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to restrict uploading of duplicate files in Appian Interface ?</title><link>https://community.appian.com/thread/97636?ContentTypeID=1</link><pubDate>Tue, 12 Jul 2022 21:13:05 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:eafe8b6e-dddd-48e4-bbc7-faeeac6a24b8</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;Other than a similar filename (and size in bytes), appian has no particular insight into the &lt;strong&gt;&lt;em&gt;contents&lt;/em&gt;&lt;/strong&gt; of any uploaded file, before (or even really after) promotion to the &amp;quot;proper&amp;quot; internal Appian FS.&amp;nbsp; If it&amp;#39;s enough that you disallow upload of files with the same name and size as existing files, then you could &lt;em&gt;potentially&lt;/em&gt; stir that into the &lt;em&gt;validations&lt;/em&gt; parameter of FileUploadField, though I&amp;#39;d caution that getting the existing name and size properties from any more than a small handfull of extant files in your internal system will get pretty process intensive, pretty quickly.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you share more of the particulars of your use case here we might be able to provide some better, more targeted suggestions.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>