OS commands in FTP adapter

Hi Experts,
we are trying to use the OS command in the sender FTP adapter to compress the huge text files(approx 2 GB) before we pick the file to avoid the server issues.
for which we are using the OS command,
ssh -n -l user targetserver "cd /tagetdirectory; compress ExportFile.xml;mv ExportFile.xml.Z ExportFile.xml"
The above is a single command supplied by the Basis team.
the above command makes the connection to the target server with  the user ( password not required)and then compresses the file.
I used the command in the sender FTP adapter as is.
But the message processing made the XI server unavailable  and the process got failed due to HTTP_TRANSMISSION_ERROR
Please suggest on the OS command, Is it a right command ? or do I need to add anything to it, to make it work.
Please note that for the File Adapter transport protocol "FTP", the operating system command is NOT
executed on the FTP server, but on the server hosting the Adapter Engine ( please refer to
SAP note: 841704).
Thanks,
MK

Thanks Michal,
For "FTP" the command will be executed on the but on the server hosting the Adapter Engine, right?
ssh -n -l user targetserver "cd /targetdirectory; compress ExportFile.xml;mv ExportFile.xml.Z ExportFile.xml"
the command above is opening a secure channel from the XI host to the FTP host. We have a trusted relationship set up between the xiadm and ftpadm users which will allow this to occur without a password. and then it compress the file.
Please suggest further to resolve the issue.
I really appreciate you help.
Thanks,
MK

Similar Messages

  • Operating  System commands in FTP adapter

    Hi
    I have a requirement to use "Operating System Command" option in the Sender/Receiver side File Adapter.
    And in help.sap.com they have brief notes on this.
    http://help.sap.com/saphelp_nw04/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/content.htm
    When I tried to execute some valid DOS commands like MKDIR,RENAME etc it didn't work at all.
    But process has been sucessfully completed without any error!!!
    System : XI 3.0 SP 11
    Can anyone has any inputs on this ? Pls share me some ideas with example. Is there is any limitations on this feature?
    Note: When I tried to give invalid commands hfjkhfkasdjfh,asdjdhas etc, still it is not giving any error!!. Still my File Adapter as well as entire process is successfully completed.

    Hi,
    A couple of cautionary notes.
    The OS command is executed after the file has been processed, e.g. read successfully by a sender adapter or created successfully by a receiver adapter.
    The file name processed can be accessed using %f in the OS command.
    The OS command must include the full directory path, or XI will assume the current directory which may not be where your command resides.
    Regards,
    Bill

  • 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

  • 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 with Runtime OS Command before Message Processing

    Hi PI Techies,
    I have a confusion in using Sender FTP Adapter with Runtime OS Command before Message Processing.
    Scenario is like this:
    Ftp Adapter has to pick a file from FTP server after it checks that a Blank Marker file exists on PI server AL11 directory say "tmp directory".
    For this I am using Runtime OS Command before Message Processing where a shell script will check the existence of Blank Marker file on PI server AL11 and if found , it exits the script and FTP Adpater will then pick the Actual Data File and Process it.
    Now Confusion:
    I am confused in technical execution of steps by FTP Adapter..
    Whether FTP Adapter polling initiates the Interface or Runtime OS command checking the File existence will initiate the Interface?
    May be its follish to you guys... but please answer ..
    Regards,
    Anurag

    Hi,
    I will take it other way as we need to process the Data File not Marker File ( its just for checking the Data File is completely written on FTP server).
    Other way mean " Will Poll for Data.txt File and if  found then Runtime OS Command will do connect to FTP and check if Marker File exists, if yes then delete the marker file and read the actual Data File for processing.
    Please let me know, if Marker File does not exists on FTP folder, will it still read the Data File or will it exit the Adapter execution?
    Your help is much appreciated.
    Regards,
    Anurag

  • 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 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

  • Using ModificationTimeFormat in FTP adapter fails

    Hi all,
    I'm trying to use the minimum age for files read via FTP adapter. Logging into the FTP server and doing a 'ls -l' yields
    150 Opening ASCII mode data connection for /bin/ls.
    -rwxrwxrwx 1 owner group 3799676 Jun 26 15:24 big.xml
    226 Transfer complete.
    ftp: 136 bytes received in 0.02Seconds 8.50Kbytes/sec.
    from which I deduct the format string "46,57,MMM dd HH:mm".
    Now this fails with the following message in log.xml:
    <MSG_TEXT>JCA: ORABPEL-11430
    Error in listing files in the remote directory.
    Unable to list file in remote directory.
    Any ideas on how I can find more details on the cause ?

    Hi Diego,
    Enable FINEST logging on the esb.server.service.impl.inadapter logger.
    This will provide you with the date/time string the adapter is using the run your format string against.
    You will see an entry in there along the lines of
    JCA: MDTM command returned : 213 20080715005008
    Most likely your format string should be "4,18,yyyyMMddHHmmSS"
    Validate that it is infact correct, and modify accodingly.
    Cheers,
    Goran

  • No Source Directory on Sender FTP Adapter

    Hi Guys,
    I am using a sender adapter to poll an external FTP Server. The adapter is able to see the server fine.
    My problem lies in this:
    The company in charge of the FTP server has put a restriction disallowing the 'cd' command on the ftp server.  Now in the sender ftp adapter, the source directory is a mandatory field and therefore if nothing else, I need to put a '.' into the source directory.
    This in effect will do a cd . when it logins into the ftp server.  It is here that I get an error because command cd is disallowed.
    Does anyone know how I can prevent the sender ftp adapter from automatically doing a cd command i.e. have no source directory?
    Thanks,
    Miguel

    Hi,
    I think it is not possible with file adapter .
    Have a look into this SAP note -821267 Question no 27,34.
    It may give some inputs
    Regards,
    Moorthy

  • Error File FTP adapter

    Hi,
             We need to connect to a VAN system to poll/post files. We have configured the file adapter in FTP mode, but when trying to post/poll for files, we are getting the following error:
    2009-10-09 07:17:57     Error     File processing failed with An error occurred while connecting to the FTP server '10.159.48.75:21'. The FTP server returned the following error message: 'com.sap.aii.adapter.file.ftp.FTPEx: 501 Syntax errors in parameter.     usage: %[recipient id]%[APRF]       where either [recipient] or [APRF] can be omitted.            (to change your current default SEND relationship).            %% (places you in your 'HOME' TR).   &['s'|'single'] ('get' command gets single file).   &['m'|'multiple'] ('get' command gets multiple files). '. For details, contact your FTP server vendor.
    2009-10-09 07:17:57     Error     Adapter Framework caught exception: An error occurred while connecting to the FTP server '10.159.48.75:21'. The FTP server returned the following error message: 'com.sap.aii.adapter.file.ftp.FTPEx: 501 Syntax errors in parameter.     usage: %[recipient id]%[APRF]       where either [recipient] or [APRF] can be omitted.            (to change your current default SEND relationship).            %% (places you in your 'HOME' TR).   &['s'|'single'] ('get' command gets single file).   &['m'|'multiple'] ('get' command gets multiple files). '. For details, contact your FTP server vendor.
    2009-10-09 07:17:57     Error     Transmitting the message to endpoint <local> using connection File_http://sap.com/xi/XI/System failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: An error occurred while connecting to the FTP server '10.159.48.75:21'. The FTP server returned the following error message: 'com.sap.aii.adapter.file.ftp.FTPEx: 501 Syntax errors in parameter.     usage: %[recipient id]%[APRF]       where either [recipient] or [APRF] can be omitted.            (to change your current default SEND relationship).            %% (places you in your 'HOME' TR).   &['s'|'single'] ('get' command gets single file).   &['m'|'multiple'] ('get' command gets multiple files). '. For details, contact your FTP server vendor..
    Can we directly connect to the VAN using FTP in PI, or do we need to do perform some other configuration.
    Regards,
    Shiladitya

    Hi,
      I think you need to use Seeburger's FTP adapter instead of normal FTP adapter.
    Read this discussion for more information:
    Re: Seeburger FTP Adapter And SAP PI 7.1
    Regards,
    Ravi Kanth Talagana

  • 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: exc. 550 : No such file or directory

    Hi Men,
    I'm working on 7.0 version.
    I am facing a problem with FTP adapter.
    In few words, I configured a CC FTP sender to get files from a remote server (in test mode).
    As I start this channel, CC monitor retrieves the following error message:
    "Could not process file '<getThisFile>.xml': com.sap.aii.adapter.file.ftp.FTPEx: 550 outbox: No such file or directory."
    where '<getThisFile>.xml' is filename and "outbox" is the directory.
    I presume that it recognizes the filename and the directory but the error message says "dir or file are wrongs".
    I tried the same action by command line with same user and password ftp. Result: I was able to get this file from dir "outbox".
    ...I should exclude a file permission problem.
    Here below, some Logs from "default.trc" file:
    #1.5#001125BDB332006E000000390006802E0004400DCACAD490#1196327887885#com.sap.aii.adapter.file.File2XI##com.sap.aii.adapter.file.File2XI.processFtpList()#J2EE_GUEST#0####ff6d7bd09e5b11dc9e34001125bdb332#XI File2XI[CC_FTP_SND_Order_new/BS_Arianna_DEV/]_57##0#0#Error#1
    #/Applications/ExchangeInfrastructure/AdapterFramework/Services/ADAPTER/ADMIN/File#Plain###Retrieving file 'orders.00089872.xml' failed unexpectedly with com.sap.aii.adapter.file.ftp.FTPEx: 550 outbox: No such file or directory.#
    where:
    CC_FTP_SND_Order_new is the CC sender;
    BS_Arianna_DEV related Business Service.
    'orders.00089872.xml' file to get.
    'outbox' dir path
    .... nothing else.
    Have you ever faced a similar problem? Any suggestion to fix it?
    Thanks in advance
    Alex

    Hi friends,
    FTP server is a Microsoft Windows XP [Version 5.1.2600]
    When I log in, I only change in a sub dir called outbox.
    If I put back slash before (for WinOS), the dir path is wrong (cd \outbox should mean that outbox is under root).
    Some FTP server logs:
    Nov 29 09:40:00 golem ftpd[25272]: USER 8023******
    Nov 29 09:40:00 golem ftpd[25272]: PASS password****
    Nov 29 09:40:00 golem ftpd[25272]: SYST
    Nov 29 09:40:00 golem ftpd[25272]: TYPE Image
    Nov 29 09:40:00 golem ftpd[25272]: CWD outbox
    Nov 29 09:40:00 golem ftpd[25272]: PASV
    Nov 29 09:40:00 golem ftpd[25272]: LIST orders*
    Nov 29 09:40:00 golem ftpd[25272]: CWD outbox
    Nov 29 09:40:00 golem ftpd[25272]: QUIT
    I suppose that XI works fine and FTP server receives two times the "cd outbox" command. II also suppose that this Windows FTP server  memorizes the subdir "outbox" each time I log in by FTP with user  "8023******"

  • FTP Adapter not polling

    Hi,
    We have a clustered environment in Oracle SOA 10.1.3.4 MLR#1. We are setting up 3 different bpel processes polling 3 different locations and using 3 different data source. When we deploy them none of the ftp polling is working. We looked at various blog and added property for ClusterId
    <property name="clusterGroupId">myBpelAdapterCluster</property>
    I also tried using a different clustergroupid for each of the bpel process.
    Does this clusterGroupId should be different for each BPEL process or can we use myBpelAdapterCluster for all 3. Please suggest me what may be the cause for the ftp adapter not polling.
    Thanks
    Jagan.

    I was contacted by our DBA team for an exception received while writing a file to a FTP location.
    Then i looked at the exception message and asked them to check the whether they are able to contact the ftp server using command prompt then they said the user password got expired.
    They reset the password and its working now.
    Am i missing something here :(
    Exception:
    WSIF JCA Execute of operation 'Put' failed due to: Error sending file to FTP Server.
    Unable to send file to server.
    ; nested exception is:
    ORABPEL-11429
    Error sending file to FTP Server.
    Unable to send file to server.
    Please ensure 1. Specified remote output Dir has write permission 2. Output filename has not exceeded the max chararters allowed by the OS and 3. Remote File System has enough space.
    Thanks,
    Vijay
    Edited by: veejai24 on 25-Jul-2012 07:10

  • 10.1.3.4 - FTP adapter error while file get

    I created an esb service that reads from a remote server and processes the file locally. It works fine in dev. When I migrated my esb flow to a test environment it is now throwing some error.
    <AdapterFramework::Inbound> Adapter Framework instance: OraESB - successfully completed endpointActivation for portType=Get_ptt, operation=Get
    <FTP Adapter::Inbound> Connection Created
    <FTP Adapter::Inbound> Unable to list files from '/apps/EDI/Archive/OutBound/Customer' directory on 'corpapp10' server; FTP command[NLST] returned unexpected reply code : 550
    <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.
    The dev remote server and the test remote server are different. I have done the obvious checks about server name, permissions, directory names etc. I can login to the server using windows ftp however when I go the inbound directory and type in ls, i get the following error - 550 Arguments too long. I have some 37000 files in the directory. ls -l works fine.
    I switched the ftp adapter to poll a different directory which only has 1 file, but it still gives the same error. However in this case, the windows ftp is able to list the files using ls command.
    any idea how i can make this work ?

    i undeployed the esb project and deploying it again. Now even worse, nothing happens now. It has stopped polling at all. I just see the following message in the opmn.log, but none of the files get picked up.
    <FTP Adapter::Inbound> Connection Created
    <FTP Adapter::Inbound> Connection Created
    <FTP Adapter::Inbound> Connection Created
    To be sure, I deployed it to another environment (DEV) and it works ok there.

  • No Service Error: FTP Adapter file write

    Hi,
    I am trying to write a file to a FTP server (Windows).
    I am able to connect to the FTP through command prompt and put the files as well.
    And to connect to FTP through IE, I had to uncheck "Use Passive FTP" under Tools-Internet Options-Advanced and then I was able to access folders successfully.
    But through FTP adapter, I am getting No Service Error. Below is complete error message.
    summary=<summary>Exception occured when binding was invoked.
    Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'Put' failed due to: Error sending file to FTP Server.
    Error sending file to FTP Server.
    Unable to send file to server.
    Please ensure 1. Specified remote output Dir has write permission 2. Output filename has not exceeded the max chararters allowed by the OS and 3. Remote File System has enough space.
    The invoked JCA adapter raised a resource exception.
    Please examine the above error message carefully to determine a resolution.
    </summary>
    ,detail=<detail>No Service Error.
    No Service Error.
    No service available for host: 10.91.10.38
    Check the error stack and fix the cause of the error. Contact oracle support if error is not fixable.
    </detail>
    ,code=<code>null</code>}
    Thanks

    I was contacted by our DBA team for an exception received while writing a file to a FTP location.
    Then i looked at the exception message and asked them to check the whether they are able to contact the ftp server using command prompt then they said the user password got expired.
    They reset the password and its working now.
    Am i missing something here :(
    Exception:
    WSIF JCA Execute of operation 'Put' failed due to: Error sending file to FTP Server.
    Unable to send file to server.
    ; nested exception is:
    ORABPEL-11429
    Error sending file to FTP Server.
    Unable to send file to server.
    Please ensure 1. Specified remote output Dir has write permission 2. Output filename has not exceeded the max chararters allowed by the OS and 3. Remote File System has enough space.
    Thanks,
    Vijay
    Edited by: veejai24 on 25-Jul-2012 07:10

Maybe you are looking for

  • Startup failure after the mass updates install

    Hello MacWorld:-) I really hoped I will never have to post anything here as long as I have Mac:-) and for almost a year nothing happened, everything worked smooth and easy. But several days ago I decided to install a number of updates, like about 10.

  • ESS:WebDynpro Based Personal Information iviews.?

    Hi All, I am configuring ESS Personal Information. Using Ecc 5.0 , mySAP ERP 2004 60.2 ESS BP and EP6.0. Has anybody configured WebDynpro based Personal Information for country specific India version( country code:40)..Am able to get ITS based Person

  • Caller display problem

    been having problems with my caller display it has been reported several times in last 3 weeks engineers came out and said it was my telephone at fault now tried 3 different brand new phones in the master socket and all just display "incoming call" t

  • HT201741 how to get expose for mac air 10.8.2

    Hay al you mac-rats ,i'm coming from windowsPC and use tiles alot, I do not see this in 10.8.2 My new Air

  • Audio stops playing on page change

    Audio stops playing on page change if horizontal sliding only is checked. But it works when it is unchecked (InDesign CC)  I would like it works in both cases. Is it possible ? I know it was not possible a few months ago... Have another question : au