<?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/"><channel><title>KB-1113 SFTP smart service transfers a blank file to its destination</title><link>https://community.appian.com/support/w/kb/335/kb-1113-sftp-smart-service-transfers-a-blank-file-to-its-destination</link><description /><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>KB-1113 SFTP smart service transfers a blank file to its destination</title><link>https://community.appian.com/support/w/kb/335/kb-1113-sftp-smart-service-transfers-a-blank-file-to-its-destination</link><pubDate>Fri, 24 Feb 2017 13:15:39 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f7ac295c-219e-4012-807d-a1d3b3039ccf</guid><dc:creator>Nick Vigilante</dc:creator><comments>https://community.appian.com/support/w/kb/335/kb-1113-sftp-smart-service-transfers-a-blank-file-to-its-destination#comments</comments><description>Current Revision posted to Appian Knowledge Base by Nick Vigilante on 2/24/2017 1:15:39 PM&lt;br /&gt;
&lt;div class="row content_container"&gt;
&lt;h2 id="symptoms"&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;The SFTP plug-in transfers a blank file to the destination and the following error is seen in the application server log:&lt;/p&gt;
&lt;pre&gt;INFO [stdout] (Appian Work Item - 1001118 - ProcessExec01 : UnattendedJavaActivityRequest)  [Appian Work Item - 1001118 - ProcessExec01 : UnattendedJavaActivityRequest] ERROR com.appiancorp.process.engine.UnattendedJavaActivityRequest - An error occurred while executing activity: id=##some number##, classname=com.appian.ps.plugins.sftpsmartservices.SendFileOverSFTPV1
INFO [stdout] (Appian Work Item - 1001118 - ProcessExec01 : UnattendedJavaActivityRequest) com.appiancorp.suiteapi.process.exceptions.SmartServiceException: userMsg[error.file_transfer=Error copying the Appian document to remote server. See application server log for more details.]
INFO [stdout] (Appian Work Item - 1001118 - ProcessExec01 : UnattendedJavaActivityRequest) Caused by: 4: java.io.IOException: inputstream is closed
&lt;/pre&gt;
&lt;h2 id="cause"&gt;Cause&lt;/h2&gt;
&lt;p&gt;This happens to freshly generated documents, which are being transferred immediately after generation (i.e., if the document generation node is linked to the SFTP node). The document hasn&amp;#39;t finished being created yet before the SFTP node is triggered.&lt;/p&gt;
&lt;h2 id="action"&gt;Action&lt;/h2&gt;
&lt;p&gt;Insert a timer between the two nodes with a small value (a minute should be more than enough) and this will make sure that the document is available for transfer before attempting to transfer it.&lt;/p&gt;
&lt;h2 id="affected-versions"&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;Last Reviewed: February 2017&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: plug-ins, application design&lt;/div&gt;
</description></item></channel></rss>