FTP Adapter - Overwrite file

Hi All,
Quick help!
I am using dynamic FTP adapter and want to overwrite the already existing file in the destination FTP server.
I know there is an option to append,  is there any option to overwrite the file ,  may be by using 'Before Put' to delete the file. Any idea on the exact syntax and procedure ?
thanks,
varun
Thanks, Varun

Hi Varun,
You cannot (IMHO) do this at the FTP Adapter level.
IMHO you'd have to create a custom FTP Adapter with a specific config option to check for duplicates and what to do if you find it.
Regards,
Rachit
Please mark as answer or vote as helpful if my reply does

Similar Messages

  • How can ftp-adapter overwrite an existing file

    Hi,
    I have an ftp-adapter that I want to overwrite an existing file when publishing a new message. I want the receiving application to handle only the latest file (==state of an export)
    now my ftp-adapter logs an error if the file it wants to put already exists.
    Is there a parameter that can set this??
    thanks,
    Ton

    You can use the file.sender_customizer_class property in the adapter.ini to hook in your implemented FileSenderCustomizer class where you can use your own logic in the GenerateFileName method. This is a possibility to create a unique file name per run.
    Kind regards, hope it helps

  • 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

  • Issue with FTP Adapter ListFiles files with spaces in the filename

    Hi
    I have an FTP adapter that does a ListFiles of all the files in a directory. It comes back and everything works fine however it removes all spaces from the filename meaning when I do the GET afterwards this fails as it is a different filename.
    The filename is a0eQ0000000wJVdIAM~1~ technote316.TIF note the space between ~ and technote.
    When a ListFiles is done I get the following request response in BPEL execution:
    <messages>
    <InvokeGetFilenames_FileListing_InputVariable><part name="Empty" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><empty xmlns="http://xmlns.oracle.com/pcbpel/adapter/ftp/CommonServices/SalesforceNotifcationServices/GetFileNameFromFTPServer"/></part></InvokeGetFilenames_FileListing_InputVariable>
    <InvokeGetFilenames_FileListing_OutputVariable><part name="filelist" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><filelist size="1" xmlns="http://xmlns.oracle.com/pcbpel/adapter/ftp/CommonServices/SalesforceNotifcationServices/GetFileNameFromFTPServer"><file><directory>/salesforce/006Q0000007yKcd</directory><filename>a0eQ0000000wJVdIAM~1~technote316.TIF</filename><lastModifiedTime>1305507120000</lastModifiedTime><creationTime>0</creationTime><size>1906643</size></file></filelist></part></InvokeGetFilenames_FileListing_OutputVariable></messages>
    This then follows with a GET that fails:
    <messages><input>
    <InvokeGETfile_SynchRead_InputVariable><part name="Empty" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><empty xmlns="http://xmlns.oracle.com/pcbpel/adapter/opaque/"/></part></InvokeGETfile_SynchRead_InputVariable></input><fault>
    <bpelFault><faultType>0</faultType><remoteFault xmlns="http://schemas.oracle.com/bpel/extension"><part name="summary"><summary>Exception occured when binding was invoked.
    Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'SynchRead' failed due to: No Data to process.
    No Data to process.
    File /salesforce/006Q0000007yKcd/a0eQ0000000wJVdIAM~1~technote316.TIF to be processed was not found or not available or has no content
    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>550 /salesforce/006Q0000007yKcd/a0eQ0000000wJVdIAM~1~technote316.TIF: No such file or directory</detail></part><part name="code"><code>550</code></part></remoteFault></bpelFault></fault><faultType>
    <message>0</message></faultType></messages>
    I'm guessing its some use of the jca.message.encoding I can't find anything that really explains this though. Just the http://download.oracle.com/docs/cd/E12839_01/integration.1111/e10231/adptr_propertys.htm link.
    Any help would be greatly appreciated.
    Thanks

    Hi PG,
    Is your private file in the form of Java Keystore (.jks)? I had used .ppk file and it was a success.
    If it is .jks in your case, try using the same password for private key as of keystore file (.jks). I hope you're not supplying any PASSWORD in the Adapter properties.
    Regards,
    Neeraj Sehgal

  • FTP Adapter Trigger File Configuration

    Iam using the follwing link for the Trigger File Configuration , but this does not work,
    Can please anybody help me.
    Below is my JCA Configurations in WSDl looks like for my InBound FTP .
    <jca:operation
    FileType="ascii"
    PhysicalDirectory="/DALV1I/incoming/"
    ActivationSpec="oracle.tip.adapter.ftp.inbound.FTPActivationSpec"
    DeleteFile="true"
    IncludeFiles="oc4j\.xml"
    PollingFrequency="1"
    MinimumAge="0"
    OpaqueSchema="true"
    TriggerFilePhysicalDirectory="/DALV1I/incoming/"
    TriggerFile="Purchaseorder.trg" >
    </jca:operation>

    hi
    i am facing the same prioblem whcih kburchil is posted. Error's are posted below. Looking for the solution
    <2008-12-22 17:21:54,593> <DEBUG> <default.collaxa.cube.activation> <File Adapter::Inbound> Host files.oraclecorp.com FTP command: PASS
    <2008-12-22 17:21:54,984> <DEBUG> <default.collaxa.cube.activation> <File Adapter::Inbound> FTP Command: NLST, reply:
    150 ASCII data connection for /bin/ls (/140.87.254.136,15,515) (0 bytes).
    <2008-12-22 17:21:54,984> <DEBUG> <default.collaxa.cube.activation> <File Adapter::Inbound> Control socket being read by [JCA-work-instance:FTP Adapter-14]
    <2008-12-22 17:21:55,734> <DEBUG> <default.collaxa.cube.activation> <File Adapter::Inbound> Sending event: 1 with: oracle.tip.adapter.ftp.FTPConnection@13952a4
    <2008-12-22 17:21:55,734> <DEBUG> <default.collaxa.cube.activation> <File Adapter::Inbound> FTPManagedConnection::destroy called, closing physical socket
    <2008-12-22 17:21:55,734> <DEBUG> <default.collaxa.cube.activation> <File Adapter::Inbound> Clearing Event Listeners
    <2008-12-22 17:21:55,734> <DEBUG> <default.collaxa.cube.activation> <File Adapter::Inbound> Poller enqueuing file for processing :/MySharedFolders/abc/4673202.pdf
    <2008-12-22 17:21:55,734> <DEBUG> <default.collaxa.cube.activation> <File Adapter::Inbound> Ignoring File : 4673202.pdf as it is already enqued for processing.
    Thanks in advance.
    Thanks,
    Synthia

  • Ftp Adapter Minimum File Age

    When Minimum File Age property is entered, the ftp adapter fails to work.
    It throws the following error,
    <2008-08-29 16:36:05,162> <INFO> <default.collaxa.cube.ws> <File Adapter::Outbou
    nd> Poller raising Alert for exception : 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.

    Hi,
    See the solution in this link
    Using ModificationTimeFormat in FTP adapter fails
    Hope this helps.
    Thanks
    Rahul

  • FTP Adapter XML file with Attachments in SOA 11g.

    Hi All,
    I have a unique requirements where I need to generate an XML file and write it to an FTP server through SOA 11g. The content of this XML File may contain attachments like agreement copies, terms and conditions (files in *.pdf format). Now sometimes I need to add these pdfs as attachments and include them in the XML file and write them to FTP Server from SOA 11g.
    Has anyone ever encountered such a scenario. Can you throw light on how this could be achieved.
    Thanks,
    Venkat

    I am not entirely sure by what do you mean by "including attachments inside the XML" ?
    Do you want to say that XML might contain the contents of the attachment, something like this -
    <XML_Body>
    <Attachment>content in cleartext</Attachment>
    </XML_Body>
    Or should it contain pointers like "href" inside the XML ?

  • 10.1.3.4 - ESB FTP adapter not processing the files in the input directory

    I created a process that reads from a logical inputDir. I migrated the ESB service to another box and created the same adapter connection etc. however nothing really happens in this new environment. In the opmn.log i see the following statements and no other info.
    2008-12-16 14:03:41,994> <INFO> <collaxa> <ServerManager::loadProcesses> Done loading processes for all domains
    <AdapterFramework::Inbound> Instantiating inbound part of Adapter Framework instance: OraESB
    <AdapterFramework::Inbound> Adapter Framework instance: OraESB - endpointActivation for portType=Get_ptt, operation=Get
    <AdapterFramework::Inbound> Creating new instance of Resource Adapter oracle.tip.adapter.ftp.FTPResourceAdapter
    <AdapterFramework::Inbound> Adapter Framework instance: OraESB - starting Resource Adapter oracle.tip.adapter.ftp.FTPResourceAdapter
    <FTP Adapter::Inbound> File/FTP Adapter started successfully.
    <FTP Adapter::Inbound> ENDPOINT ACTIVATION CALLED IN FTP ADAPTER
    <AdapterFramework::Inbound> Adapter Framework instance: OraESB - successfully completed endpointActivation for portType=Get_ptt, operation=Get
    <FTP Adapter::Inbound> Connection Created
    <FTP Adapter::Inbound> Connection Created
    The last message "Connection Created" keeps repeating, but no processing occurs. I tried increasing all the loggers to finest. but still nothing happens.
    any idea how to troubleshoot this ? the only difference in the environment is that the new environment has 10.1.3.4 MLR2 and the first one is just plain 10.1.3.4

    Make sure that you modified the oc4j-ra.xml file in the FtpAdapter directory and have put the correct hostname and username and password. The directory structure looks like this //some-directory/oc4j_soa/application-deployments/default/FtpAdapter/oc4j-ra.xml.

  • How to give a dynamic File Name for Receiver File/FTP Adapter.

    Hi Experts,
        I have one scenario in which we are creating a flat file of IDOC which is coming from R/3 & sending it to FTP location. For this we have configured Receiver FTP adapter with File Name Scheme as "NT.out"  & in File Consturction mode i have given as "Add Time Stamp".
        therfore while creating a file it is creating as NTyyyyMMdd-HHmmss-SSS.out
    where as my requirement is only to to add Time & not the Date. (NThhmmss.out)
        How to do this ?
        for your info we are using ABAP Mapping.
        Pl help me
    Regards,
    Umesh

    Hi Umesh,
          Add one more field to your target structure for your file name and populate that field as per your requirement like NTyyyyMMdd.out. In receiver communication channel use Variable subtiution option and give the refrence of Payload and file construction mode set as create.
    And refer the below weblogs for Variable Subtiutuion File Name Scheme
    /people/jayakrishnan.nair/blog/2005/06/20/dynamic-file-name-using-xi-30-sp12-part--i - Dynamic File Name Part 1
    /people/jayakrishnan.nair/blog/2005/06/28/dynamic-file-namexslt-mapping-with-java-enhancement-using-xi-30-sp12-part-ii - Dynamic File Name Part 2
    Hope this way would be solve u r problem.
    Cheers
    Veera
    >>>Reward points, if it is needful

  • How to set file permission using Oracle FTP Adapter

    Hi,
    I am using Oracle SOA Suite 11.1.1.4. I am trying to put a file using Oracle FTP adapter on unix box. The file that gets written to target system has file permission as RW/R/R. But this is a legacy system, and for them to consume this file - they expect the file permission to be RW/RW/R.
    They have set the .profile with the required permissions for the ftp user account that we are using. But still when my BPEL process writes a file to unix box through ftp adapter, the file permission is RW/R/R.
    Is there any way to control file permissions while writing files using ftp adapter? Any help would be highly appreciated.

    907597 wrote:
    But these setting needs to be done on unix server. Yes, that's the way to go... There's no config for that on FtpAdapter as far as I know...
    This setting will enable the same configurations for all other ftp accounts on the server, which doesnt sound correct. Any other way of doing this? Or can this be done only for one ftp account?You have to check if your ftp server is capable of having different umask for different ftp users... I believe most do not...
    http://h30499.www3.hp.com/t5/System-Administration/Setting-FTP-umask-per-user/td-p/2590101#.UMZ0TeEe7ng
    Cheers,
    Vlad

  • RENAME/COPY/DELETE a file using FTP Adapter in 11g using dynamic values

    Hi All
    We have a requirement to do the above for a client. I was able to find a post\blog that tells you to add the below properties in FTP adapter JCA file and it works but,
    <interaction-spec className="oracle.tip.adapter.ftp.outbound.FTPIoInteractionSpec">
    <property name="SourcePhysicalDirectory" value="foo1"/>
    <property name="SourceFileName" value="bar1"/>
    <property name="TargetIsRemote" value="false"/>
    <property name="TargetPhysicalDirectory" value="foo2"/>
    <property name="TargetFileName" value="bar2"/>
    <property name="Type" value="COPY"/>
    </interaction-spec>
    The problem is that how to assign these values dynamically (from xpath or bpel variables etc). Can somebody provide me with some pointers? Its very urgent!

    Use the below approach to set the directory and file names dynamically.
    In BPEL source mode, specify the bpelx:inputProperty. Set the values for these variables in bpel. These can also be accessed as bpel preference values.
    <invoke>
    <bpelx:inputProperty name="jca.ftp.SourceFileName" variable="SourceFileNameVar"/>
    <bpelx:inputProperty name="jca.ftp.TargetFileName" variable="TargetFileNameVar"/>
    </invoke>

  • FTP Adapter in SOA10.1.3.4.0 MLR4 doesn't work and no errors either

    Hi All:
    First my env summary:
    I have install SOA10.1.3.4.0 (with MLR4) on my laptop (Windows XP). Also I have install Filezilla Server on same laptop.
    In Fillezilla, I have configured a ftp location to "F:\MyFTPServer" directory. F drive is a local drive on my laptop. Also I have created a user called "soa" with password "soa" to be able to access this FTP server.
    Under F:\MyFTPServer directory, I have 3 sub folders:
    In -- to get file
    Out -- to drop the file
    Archive -- to archive the file after get and drop
    I have successfully accessed this ftp server from other computer using either MS-DOS FTP command or FTP software (e.g. WinSCP) as user "soa". I am able to drop file to "In" dirrectory and get file from "Out" directory.
    Above confirms my FTP server is ready to be used.
    Next, in SOA 10.1.3.4.0 AS console, I have create a new Connection Factory called "*eis/Ftp/myFtpServer*" (there is a seeded one called eis/Ftp/FtpAdapter and I didn't touch/configure it).
    the following is the settings for eis/Ftp/myFtpServer
    host: my laptop computer name
    port: 21
    ftpAbsolutePathBegin: /
    ftpPathSeparator: /
    listParserKey: WIN
    username: soa
    password: soa
    serverType: win
    for the rest settings, I leave as default.
    Then, I create a simple BPEL process with following components:
    One FTP Adapter called "MyFTP" with following parameters:
    <jca:operation
    FileType="ascii"
    PhysicalDirectory="In"
    ActivationSpec="oracle.tip.adapter.ftp.inbound.FTPActivationSpec"
    PhysicalArchiveDirectory="Archive"
    DeleteFile="true"
    IncludeFiles=".*\.csv"
    PollingFrequency="60"
    MinimumAge="60"
    FileModificationTime="FileSystem"
    ModificationTimeFormat="4,18,yyyyMMddHHmmSS"
    OpaqueSchema="false"
    </jca:operation>
    <service name="MyFTP">
    <port name="GetFile_pt" binding="tns:GetFile_binding">
    <jca:address location="*eis/Ftp/myFtpServer*" UIincludeWildcard="*.csv" />
    </port>
    </service>
    I create one Receive activity to get file from "MyFTP" FTP Adapter.
    Using above setting, my intention is to poll any file (*.csv) from F:\MyFTPServer\In directory and receive it into my receive activity.
    I deployed my project to SOA application server and stop/restart my SOA application once.
    Now, the real stuff begins:
    I dropped 2 simple, very small (size < 1KB) files called sample.csv and sample2.csv to F:\MyFTPServer\In diretory.
    In my domain.log file, I can see my BPEL process is starting polling every 1 minute without any error:
    <2010-09-16 15:29:25,015> <INFO> <default.collaxa.cube.activation> <File Adapter::Inbound> Managed Connection Created
    <2010-09-16 15:29:25,015> <INFO> <default.collaxa.cube.activation> <File Adapter::Inbound> Connection Created
    <2010-09-16 15:30:25,016> <INFO> <default.collaxa.cube.activation> <File Adapter::Inbound> Managed Connection Created
    <2010-09-16 15:30:25,016> <INFO> <default.collaxa.cube.activation> <File Adapter::Inbound> Connection Created
    Meanwhile, I am observing Filezilla server log and it clearly said every one minute (the timestamp match to bpel domain.log 100%), user "soa" login to this FTP server and list both files (sample.csv and sample2.csv) in "In" directory. Then it quits.
    However, I don't see any BPEL instance is created (In my BPEL project, I have cheched "Create Instance" when create my receive activity). And both files are still there in "In" folder. Per my configuration of "MyFTP" FTP adapter, the file should be deleted after it is polled successfully (*DeleteFile*="true")
    (000132)9/16/2010 15:29:25 PM - (not logged in) (10.1.90.187)> Connected, sending welcome message...
    (000132)9/16/2010 15:29:25 PM - (not logged in) (10.1.90.187)> 220-FileZilla Server version 0.9.36 beta
    (000132)9/16/2010 15:29:25 PM - (not logged in) (10.1.90.187)> 220-written by Tim Kosse ([email protected])
    (000132)9/16/2010 15:29:25 PM - (not logged in) (10.1.90.187)> 220 Please visit http://sourceforge.net/projects/filezilla/
    (000132)9/16/2010 15:29:25 PM - (not logged in) (10.1.90.187)> USER soa
    (000132)9/16/2010 15:29:25 PM - (not logged in) (10.1.90.187)> 331 Password required for soa
    (000132)9/16/2010 15:29:25 PM - (not logged in) (10.1.90.187)> PASS ***
    (000132)9/16/2010 15:29:25 PM - soa (10.1.90.187)> 230 Logged on
    (000132)9/16/2010 15:29:25 PM - soa (10.1.90.187)> PWD
    (000132)9/16/2010 15:29:25 PM - soa (10.1.90.187)> 257 "/" is current directory.
    (000132)9/16/2010 15:29:25 PM - soa (10.1.90.187)> PASV
    (000132)9/16/2010 15:29:25 PM - soa (10.1.90.187)> 227 Entering Passive Mode (10,1,90,187,13,110)
    (000132)9/16/2010 15:29:25 PM - soa (10.1.90.187)> NLST /In
    (000132)9/16/2010 15:29:25 PM - soa (10.1.90.187)> 150 Connection accepted
    (000132)9/16/2010 15:29:25 PM - soa (10.1.90.187)> 226 Transfer OK
    (000133)9/16/2010 15:29:25 PM - (not logged in) (10.1.90.187)> Connected, sending welcome message...
    (000133)9/16/2010 15:29:25 PM - (not logged in) (10.1.90.187)> 220-FileZilla Server version 0.9.36 beta
    (000133)9/16/2010 15:29:25 PM - (not logged in) (10.1.90.187)> 220-written by Tim Kosse ([email protected])
    (000133)9/16/2010 15:29:25 PM - (not logged in) (10.1.90.187)> 220 Please visit http://sourceforge.net/projects/filezilla/
    (000133)9/16/2010 15:29:25 PM - (not logged in) (10.1.90.187)> USER soa
    (000133)9/16/2010 15:29:25 PM - (not logged in) (10.1.90.187)> 331 Password required for soa
    (000133)9/16/2010 15:29:25 PM - (not logged in) (10.1.90.187)> PASS ***
    (000133)9/16/2010 15:29:25 PM - soa (10.1.90.187)> 230 Logged on
    (000133)9/16/2010 15:29:25 PM - soa (10.1.90.187)> MDTM /In/sample.csv
    (000133)9/16/2010 15:29:25 PM - soa (10.1.90.187)> 213 20100916184802
    (000133)9/16/2010 15:29:25 PM - soa (10.1.90.187)> QUIT
    (000133)9/16/2010 15:29:25 PM - soa (10.1.90.187)> 221 Goodbye
    (000133)9/16/2010 15:29:25 PM - soa (10.1.90.187)> disconnected.
    (000134)9/16/2010 15:29:25 PM - (not logged in) (10.1.90.187)> Connected, sending welcome message...
    (000134)9/16/2010 15:29:25 PM - (not logged in) (10.1.90.187)> 220-FileZilla Server version 0.9.36 beta
    (000134)9/16/2010 15:29:25 PM - (not logged in) (10.1.90.187)> 220-written by Tim Kosse ([email protected])
    (000134)9/16/2010 15:29:25 PM - (not logged in) (10.1.90.187)> 220 Please visit http://sourceforge.net/projects/filezilla/
    (000134)9/16/2010 15:29:25 PM - (not logged in) (10.1.90.187)> USER soa
    (000134)9/16/2010 15:29:25 PM - (not logged in) (10.1.90.187)> 331 Password required for soa
    (000134)9/16/2010 15:29:25 PM - (not logged in) (10.1.90.187)> PASS ***
    (000134)9/16/2010 15:29:25 PM - soa (10.1.90.187)> 230 Logged on
    (000134)9/16/2010 15:29:25 PM - soa (10.1.90.187)> MDTM /In/sample2.csv
    (000134)9/16/2010 15:29:25 PM - soa (10.1.90.187)> 213 20100916184802
    (000134)9/16/2010 15:29:25 PM - soa (10.1.90.187)> QUIT
    (000134)9/16/2010 15:29:25 PM - soa (10.1.90.187)> 221 Goodbye
    (000134)9/16/2010 15:29:25 PM - soa (10.1.90.187)> disconnected.
    (000132)9/16/2010 15:29:25 PM - soa (10.1.90.187)> disconnected.
    (000135)9/16/2010 15:30:25 PM - (not logged in) (10.1.90.187)> Connected, sending welcome message...
    (000135)9/16/2010 15:30:25 PM - (not logged in) (10.1.90.187)> 220-FileZilla Server version 0.9.36 beta
    (000135)9/16/2010 15:30:25 PM - (not logged in) (10.1.90.187)> 220-written by Tim Kosse ([email protected])
    (000135)9/16/2010 15:30:25 PM - (not logged in) (10.1.90.187)> 220 Please visit http://sourceforge.net/projects/filezilla/
    (000135)9/16/2010 15:30:25 PM - (not logged in) (10.1.90.187)> USER soa
    (000135)9/16/2010 15:30:25 PM - (not logged in) (10.1.90.187)> 331 Password required for soa
    (000135)9/16/2010 15:30:25 PM - (not logged in) (10.1.90.187)> PASS ***
    (000135)9/16/2010 15:30:25 PM - soa (10.1.90.187)> 230 Logged on
    (000135)9/16/2010 15:30:25 PM - soa (10.1.90.187)> PWD
    (000135)9/16/2010 15:30:25 PM - soa (10.1.90.187)> 257 "/" is current directory.
    (000135)9/16/2010 15:30:25 PM - soa (10.1.90.187)> PASV
    (000135)9/16/2010 15:30:25 PM - soa (10.1.90.187)> 227 Entering Passive Mode (10,1,90,187,13,130)
    (000135)9/16/2010 15:30:25 PM - soa (10.1.90.187)> NLST /In
    (000135)9/16/2010 15:30:25 PM - soa (10.1.90.187)> 150 Connection accepted
    (000135)9/16/2010 15:30:25 PM - soa (10.1.90.187)> 226 Transfer OK
    (000136)9/16/2010 15:30:25 PM - (not logged in) (10.1.90.187)> Connected, sending welcome message...
    (000136)9/16/2010 15:30:25 PM - (not logged in) (10.1.90.187)> 220-FileZilla Server version 0.9.36 beta
    (000136)9/16/2010 15:30:25 PM - (not logged in) (10.1.90.187)> 220-written by Tim Kosse ([email protected])
    (000136)9/16/2010 15:30:25 PM - (not logged in) (10.1.90.187)> 220 Please visit http://sourceforge.net/projects/filezilla/
    (000136)9/16/2010 15:30:25 PM - (not logged in) (10.1.90.187)> USER soa
    (000136)9/16/2010 15:30:25 PM - (not logged in) (10.1.90.187)> 331 Password required for soa
    (000136)9/16/2010 15:30:25 PM - (not logged in) (10.1.90.187)> PASS ***
    (000136)9/16/2010 15:30:25 PM - soa (10.1.90.187)> 230 Logged on
    (000136)9/16/2010 15:30:25 PM - soa (10.1.90.187)> MDTM /In/sample.csv
    (000136)9/16/2010 15:30:25 PM - soa (10.1.90.187)> 213 20100916184802
    (000136)9/16/2010 15:30:25 PM - soa (10.1.90.187)> QUIT
    (000136)9/16/2010 15:30:25 PM - soa (10.1.90.187)> 221 Goodbye
    (000136)9/16/2010 15:30:25 PM - soa (10.1.90.187)> disconnected.
    (000137)9/16/2010 15:30:25 PM - (not logged in) (10.1.90.187)> Connected, sending welcome message...
    (000137)9/16/2010 15:30:25 PM - (not logged in) (10.1.90.187)> 220-FileZilla Server version 0.9.36 beta
    (000137)9/16/2010 15:30:25 PM - (not logged in) (10.1.90.187)> 220-written by Tim Kosse ([email protected])
    (000137)9/16/2010 15:30:25 PM - (not logged in) (10.1.90.187)> 220 Please visit http://sourceforge.net/projects/filezilla/
    (000137)9/16/2010 15:30:25 PM - (not logged in) (10.1.90.187)> USER soa
    (000137)9/16/2010 15:30:25 PM - (not logged in) (10.1.90.187)> 331 Password required for soa
    (000137)9/16/2010 15:30:25 PM - (not logged in) (10.1.90.187)> PASS ***
    (000137)9/16/2010 15:30:25 PM - soa (10.1.90.187)> 230 Logged on
    (000137)9/16/2010 15:30:25 PM - soa (10.1.90.187)> MDTM /In/sample2.csv
    (000137)9/16/2010 15:30:25 PM - soa (10.1.90.187)> 213 20100916184802
    (000137)9/16/2010 15:30:25 PM - soa (10.1.90.187)> QUIT
    (000137)9/16/2010 15:30:25 PM - soa (10.1.90.187)> 221 Goodbye
    (000137)9/16/2010 15:30:25 PM - soa (10.1.90.187)> disconnected.
    (000135)9/16/2010 15:30:25 PM - soa (10.1.90.187)> disconnected.
    I am bit of confused. In my case, there is no any error anywhere; however, FTP Adapter in my bpel project doesn't poll file either. It does login to FTP server every one minute; did a list command; then quit.
    You may suggest I change the following 2 settings in my bpel project:
    FileModificationTime="FileSystem"
    ModificationTimeFormat="4,18,yyyyMMddHHmmSS"
    however, I think they are set correctly, because it match to MDTM command result in my Filezilla server log (see above and below). The modificaiton time format starts at position 4 and ends with position 18 with correct mask
    (000137)9/16/2010 15:30:25 PM - soa (10.1.90.187)> MDTM /In/sample2.csv
    (000137)9/16/2010 15:30:25 PM - soa (10.1.90.187)> 213 *20100916184802*
    Can anyone offer me some help? I am desperately want make this work so that I can show this example to others here.
    Thanks in advance!
    Kevin
    Edited by: user3026501 on Sep 16, 2010 1:44 PM
    Edited by: user3026501 on Sep 16, 2010 1:47 PM

    After I delete following 2 lines, I got some error in domain.log
    FileModificationTime="FileSystem"
    ModificationTimeFormat="4,18,yyyyMMddHHmmSS"
    Error in domain.log
    <2010-09-29 11:01:56,358> <INFO> <default.collaxa.cube.activation> <FTP Adapter::Inbound> Managed Connection Created^M
    <2010-09-29 11:01:56,358> <INFO> <default.collaxa.cube.activation> <FTP Adapter::Inbound> Connection Created^M
    <2010-09-29 11:01:56,405> <ERROR> <default.collaxa.cube.activation> <FTP Adapter::Inbound> Error in creating FTPTimeMask^M
    <2010-09-29 11:01:56,452> <ERROR> <default.collaxa.cube.activation> <FTP Adapter::Inbound> Could not get file modification time for : test1.csv^M
    <2010-09-29 11:01:56,452> <INFO> <default.collaxa.cube.activation> <FTP Adapter::Inbound> Poller raising Alert for exception : 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.
    ^M
    Here is my latest jca:operation definition:
    <jca:operation
    FileType="ascii"
    PhysicalDirectory="In"
    ActivationSpec="oracle.tip.adapter.ftp.inbound.FTPActivationSpec"
    PhysicalArchiveDirectory="Archive"
    UseRemoteArchive="true"
    DeleteFile="true"
    IncludeFiles=".*\.csv"
    PollingFrequency="60"
    MinimumAge="120"
    OpaqueSchema="false" >
    </jca:operation>
    Any more suggestion?
    Thanks!
    Kevin

  • TimestampOffset in FTP Adapter activation agent properties

    Hi all,
    I am having an issue using the "timestampOffset" FTP Adapter activation agent property on an SOA Suite 10.1.3.4/MLR#9 (Linux) system.
    I have a BPEL process that is being launched via the FTP Adapter when a particular file appears on a remote SFTP server. I am polling for this file every 5 mins, and don't want to retrieve it unless it is at least 15 minutes old. The SFTP server from which I am retrieving this file is configured with a different timezone than the SOA Suite server on which the BPEL process is running; the SOA Suite server has a timezone of MST (GMT-7) and the SFTP server has a timezone of GMT. Here is the relevant section from the WSDL for this PartnerLink:
    <jca:operation
    FileType="binary"
    LogicalDirectory="TriggerDirectory"
    ActivationSpec="oracle.tip.adapter.ftp.inbound.FTPActivationSpec"
    DeleteFile="true"
    IncludeFiles="external_ids_trigger\.txt"
    PollingFrequency="300"
    MinimumAge="900"
    ModificationTimeFormatOld="43,54,MMM dd yyyy"
    FileModificationTime="DirListing"
    ModificationTimeFormat="43,54,MMM dd HH:mm"
    OpaqueSchema="true" >
    </jca:operation>
    I attempted to compensate for this by adding the "timestampOffset" property to the activation agent in bpel.xml (also included in the jdev_files.zip attachment); this is detailed in the document "Oracle Application Server Adapters for Files, FTP, Databases, and Enterprise Messaging User’s Guide 10g Release 3 (10.1.3.1.0) B28994-01". Here is the activationAgents section from the bpel.xml file:
    <activationAgents>
    <activationAgent className="oracle.tip.adapter.fw.agent.jca.JCAActivationAgent" partnerLink="PollForTriggerFile">
    <property name="TriggerDirectory" type="LogicalDirectory">/uazsa/uazsaprd/integration/output</property>
    <property name="portType">Get_ptt</property>
    <property name="timestampOffset">25200000</property>
    </activationAgent>
    </activationAgents>
    When deploying this BPEL project to the server, it shows the "timestampOffset" property for the JCA adapter in the log, as follows:
    <2010-01-17 11:23:39,619> <INFO> <default.collaxa.cube.activation> <AdapterFramework::Inbound> JCAActivationAgent::initiateInboundJcaEndpoint - Creating and initializing inbound JCA endpoint for:
    process='bpel://localhost/default/External_System_ID_Sync~1.0/'
    domain='default'
    WSDL location='PollForTriggerFile.wsdl'
    portType='Get_ptt'
    operation='Get'
    activation properties={TriggerDirectory=/uazsa/uazsaprd/integration/output, timestampOffset=25200000, portType=Get_ptt}
    However, this setting appears to have no effect, as when the adapter polls for the file, it finds it, but does not process it. I have turned up logging on default.collaxa.cube.activation to DEBUG, and I see the following when it polls for the file:
    <2010-01-17 12:18:40,342> <DEBUG> <default.collaxa.cube.activation> <FTP Adapter::Inbound> Opening sftp channel
    <2010-01-17 12:18:40,342> <DEBUG> <default.collaxa.cube.activation> <FTP Adapter::Inbound> Opening an SFTPChannel
    <2010-01-17 12:18:40,357> <DEBUG> <default.collaxa.cube.activation> <FTP Adapter::Inbound> Opened sftp channel
    <2010-01-17 12:18:40,357> <DEBUG> <default.collaxa.cube.activation> <FTP Adapter::Inbound> Getting list of files in directory: /uazsa/uazsaprd/integration/output
    <2010-01-17 12:18:40,386> <DEBUG> <default.collaxa.cube.activation> <FTP Adapter::Inbound> Obtaining attributes for file: /uazsa/uazsaprd/integration/output/emplids_nouaid.txt
    <2010-01-17 12:18:40,386> <DEBUG> <default.collaxa.cube.activation> <FTP Adapter::Inbound> Obtaining attributes for file: /uazsa/uazsaprd/integration/output/external_ids_trigger.txt
    <2010-01-17 12:18:40,386> <DEBUG> <default.collaxa.cube.activation> <FTP Adapter::Inbound> Timestamp from fileInfo=[1263770351000]
    <2010-01-17 12:18:40,386> <DEBUG> <default.collaxa.cube.activation> <FTP Adapter::Inbound> Current System Time : 02010.January.17 12:18:40:386
    <2010-01-17 12:18:40,386> <DEBUG> <default.collaxa.cube.activation> <FTP Adapter::Inbound> File Modification Time : 02010.January.17 16:19:11:00
    <2010-01-17 12:18:40,386> <DEBUG> <default.collaxa.cube.activation> <FTP Adapter::Inbound> The file : /uazsa/uazsaprd/integration/output/external_ids_trigger.txt is being ignored as its minimum age period is still valid for -> 15330614 milliseconds.
    <2010-01-17 12:18:40,386> <DEBUG> <default.collaxa.cube.activation> <FTP Adapter::Inbound> Obtained a list files
    <2010-01-17 12:18:40,386> <DEBUG> <default.collaxa.cube.activation> <FTP Adapter::Inbound> Closing sftp channel
    <2010-01-17 12:18:40,386> <DEBUG> <default.collaxa.cube.activation> <FTP Adapter::Inbound> Closing SFTP Channel oracle.tip.adapter.ftp.SshImpl.SFTPChannelImpl@f1c9c6
    <2010-01-17 12:18:40,387> <DEBUG> <default.collaxa.cube.activation> <FTP Adapter::Inbound> Closed sftp channel
    What needs to be done to have the timestampOffset property in bpel.xml honored by the activation agent? Any help is greatly appreciated! I have opened up an SR with Oracle on this as well, but sometimes the forums prove to be a quicker path to problem resolution. :)
    Thanks,
    --Gary                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Thanks for the reply, Anirudh.
    Can you elaborate? The last part of section A.3.3. in the URL you posted is exactly what I did...I specified the "timestampOffset" property to the activation agent properties in bpel.xml. I specified the offset as the time difference (in milliseconds): 7 hrs = 7*60*60*1000 = 25200000. The value they provide in that example is puzzling: 2592000000 would be an offset of 720 hours! Maybe I'm misunderstanding something about this property?
    Thanks,
    --Gary
    Edited by: user2088227 on Jan 17, 2010 8:25 PM

  • InterConnect - FTP adapter:Message queue empty

    Hi,
    I have installed oracle InterConnect 9.0.4.
    The send point and receive end point are configured as separate folders
    ota.send.endpoint=ftp://hcsdlx01/interexample/sender/
    ota.receive.endpoint=ftp://hcsdlx01/interexample/receiver
    We have placed an xml file at the sender location.
    And trying to retrieve at reciever end point
    But we are getting a message saying message queue empty in the oailog.txt
    can anyone shed the possible sources of error.
    Regards
    Venkat

    Finally succeeded in spotting error.
    The FTP adapter.ini file was not configured properly
    The point is that The send point and receive points should be as per the file system.
    In our case the endpoint as we see in browser say:
    ftp://example/endpoint
    but in the file in Unix server was
    <dir1>/<dir2>/endpoint
    In the adapter.ini we changed to endpoint = <dir1>/<dir2>/endpoint.
    It started working properly,
    Thank u marcus

