File Listing in FTP Adapter

Hi All,
I have given below the jca connection factory details. I am creating dynamic ftp using jca.jndi and I would also like to overwrite the IncludeFiles property dynamically. At runtime i will choose what type of files that i need to list(xml, txt etc).
<connection-factory location="eis/ftp/FTP" UIincludeWildcard="*.*"/>
<endpoint-interaction portType="FileListing_ptt" operation="FileListing">
    <interaction-spec className="oracle.tip.adapter.ftp.outbound.FTPListInteractionSpec">     
      <property name="PhysicalDirectory" value="/Input/test"/>           
      <property name="Recursive" value="true"/>
      <property name="IncludeFiles"  value=""  />
      </interaction-spec>
  </endpoint-interaction>
In bpel while invoking ftp adapter i am trying to give
<bpelx:inputProperty name="jca.jndi" variable="jndivar"/>
<bpelx:inputProperty name="jca.ftp.IncludeFiles" expression="string('.*\.txt)"/>
The first property is working as expected but the IncludeFiles property is not working. Kindly share your ideas.
Thanks,
Maanik

Applied patch which oracle has suggested and the issue got resolved.Now i can pass values to jca.ftp.IncludeFiles dynamically.
Thanks,
Maanik

Similar Messages

  • Issue with List Files option in FTP Adapter-

    Hi All,
    I am getting the following error when I am using the list files option inside FTP adapter. The soa Version I am using is 11.1.1.5
    Exception occured when binding was invoked. Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'FileListing' failed due to: Error in listing files in the remote directory. Error in listing files in the remote directory. Unable to list file in remote directory. Please make sure that the ftp server settings are correct. ". The invoked JCA adapter raised a resource exception. Please examine the above error message carefully to determine a resolution.
    I have configured FTP adapter successfully by giving the following details,
    useSftp –
    username –
    password -
    host -
    port –
    authenticationType –
    preferredCipherSuite -
    and it is working perfectly for getfiles option and it is reading files successfully, but it is throwing error when I am using list files option. I tried this option for listing the files that are in remote directory. Any Help would be appreciated.
    Complete fault
    <messages>
    <input>
    <Invoke1_FileListing_InputVariable>
    <part name="Empty">
    <empty/>
    </part>
    </Invoke1_FileListing_InputVariable>
    </input>
    <fault>
    <bpelFault>
    <faultType>0</faultType>
    <bindingFault>
    <part name="summary">
    <summary>Exception occured when binding was invoked. Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'FileListing' failed due to: Error in listing files in the remote directory. Error in listing files in the remote directory. Unable to list file in remote directory. Please make sure that the ftp server settings are correct. ". The invoked JCA adapter raised a resource exception. Please examine the above error message carefully to determine a resolution. </summary>
    </part>
    <part name="detail">
    <detail>No such file</detail>
    </part>
    <part name="code">
    <code>null</code>
    </part>
    </bindingFault>
    </bpelFault>
    </fault>
    <faultType>
    <message>0</message>
    </faultType>
    </messages>
    May 9, 2013 4:32:00
    Edited by: BK574 on May 9, 2013 2:47 PM

    Is this a bug in SOA suite?
    Following are the properties inside JCA file
    <adapter-config name="List" adapter="FTP Adapter" wsdlLocation="List.wsdl" xmlns="http://platform.integration.oracle/blocks/adapter/fw/metadata">
    <connection-factory location="eis/ftp/FTPService" UIincludeWildcard="*.*"/>
    <endpoint-interaction portType="FileListing_ptt" operation="FileListing">
    <interaction-spec className="oracle.tip.adapter.ftp.outbound.FTPListInteractionSpec">
    <property name="PhysicalDirectory" value="*.*"/>
    <property name="Recursive" value="true"/>
    <property name="IncludeFiles" value="*.*"/>
    </interaction-spec>
    </endpoint-interaction>
    </adapter-config>
    Edited by: BK574 on May 10, 2013 6:30 AM
    Edited by: BK574 on May 10, 2013 6:31 AM

  • Archive File Name in FTP adapter

    Hi,
    While archiving a file using an FTP adapter, I want to archvie it with a name which is going to be generated dynamically. However i don't see any placeholder where i can mention the file name for achving. Can anyone please suggest.
    Thanks,
    Phani

    Hi Phani,
    did you figure out a solution?
    Anders

  • Unable to read PDF files created by FTP Adapter

    Hi,
    I am unable to read pdf files generated by FTP Adapter with its default settings.
    Can anybody guide me how to proceed with it. I guess I need to change something in encoding mechanism in FTP Adapter Outbound Connection Pool, but not sure what has to be.
    Thanks,
    Richa

    Hi all,
    I have got its solution. I was unable to read .pdf files because FTP adapter  was sending the files just by changing the extension from .txt /.xml to .pdf that is the reason that it was not readable.
    We had to write an java code to convert .xml file to .pdf file and then paas it to FTP ADapter.
    Thanks

  • Strange Problem in File Archiving - Sender FTP Adapter

    Hi,
    The scenario is file to IDOc. XI has to read the input file from client FTP server and archive it to XI local file server.
    File is archived properly without FCC (for xml files). But with FCC, the sender FTP adapter is archiving empty files (0 kb files) not the original file with data.
    I've checked SXMB_MONI, even there I can see the file data and the IDoc is getting posted with proper data. But, the archived file is empty. Not sure about the problem.
    Please suggest. Thanks in advance.
    Regards,
    Joe.

    Hi,
    I've already tried archiving the file to the FTP server itself, it's working fine (even with FCC). But, when I try to archive it to the XI server (read from FTP and archive at XI server), it's writing empty file to the XI archive directory. I'm using PI 7.0 SP 14. My sender FTP adapter dtls follow
    Data Connection: Passive
    Timeout Secs: 500
    Connect Mode: Permanently
    Transfer Mode: text and binary tried both
    File type: text and binary tried both..
    Looking out for a solution.
    Thanks,
    Joe.
    Edited by: Joe on Jun 19, 2008 8:07 AM
    Edited by: Joe on Jun 19, 2008 8:08 AM

  • Error with Archiving Faulty Source File in Sender FTP adapter

    Hi All,
    I have configured a Sender FTP adapter with Processing Mode as Archive.
    I am able to read the files from FTP server and archive all the successfuly processed file in the PI aplication server directory XXX/success.
    We need all the error files also to be archived on PI application server in directory XXXXX/Fail so I have checked the option Archive faulty Source Files and provided the application directory  XXXXX/Fail .
    I have unchecked the option Archive Files on FTP server.
    But the problem is when FTP adapter is getting any error files it is not able to archive it to application directory  XXXXX/Fail .
    In RWB it is showing the error
    Unable to archive faulty input file /data/abc.txt to /XXXX/fail/abc.txt
    Cause: com.sap.aii.adapter.file.ftp.FTPEx: 550 rename: No such file or directory
    This directory is existing and works fine when I give this directory name in Archive directory of processing mode.
    Sender FTP adapter is trying to archive the file in FTP server which I dont want and giving us this error.
    If I give any Directory which is present in FTP server my error files are getting archived on FTP server but not in the archived folder.
    I have already unchecked the option Archive Files on FTP server.
    Please help......
    I am on PI 7.11
    Regards
    Henery H

    Hi Henery,
    Check the below thread, this should help you to fix the issue.
    FTP adapter: exc. 550 : No such file or directory
    Thanks,

  • How to read files sequentially from FTP adapter

    Hi,
    My requirement is to read files sequentially based on file name from the FTP server using a ftp adapter in ESB.
    for example the if the file names are
    1001.dat
    1000.dat
    1002.dat
    then it should read the files in in the order 1000.dat , 1001.dat and 1002.dat
    Could you please help me out in this.

    did u fid any possibilities for this i too have a same requirement if you had foud it can you please help me

  • File Matching with FTP Adapter

    Guys,
    I have particular requirement where FTP Adapter needs to read set of files
    FILENAME.PCL
    FILENAME.I01
    the file name would be matching but extensions are different.
    the adapter needs to read the file match if they are SET of files ( based on file name) and move into target directory if not move into Error Directory .The Data needs some manipulation before it's written into target location so we are using ESB ( also for error notification) is it possible with FTP Adapter within ESB?
    Thanks

    May be difficult with ESB, may require BPEL. Can you give a specific example as that would make it easier to see what you mean.
    Antony

  • What is the max file limit for FTP adapter that uses FileIoInteractionSpec

    Hi,
    I know that Oracle provided some new features in 10.1.3.4 using which we can use the file and ftp adapter to move files in a more efficient way
    http://download.oracle.com/docs/cd/E12524_01/relnotes.1013/e12523/adapters.htm#CHDGFAAB
    Essentially it involves modifying the WSDL to use the new InteractionSpec="oracle.tip.adapter.file.outbound.FileIoInteractionSpec"
    Now my question is, what is the file size limit which can be transferred using this.
    I have tried with 20 mb file, it works. But I want to know the upper limit.
    Thanks,
    Amit

    Tried with 31 mb file.
    It successfully delivers the file but....
    The instance never completes successfully in the BPEL Console. If I open the audit tab, it shows the following message
    There is a system exception while performing the BPEL instance, the reason is "JTA transaction is not present or the transaction is not in active state. The current JTA transaction is not present or it is not in active state when processing activity or instance "7,200,001". The reason is The execution of this instance "7200001" for process "TestFTPLimit" is supposed to be in a jta transaction, but the transaction is not present or in active state, please turn on the application server transaction debug logs to get more information.. Please consult your administrator regarding this error. ". Please check the error log file for more infromation. Please try to use bpel fault handlers to catch the faults in your bpel process. If this is a system exception, please report this to your system administrator. Administrator could perform manual recovery of the instance from last non-idempotent activity or dehydration point.less
    ORABPEL-02182
    JTA transaction is not present or the transaction is not in active state.
    The current JTA transaction is not present or it is not in active state when processing activity or instance "7,200,001". The reason is The execution of this instance "7200001" for process "TestFTPLimit" is supposed to be in a jta transaction, but the transaction is not present or in active state, please turn on the application server transaction debug logs to get more information..
    Please consult your administrator regarding this error.
         at com.collaxa.cube.engine.CubeEngine.store(CubeEngine.java:5514)
    So does anybody know how to get over this.
    I understand that sync read is a sync operation, so obviously it was going to timeout, as this transfer took around 4 minutes for me. But then, isnt this a bug from Oracle's side

  • When to use "Use Temporary File" in receiver FTP adapter

    Hi Experts,
    I have nerver used "Use Temprary File" as the "Write Mode" in receiver ftp adapter.
    I want to knwo under what kind of requirment we should use this option?
    Thanks in advance.
    Best Regards,

    Hi Aditya
    Usually it's advisable to use "use temporary file" as write mode when you want to avoid your file to be picked up by receiver while PI channel is still writing it.
    Obviously larger the file, more chances you have that this issue could occur.
    If you select the "use temporary file", XI will write the content to a temporary file with another name of your choice and only once writing has finished it will rename it to the actual name setup in the "file name scheme".
    Regards,
    Giuseppe

  • Duplicate File issue using FTP adapter - BizTalk 2010

    Hi We encountered an Issue of picking Duplicate files in BizTalk 2010 from the FTP Location. Need your assistance on this.
    Mainframe sends multiple files a 0 KB file to FTP and BizTalk picks during a particular service window using FTP Adapter. 
    Receive Location has a pipeline component which decodes the MF file(EBCDICRow format). 
    Send Port transmits the file which is decoded in the Receive location. There is no mapping or orchestration involved. 
    When 2 files are placed in FTP Location. BizTalk Transmits the files successfully
    No suspended messages in BizTalk but we see below error in event log. we tried reproduce the issue but no luck. 
    Host Instance running FTP Location is Clustered  
     There was a failure executing the receive pipeline: "XXXX.XX.Pipelines.Receive_XXX_TransactionsMC_passthru, XXX.XX.Pipelines, Version=1.0.0.0, Culture=neutral, PublicKeyToken=c2d1f476d5c2f97d"
    Source: "EbcdicRowDeCode" Receive Port: "XXX.XX.MCSTransactionsMC" URI: "ftp://XXXXXXXX:21/'XXXX'/MCSDT.DEFKOP.R001.D*.T*" Reason: Unable to cast object of type 'Microsoft.BizTalk.Streaming.BasicStreamWrapper' to type 'XXX.BizTalk.Pipeline.Components.Streams.V3.VirtualStream
    MF Puts below Files at FTP Location
    PSNOX.MCSDT.DEFKOP.R001.D150406.T009000
    PSNOX.MCSDT.DEFKOP.R001.D150406.T002100
    BizTalk Picks ( at specified Service window) and Transmits as 
    PSNOX.MCSDT.DEFKOP.R001.D150406.T009000
    PSNOX.MCSDT.DEFKOP.R001.D150406.T009000
    PSNOX.MCSDT.DEFKOP.R001.D150406.T002100
    Regards
    -Sri

    Hi Sri,
    There could be two reason for such a behavior:
    1) Using Non-Clustered Hosts: It is always recommended to use the clustered host for FTP adapter. Because FTP don't allow
    any locking mechanism on the files so in case of non-clustered with multiple host instances you might receive same file multiple times through different host instances.
    2) If the original document is still being written to the FTP server by the host application, the FTP adapter cannot
    delete the document and will retrieve another copy of the document at the next polling interval that is configured for the receive location. This behavior causes document duplication to occur. 
    Workaround could be:
    Configure the host application to write to a temporary folder on the same hard disk as the public FTP folder and to periodically move the contents of the temporary folder
    to the FTP folder. The temporary folder should be on the same hard disk as the public FTP folder to make sure that the move operation is atomic. An atomic operation is an operation that is functionally indivisible. If you write data to the public FTP folder
    by using the BizTalk Server FTP adapter, you can do this by specifying a Temporary Folder property in the FTP Transport Properties dialog box when you configure a send port. If you specify a Temporary Folder property, make sure that this folder is on the same
    physical disk as the public FTP folder.
    Configure the FTP receive location to operate within a service window when the host application is not writing data to the FTP server. You can specify the service window
    when you configure the receive location properties.
    Refer: Known Issues with the FTP
    Adapter
    Rachit
    Please mark as answer or vote as helpful if my reply does

  • How to read the whole text file lines using FTP adapter

    Hi all,
    How to read the whole text file lines when error occured middle of the text file reading.
    after it is not reading the remaining lines . how to read the whole text file using FTP adapter
    pls can you help me

    Yes there is you need to use the uniqueMessageSeparator property. Have a look at the following link for its implementation.
    http://download-west.oracle.com/docs/cd/B31017_01/integrate.1013/b28994/adptr_file.htm#CIACDAAC
    cheers
    James

  • Need to give file location in FTP Adapter at runtime

    Hi All,
    We r using FTP Adapter for fetching files from remote server, we have scenario where we need to give the location of file at runtime. Location may vary so the file location must be given at runtime. We r using SOA 11.1.1.3
    Thanks,
    RR
    Edited by: 800068 on Oct 4, 2010 11:19 PM

    Hi Oracler,
    Thanks for responding..
    I am able to give filename and directory dynamically. My scenario is i need t give the hostname, username and password dynamically .. How would i do that?
    Thank You...

  • Change in file permission in ftp adapter

    Hi All,
    I am facing a problem in ftp adapter. I have a text file with 777 permissions when i am moving the file with ftp adapter(FTPMove operation to another folder file permissions are getting changed to 644. But if i move the file using command prompt permissions are same. The server is unix machine.
    Can anyone plz tell me that how the files can be moved with same permissions using ftp adapter. i m using jdeveloper11.1.1.4.0. and soa11g.
    Thanks in advance,
    Sourbh

    Actually i use File Zilla client for file move and my question is that Is there a way that ftp adapter dont change file permissions while moving a file from one directory to another directory.

  • ESB: inbound file and outbound ftp adapter with multiple directories

    Basically I want to scan directories and write new files ftp directories. I could figure out how to do that for one directory. However I need to scan multiple directories and ftp upload files contained in those directories to corresponding ftp directories. Number of directories and their names are only known at run time. All directories are under one parent directory, both locally and the remote ftp site. We can assume all ftp directories exist.
    I could not figure out how to this. Is this possible at all? Directory names seem to be only specified at design time, for both inbound file adapters and outbound ftp adapters.
    Pranab

    Chris, I am not really sure this is the right place to ask this question. But hopefully you might have something in your armour to help me out.
    My requirement is to configure an inbound File/FTP adapter to read from a Directory which can be known only at runtime. A webservice call returns the file name and network path of the file to be read, but that happens only during the run time. I guess one way possible is, you configure a File/FTP Adapter with a logical name for directory and set the physical directory path using the endpoint property. But in that case, I should know the Physical directory @ deployment time.
    I would like to know whether it is possible to manipulate the Endpoint property of an ESB Service (SOAP Service/Routing Service/Adapter Service) during runtime.
    So is there any way to get the enpoint property configured during runtime??? Otherwise dO you recommend some other solution for this use case???
    Any help would be appreciated.
    -Sudheer

Maybe you are looking for

  • Not Allowing a Value to be Selected in a Select List

    Version 4.1.1.00.23 Hello, I've created a Select List to display Projects within a Department (we call them Groups). A Group will have Projects, however, more than one Group can have a Project with the same name. So my query for the Select List displ

  • Address Book: Can't edit contact or add new

    I have two computers and an iPhone that should be synching Address Book and iCal amongst themselves on Mobile Me. Recently, the iBook G4's Address Book has had some features disabled: the "edit" button is grayed out, the "+" button is grayed out, and

  • ICC profile problem?

    Having a bit of an issue with .png files. It happens randomly, but recently I've been seeing it a lot lately. Most .png files I see while browsing the web of with the preview program itself will show random colored lines with a shadowed out image (th

  • Answer machine not working on BT Freestyle 335

    This feature on my BT Freestyle BT 335 has suddenly stopped working. Please help? I've tried phone numbers 08702403692 and 09068020198, and they do not dial out. Other personal numbers are ok . giraffe

  • Creating Remote Interface using workshop

    I created a session EJB using weblogic workshop 8.1 sp3. It autogenerated the remote interface that extends EJBObject, and is uneditable. I want my remote interface to extend com.bea.p13n.property.EntityPropertyManager. How can I create my own remote