<?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>SFTP File xlsx</title><link>https://community.appian.com/discussions/f/process/19689/sftp-file-xlsx</link><description>Hi, 
 We are having problems to control if the file (xlsx) that they leave us in the STFT exists or not. If it exists nothing happens and the process works fine, but if it does not exist it gives an error, we do not know how to control it without failing</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: SFTP File xlsx</title><link>https://community.appian.com/thread/77317?ContentTypeID=1</link><pubDate>Fri, 16 Oct 2020 15:47:36 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7c378b3e-6fd5-489d-a181-2d791ebd679c</guid><dc:creator>Scott Milton</dc:creator><description>&lt;p&gt;In the receive file over sftp node, make sure that the &lt;span&gt;AC!newDocument is saved into a PV, such as pv!newDocument.&amp;nbsp; &amp;nbsp;Then right&amp;nbsp;a&lt;/span&gt;fter the receive File over SFTP, add an XOR gateway with the condition based on&amp;nbsp;isNull(pv!newDocument).&amp;nbsp; This gateway can then be used&amp;nbsp; for how your process&amp;nbsp;should behave whether the file was successfully downloaded or not.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you are worried about a &amp;quot;File Not Found&amp;quot; error from the Receive File Over SFTP node, you can try using the Get Remote Directory Contents first (to get the list of available files) to see if the file exists first before attempting to download.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>