FTP Adapter

Hello all,
I'm having some problems to receive files from ftp adapter of oai.
The FTP Adapter don't give any error when it start, but it simple don't do anything when i put a file in the ftp receive directory. (I test the same adapter to send and it's working fine)
Do anyone have any tip?
One other thing is: How can i change the filename that the FTP Adapter of oia give to the files that he sends?
Thanks,
Antsnio Trindade
PS: Please email me to:
[email protected]
or
[email protected]

Antonio,
please see my comments below.
Thanks,
Markus
Markus Spohn
Senior Product Manager
9iAS Integration
Server Technologies
Oracle Corporation
200 Oracle Parkway m/s 2op393
Redwood Shores, CA 94065
USA
Work: +1-650-506-9977
Cell: +1-415-806-1405
Fax: +1-650-506-7406
e-Mail: [email protected]
Hello all,
I'm having some problems to receive files from ftp adapter of oai.
The FTP Adapter don't give any error when it start, but it simple don't do anything when i put a file in the ftp receive directory. (I test the same adapter to send and it's working fine)
Do anyone have any tip?I'd need more information about the configuaration of the FTP adapter.
One other thing is: How can i change the filename that the FTP Adapter of oia give to the files that he sends?In the current version of the FTP adapter, the naming convention of the file is as follows
<ftp adapter name><instance number>-<time stamp>
With the next patchset for 9iAS InterConnect 9.0.2, which is expect to be released within the next week or so,
we'll provide aditional functionality for the FTP adapter. That will include features that allow users to specify custom
file names and naming conventions.
Thanks,
Antsnio Trindade
PS: Please email me to:
[email protected]
or
[email protected]

Similar Messages

  • Error while deploying a process with FTP Adapter

    Hi All,
    I am using JDev 10.1.3.3 and SOA 10.1.3.3
    I am using FTP Adapter to get a file from a remote location in a empty Process.
    I have checked delete files option and using logical directory.
    While deploying i am getting the below error.
    A problem occured while connecting to server "XXXX" using port "XXXX": bpel_APACSHPREQ940PassThroughBPELOB_1.0.jar failed to deploy. Exception message is:  ORABPEL-09903
    Could not initialize activation agent.
    An error occured while initializing an activation agent for process "APACSHPREQ940PassThroughBPELOB", revision "1.0".
    Please ensure that the activation agents are configured correctly in the bpel deployment descriptor (bpel.xml).
    oracle.tip.adapter.fw.agent.jca.JCAActivationAgent: java.lang.reflect.InvocationTargetException
    Please help me out....
    Regards
    PavanKumar

    Hi Krishna,
    Not Working
    <definitions
    name="GetPSOJapanPassThroughFile"
    targetNamespace="http://xmlns.oracle.com/pcbpel/adapter/ftp/GetPSOJapanPassThroughFile/"
    xmlns="http://schemas.xmlsoap.org/wsdl/"
    xmlns:tns="http://xmlns.oracle.com/pcbpel/adapter/ftp/GetPSOJapanPassThroughFile/"
    xmlns:plt="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
    xmlns:jca="http://xmlns.oracle.com/pcbpel/wsdl/jca/"
    xmlns:opaque="http://xmlns.oracle.com/pcbpel/adapter/opaque/"
    xmlns:pc="http://xmlns.oracle.com/pcbpel/"
    xmlns:hdr="http://xmlns.oracle.com/pcbpel/adapter/ftp/"
    >
    <import namespace="http://xmlns.oracle.com/pcbpel/adapter/ftp/" location="ftpAdapterInboundHeader.wsdl"/>
    <types>
    <schema targetNamespace="http://xmlns.oracle.com/pcbpel/adapter/opaque/"
    xmlns="http://www.w3.org/2001/XMLSchema" >
    <element name="opaqueElement" type="base64Binary" />
    </schema>
    </types>
    <message name="Get_msg">
    <part name="opaque" element="opaque:opaqueElement"/>
    </message>
    <portType name="Get_ptt">
    <operation name="Get">
    <input message="tns:Get_msg"/>
    </operation>
    </portType>
    <binding name="Get_binding" type="tns:Get_ptt">
    <pc:inbound_binding />
    <operation name="Get">
    <jca:operation
    FileType="ascii"
    LogicalDirectory="GETPSOPTFILE"
    ActivationSpec="oracle.tip.adapter.ftp.inbound.FTPActivationSpec"
    DeleteFile="true"
    IncludeFiles="PSO.*\.dat"
    PollingFrequency="6"
    MinimumAge="0"
    OpaqueSchema="true" >
    </jca:operation>
    <input>
    <jca:header message="hdr:InboundHeader_msg" part="inboundHeader"/>
    </input>
    </operation>
    </binding>
    <service name="GetPSOJapanPassThroughFile">
    <port name="Get_pt" binding="tns:Get_binding">
    <jca:address location="eis/Ftp/APACFtp" UIincludeWildcard="PSO*.dat" />
    </port>
    </service>
    <plt:partnerLinkType name="Get_plt" >
    <plt:role name="Get_role" >
    <plt:portType name="tns:Get_ptt" />
    </plt:role>
    </plt:partnerLinkType>
    </definitions>
    Working
    <definitions
    name="GetPSOPassthroughFile"
    targetNamespace="http://xmlns.oracle.com/pcbpel/adapter/ftp/GetPSOPassthroughFile/"
    xmlns="http://schemas.xmlsoap.org/wsdl/"
    xmlns:tns="http://xmlns.oracle.com/pcbpel/adapter/ftp/GetPSOPassthroughFile/"
    xmlns:plt="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
    xmlns:jca="http://xmlns.oracle.com/pcbpel/wsdl/jca/"
    xmlns:opaque="http://xmlns.oracle.com/pcbpel/adapter/opaque/"
    xmlns:pc="http://xmlns.oracle.com/pcbpel/"
    xmlns:hdr="http://xmlns.oracle.com/pcbpel/adapter/ftp/"
    >
    <import namespace="http://xmlns.oracle.com/pcbpel/adapter/ftp/" location="ftpAdapterInboundHeader.wsdl"/>
    <types>
    <schema targetNamespace="http://xmlns.oracle.com/pcbpel/adapter/opaque/"
    xmlns="http://www.w3.org/2001/XMLSchema" >
    <element name="opaqueElement" type="base64Binary" />
    </schema>
    </types>
    <message name="Get_msg">
    <part name="opaque" element="opaque:opaqueElement"/>
    </message>
    <portType name="Get_ptt">
    <operation name="Get">
    <input message="tns:Get_msg"/>
    </operation>
    </portType>
    <binding name="Get_binding" type="tns:Get_ptt">
    <pc:inbound_binding />
    <operation name="Get">
    <jca:operation
    FileType="ascii"
    LogicalDirectory="GetPSOFile"
    ActivationSpec="oracle.tip.adapter.ftp.inbound.FTPActivationSpec"
    DeleteFile="false"
    IncludeFiles="PSO.*\.dat"
    PollingFrequency="6"
    MinimumAge="0"
    FileModificationTime="FileSystem"
    ModificationTimeFormat="4,18,yyyyMMddHHmmSS"
    OpaqueSchema="true" >
    </jca:operation>
    <input>
    <jca:header message="hdr:InboundHeader_msg" part="inboundHeader"/>
    </input>
    </operation>
    </binding>
    <service name="GetPSOPassthroughFile">
    <port name="Get_pt" binding="tns:Get_binding">
    <jca:address location="eis/Ftp/APACFtp" UIincludeWildcard="PSO*.dat" />
    </port>
    </service>
    <plt:partnerLinkType name="Get_plt" >
    <plt:role name="Get_role" >
    <plt:portType name="tns:Get_ptt" />
    </plt:role>
    </plt:partnerLinkType>
    </definitions>

  • Getting filename in FTP Adapter in BPEL

    How to retrieve the filename read by the FTP adapter in ora-bpel?

    Just figured out how to do this.
    1. Create a variable of type 'InboundHeader_msg' defined in 'ftpAdapterInboundHeader.wsdl'.
    2. Reference this in the 'Adapters' tab of the FTP adapter receive activity.

  • Getting filename in FTP Adapter in ESB

    I am trying to get the filename on an inbound FTP adapter in an ESB. I've followed the directions I have found, by following these steps:
    1. The namespace xmlns:ehdr="http://www.oracle.com/XSL/Transform/java/oracle.tip.esb.server.headers.ESBHeaderFunctions" is automatically generated in the xsl file.
    2. Create a variable in the xsl file, with value ehdr:getRequestHeader('/fhdr:InboundFileHeaderType/fhdr:fileName','fhdr=http://xmlns.oracle.com/pcbpel/adapter/file/;'). Let's give it the name INFILENAME.
    3. Reference the variable in some expression in the xsl file: $INFILENAME
    4.Set UseHeaders="true" in the FTP inbound wsdl file
    When I do this in a file adapter, I can use the value. When I do this in an ftp adapter, no value comes back.
    Any ideas?

    Yes, that did it, thanks. I had a typo:
    getRequestHeader('/fhdr:InboundFtpHeaderType/fhdr:fileName,'fhdr=http://xmlns.oracle.com/pcbpel/adapter/ftp/;')
    which should have had "FTP" in upper case. The correct code is as you stated:
    getRequestHeader('/fhdr:InboundFTPHeaderType/fhdr:fileName,'fhdr=http://xmlns.oracle.com/pcbpel/adapter/ftp/;')

  • Retaining the FileName in the Receiver FTP adapter

    Hi experts,
    I have a situation here, were i need to retain the FileName in the message header in the receiver FTP adapter.
    I have tried using variable subtitution but seems the FileName is not supported in variable substitution.
    Please help
    Thanks

    Hello,
    if you need file name to be retained in the receiver adapter from the sender side. then u can do that by dynamic configuration using adapter specific message attributes, check this blog for details-
    /people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
    if you dont have a mapping in your interface to use dynamic configuration, then you can do it via adapter module also- have a look here, /people/sap.user72/blog/2005/07/15/copy-a-file-with-same-filename-using-xi
    regards,
    francis

  • Using relative path for in file/ftp adapter

    Hi All,
    How to have a relative path for file/ ftp adapter's inbound/outbound operation?
    Example: Consider $ORA_HOME = /home/oracle --> This environment variable can be different on different machines
    i want to drop a file in to $ORA_HOME/folder1/folder2 (Or poll for a file).
    <partnerLinkBinding name="FTP">
    <property name="wsdlLocation">FTP.wsdl</property>
    <property name="out_dir" type="LogicalDirectory">What do i write here???</property>
    <property name="retryInterval">60</property>
    </partnerLinkBinding>
    if i cant configure this in partner link section or in activation agent sction, how else do i achieve this?
    i am using 10.1.3.* version.
    Thanks in advance.
    Roshan.

    You can achive it using the deployment scripts if the directory is changing on the basis of the environment
    If you want to change at run time than you can use the jca properties to set using the variables at runtime.
    Regards,
    Ajay

  • Need Help on FTP Adapter Archival Process

    Hi Guru's,
    I implemented FTP Adapter for Inbound Operation to read the file from inbound directory and after reading the file should be archived in Archival Directory and Delete the file from directory from inbound directory.
    In my case file is successfully picked from inbound directory and records inserted in to database table. File is not Archiving in Archival Folder and File deleted from Inbound Directory. Here I need to Archive the files in Archival Folder.
    Thanks in Advance
    Could you please help me in this regard and Please provide pointers to me

    <property name="UseRemoteArchive" value="true"/>
    Set this property to "true" to notify the Oracle FTP Adapter that the archival directory is on the same FTP server. If set to "false", the Oracle FTP Adapter uses a local file system folder for archival.
    for more Information here to go : http://docs.oracle.com/cd/E15523_01/integration.1111/e10231/adptr_propertys.htm#CHDEDJEA
    Regards,
    MS Raghava

  • Process TIFF file from FTP server using File/FTP adapter

    Hi,
    I have a requirement to process a scanned document TIFF file from a directory on an FTP server using the File/FTP adapter and process through XI into a Web Service via a receiver SOAP adapter.
    My question is can the file/FTP adapter be used to process the TIFF file into XI from an FTP server ? Also, what settings need to be made on the file adapter to allow this file to be processed into XI ?
    Thanks in advance
    Colin

    hi colin,
    TIFF is type of image file, it can be converted to binary using java mapping
    refer this pdf
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/10dd67dd-a42b-2a10-2785-91c40ee56c0b
    regards
    Ramesh P

  • FTP Adapter - ModificationTimeFormat  -issue

    Hi,
    We are using FTP adapter to poll a file from FTP server. We neither have an option to delete or archive files from that FTP remote server hence we are using "FileModificationTime" option. When we use this option, polling adapter errors out with ---
    "Could not get file modification time for file :/testfile.txt. Verify that the values for the "ModificationTimeFormat" activation parameter are correct.Ensure the time format pattern and filename begin index and end index are specified according to the specific FTP server.
    Check the error stack and fix the cause of the error. Contact oracle support if error is not fixable.
         at oracle.tip.adapter.ftp.inbound.FTPSource.getTimestamp(FTPSource.java:1100)
         at oracle.tip.adapter.file.inbound.FileList.isMinimumAgePeriod(FileList.java:462)
         at oracle.tip.adapter.file.inbound.FileList.ignoreFile(FileList.java:497)
         at oracle.tip.adapter.ftp.FTPClient.populateNlstResults(FTPClient.java:918)
         at oracle.tip.adapter.ftp.FTPClient._listFiles(F"
    Below is the synopsis of log file -
    <2010-04-01 16:21:53,026> <DEBUG> <default.collaxa.cube.activation> <File Adapter::Inbound> Host test.ftp.server FTP command: MDTM /PGP BAM OUTBND UKFSBAM
    <2010-04-01 16:21:53,078> <DEBUG> <default.collaxa.cube.activation> <File Adapter::Inbound> FTP Command: MDTM, reply:
    500 command not understood
    <2010-04-01 16:21:53,078> <WARN> <default.collaxa.cube.activation> <File Adapter::Inbound> FTPClient.getMDTM(): unexpected 500 is encountered.
    <2010-04-01 16:21:53,078> <DEBUG> <default.collaxa.cube.activation> <File Adapter::Inbound> Host test.ftp.server FTP command: QUIT
    <2010-04-01 16:21:53,129> <DEBUG> <default.collaxa.cube.activation> <File Adapter::Inbound> FTP Command: QUIT, reply:
    221 Goodbye.
    <2010-04-01 16:21:53,130> <ERROR> <default.collaxa.cube.activation> <File Adapter::Inbound> Could not get file modification time for : PGP BAM OUTBND UKFSBAM
    <2010-04-01 16:21:53,130> <DEBUG> <default.collaxa.cube.activation> <File Adapter::Inbound> Control socket being read by [JCA-work-instance:FTP Adapter-27]
    <2010-04-01 16:21:53,130> <DEBUG> <default.collaxa.cube.activation> <File Adapter::Inbound> Sending event: 1 with: oracle.tip.adapter.ftp.FTPConnection@f20ee14
    <2010-04-01 16:21:53,130> <DEBUG> <default.collaxa.cube.activation> <File Adapter::Inbound> FTPManagedConnection::destroy called, closing physical socket
    <2010-04-01 16:21:53,130> <DEBUG> <default.collaxa.cube.activation> <File Adapter::Inbound> Clearing Event Listeners
    <2010-04-01 16:21:53,130> <DEBUG> <default.collaxa.cube.activation> <File Adapter::Inbound> Error retrieving polled files.
    <2010-04-01 16:21:53,130> <DEBUG> <default.collaxa.cube.activation> <File Adapter::Inbound>
    ORABPEL-11430
    Error in listing files in the remote directory.
    Unable to list file in remote directory.
    Check the error stack and fix the cause of the error. Contact oracle support if error is not fixable.
    at oracle.tip.adapter.ftp.FTPAgent.getFileList(FTPAgent.java:470)
    at oracle.tip.adapter.file.inbound.FileSource.getFileList(FileSource.java:234)
    at oracle.tip.adapter.file.inbound.PollWork.pollFiles(PollWork.java:254)
    at oracle.tip.adapter.file.inbound.PollWork.run(PollWork.java:144)
    at oracle.tip.adapter.fw.jca.work.WorkerJob.go(WorkerJob.java:51)
    at oracle.tip.adapter.fw.common.ThreadPool.run(ThreadPool.java:280)
    at java.lang.Thread.run(Thread.java:595)
    Caused by: ORABPEL-11400
    Can someone please help.
    Thanks,
    Phani

    The FTP server you're connecting to does not understnad the MDTM command the FTP adapter is configured to use in order to obtain the files date/time:
    <2010-04-01 16:21:53,078> <DEBUG> <default.collaxa.cube.activation> <File Adapter::Inbound> FTP Command: MDTM, reply:
    500 command not understood
    Try using one of the other File Modification Time options in the FTP Adapter wizard such as Directory Listing or File Name Substring

  • Issue with SAP PI FTP Adapter

    Hi All,
    We are seeing an issue with the FTP Adapter Communication Channel in SAP PI 7.1. When the communication channel is connecting to a FTP Server and if the connection request timeout ( ex: SFTP Server down ) we see a connection error .
    However the overall communciation channel status doesnot refelct it and it is still in GREEN status. The status being wrong doesnt raise an adapter CCMS alert. Also we are seeing that the communication channel stops all connection attempts after the failure for that communication channel.
    Wanted to check if anyone has seen or encountered the issue and how did you get past the problem.
    Thanks in advance..
    Arunava

    Hi,
    Could you please let me know whether it is sender communication channel or receiver ?
    Also please check below.
    1. Java messaging system queues are free or hanged ?
    2. Please mention time out paramter in the channel.
    3. Did you try Start/Stop the channel.
    Please get back to me.
    Regards,
    Sachin
    Edited by: Schin_Sharma on May 26, 2011 9:39 AM

  • Problem with FTP Adapter in creating a new Folder

    Hi all,
    I have a requirement in which a BPEL process shud create a folder named as sysdate dynamically and write a
    CSV file into that.(ex: PO/2010-03-09/PO_1.csv).I created a header variable for Oubound FTP adapter and
    passing the file directory as concat('PO/',xp20:current-date(),'/') to outbound header directory variable.Problem is FTP
    adapter is not creating the sysdate folder its says:1.check u have privileges 2.file name is too long....Blah....Blah.
    But i have all the privileges for that user.If i manually create the sysdate folder the FTP adapter is placing the CSV
    file.The same works fine with file adapter...but i need to use FTP since the FTP server can change in future.Seems to
    be a problem with FTP adapter....can some one help.
    Iam using SOA 10.1.3.4
    Regards,
    Edited by: 0racler on Mar 9, 2010 4:46 AM
    Edited by: 0racler on Mar 9, 2010 5:49 AM

    any thoughts????

  • Need help with a simple process with FTP Adapter and File Adapter

    I am trying out a simple BPEL process that gets a file in opaque mode from a FTP server using a FTP adapter and writes it to the local file system using a File Adapter. However, the file written is always empty (zero bytes). I then tried out the FTPDebatching sample using the same FTP server JNDI name and this work fine surprisingly. I also verified by looking at the FTP server logs that my process actually does hit the FTP server and seems to list the files based on the filtering condition - but it does not issue any GET or RETR commands to actually get the files. I am suspecting that the problem could be in the Receive, Assign or Invoke activities, but I am not able identify what it is.
    I can provide additional info such as the contents of my bpel and wsdl files if needed.
    Would appreciate if someone can help me with this at the earliest.
    Thanks
    Jay

    persiandude wrote:
    Topic: Need help with if, else, and which statements and loops.
    How would I display 60 < temp. <= 85 in java
    System.out.println("60 < temp. <= 85 in java");
    another question is how do I ask a question like want to try again (y/n) after a output and asking that everytime I type in yes after a output and terminate when saying No.Sun's [basic Java tutorial|http://java.sun.com/docs/books/tutorial/]
    Sun's [New To Java Center|http://java.sun.com/learning/new2java/index.html].Includes an overview of what Java is, instructions for setting up Java, an intro to programming (that includes links to the above tutorial or to parts of it), quizzes, a list of resources, and info on certification and courses.
    [http://javaalmanac.com|http://javaalmanac.com]. A couple dozen code examples that supplement [The Java Developers Almanac|http://www.amazon.com/exec/obidos/tg/detail/-/0201752808?v=glance].
    jGuru. A general Java resource site. Includes FAQs, forums, courses, more.
    JavaRanch. To quote the tagline on their homepage: "a friendly place for Java greenhorns." FAQs, forums (moderated, I believe), sample code, all kinds of goodies for newbies. From what I've heard, they live up to the "friendly" claim.
    Bruce Eckel's [Thinking in Java|http://mindview.net/Books/DownloadSites] (Available online.)
    Joshua Bloch's [Effective Java|http://www.amazon.com/Effective-Java-2nd-Joshua-Bloch/dp/0321356683/ref=pd_bbs_1?ie=UTF8&s=books&qid=1214349768&sr=8-1]
    Bert Bates and Kathy Sierra's [Head First Java|http://www.amazon.com/exec/obidos/tg/detail/-/0596004656?v=glance].
    James Gosling's [The Java Programming Language|http://www.bookpool.com/sm/0321349806].

  • FTP adapter pass file name to command

    I am executing a command after the reciever FTP adapter.  The filename that ftp-ed has a dynamic name and I need to execute the command against that file.  Is there a way I can pass that filename as a variable to the unix command.  I know how the UNIX shell wants it, I just do not know how to set that name as a variable in XI.
    Thanks
    Skip Ford

    Skip
    Go through this url where you can pass the same filename from a sender to a receiver file adapter. But you SP should be 14 and above.
    /people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
    Hope this helps.....
    ---Satish

  • FTP Adapter - Dynamic JCA properties.

    Hi All,
    I have a requirement to dynamically assign few jca properties in FTP Adapter as listed below,
    FileName
    JNDI name
    PhysicalDirectory
    AchiveDirectory
    DeleteFile
    UseRemoteArchive
    Out of these, i am able to dynamically set the values for Source/Target fileName, JNDIName and Source/Target directory.
    <bpelx:inputProperty name="jca.ftp.FileName" variable="SOURCE_FILENAME"/>
    <bpelx:inputProperty name="jca.jndi" variable="SOURCE_JNDI"/>
    <bpelx:inputProperty name="jca.ftp.Directory" variable="SOURCE_DIRECTORY"/>
    Can anyone let me know what values can be used for other properties as well? I tried using the below values, but the values are not changed dynamically.
    <bpelx:inputProperty name="jca.ftp.FileArchiveDirectory" variable="SOURCE_ARCHIVE_DIRECTORY"/>
    <bpelx:inputProperty name="jca.DeleteFile" variable="DELETE_SOURCE_FILE"/> and <bpelx:inputProperty name="jca.ftp.DeleteFile" variable="DELETE_SOURCE_FILE"/>
    <bpelx:inputProperty name="jca.ftp.UseRemoteArchive" variable="ARCHIVE_REQD"/>
    Thanks,
    Mukesh

    Check if this blog is of help to you -
    SOA and Oracle Fusion Middleware Blog: Dynamically Set Archive Drectory Location for FTP Transfer

  • FTP Adapter on OSB - how to specify logical directory path

    I am using the ftp adapter on osb 11g (Oracle Service Bus Version: [Oracle Service Bus Server Side Dependencies 11.1 Thu Aug 19 02:10:08 PDT 2010 ] Oracle Weblogic Server Version: [WebLogic Server 10.3.4.0 Fri Dec 17 20:47:33 PST 2010 1384255 ])
    I defined the ftp adapter using jdev and imported the jca artifacts into osb.
    I created a business service using jca adapter to put the file to the ftp server.
    The problem is the write directory on the ftp server is different for each environment - DEV, QA, PROD.
    I used a physical directory specification when defining the adapter in JDEV because it wasn't clear from the help how i would override a logical directory during deployment to osb (it is clear if deploying to soa suite).
    Is there a way to override this dynamically override this directory at runtime. Or even better a way to override during deployment time?

    You do it either way....
    Import the SBConfig jar into the sbconsole and change the value in the JCA file
    or
    Re: Customizing JCA FTP Adapter properties in OSB

Maybe you are looking for