I am polling from SFTP in mulesoft every second,fileAge is set to 0, connection pool size is 1 and autodelete is enabled. Then i save the file to the directory within a File connector which is polling ever 2 seconds and file age is 500(This is the outbound endpoint. Then the next flow starts with this same directory as File inbound endpoint and process the file. Here is polling set to every 3 seconds and autodelete is enabled.I get this error but file is processed..
java.io.IOException: The requested file does not exist (//file/7ggot1517.txt)
at org.mule.transport.sftp.SftpClient.getSize(SftpClient.java:499)
at org.mule.transport.sftp.SftpClient.retrieveFile(SftpClient.java:378)
...
Does anyone have some knowledge how to configure sftp and file connector to :
1.Read File From SFTP and delete it from SFTP
2.Process the File from local directory and delete it?
3.Get rid of that error
Thank you
<flow name="pullFromSftpFlow"> <sftp:inbound-endpoint connector-ref="SFTP" host="${ftp.host}" port="${ftp.port}" path="${ftp.path}" user="${ftp.user}" password="${ftp.password}" doc:name="SFTP" responseTimeout="10000"/> <file:outbound-endpoint path="C://SFTP" outputPattern="#[message.inboundProperties.originalFilename]" connector-ref="File2" responseTimeout="10000" doc:name="File"/> </flow>
– MarkyMark<file:connector name="File2" autoDelete="false" streaming="false" validateConnections="true" doc:name="File" pollingFrequency="2000"/
and the setting of SFTP ispolling frequency 1000,fileAge:0,autodelete:true,sizeCheckwaitTime:0
– MarkyMark<file:inbound-endpoint path="C://SFTP" connector-ref="File" responseTimeout="10000" encoding="US-ASCII" doc:name="File" pollingFrequency="3000" autoDelete="true"> </file:inbound-endpoint> <set-variable variableName="fileName" value="#[flowVars.originalFilename]" doc:name="Save fileName"/> <logger message="#["File obatained : " +flowVars.fileName]" level="INFO" doc:name="Logger"/>
and then it goes to processing of that file.. hope you can help :) – MarkyMark