Maybe you are looking for

  • Did I destroy my 'puter with Native Instruments?

    I just installed Komplete. Just for reference, I currently have 1.5GB ram and have ordered another 2GB. I've noticed during the install that it only let me put the samples for three instruments on another drive - Akoustik piano, Kontakt and Battery,

  • Facing problem while implementing JMS in Weblogic 8.1

    Hi all, I am very new to JMS. I am trying to implement JMS in Weblogic. I have cofigured the server properly but while i am executing my receiver class i am getting the following error: javax.naming.NameNotFoundException: Unable to resolve 'MyJMSQueu

  • Set background image in the Interface builder

    Hi, Is there a way to set a background image for a View controller through the Interface builder? I'm using story boards. If not please tell me how to do that programatically. I need to set this background image for all my UIs. Thanks

  • OSB-Faulthandling Framework

    hi, i know that there is a fault handling framework which has many fault policies in BPEL. By configuring it,(for eg: we can configure fault binding.xml file to handle many faults in BPEL) .we can reuse that framework in all BPEL process. But now, is

  • Burning project with Toast, not built in burn utility

    okay so here's the sitch. got the project finished. but iDVD won't burn it or let me save an image cause it's like .2GB over the disc space for an SL disc and I don't have a DL burner. It just says 'remove content' but theres' nothing I can remove. T