FTP Adapter Only Picks Up File Once Although "Recursive" Is Set To True

(Doc ID 1296819.1)

Last updated on MARCH 08, 2017

Applies to:

Oracle SOA Platform - Version: 11.1.1.3.0 and later   [Release: 11gR1 and later ]
Information in this document applies to any platform.

Goal

You've set up an FTP adapter to read files from an FTP site using SFTP.  When testing, you upload a file onto the FTP server, and this file is picked up successfully and deleted from the polled directory (as expected). You then upload the same file again, but this time the file was not picked up. If you redeploy the SOA composite, the file will be picked up as normal.

The .jca file for your adapter looks something like:


<adapter-config name="ExternalFTPAdapter" adapter="Ftp Adapter" wsdlLocation="ExternalFTPAdapter.wsdl" xmlns="http://platform.integration.oracle/blocks/adapter/fw/metadata">
   <connection-factory location="eis/Ftp/FtpAdapter" UIincludeWildcard="filename*.*" adapterRef=""/>
   <endpoint-activation portType="Get_ptt" operation="Get">
     <activation-spec className="oracle.tip.adapter.ftp.inbound.FTPActivationSpec">
       <property name="FileType" value="ascii"/>
       <property name="UseHeaders" value="false"/>
       <property name="PhysicalDirectory" value="/INPUT"/>
       <property name="Recursive" value="true"/>
       <property name="DeleteFile" value="true"/>
       <property name="IncludeFiles" value="filename.*\..*"/>
       <property name="PollingFrequency" value="10"/>
       <property name="MinimumAge" value="0"/>
       <property name="TriggerFilePhysicalDirectory" value="/INPUT"/>
       <property name="TriggerFile" value="trigger.txt"/>
     </activation-spec>
   </endpoint-activation>
</adapter-config>


Why does the resursive GET only work the first time?

Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms