FTP File Adapter: more Archive Directory

Hello everybody,
i have some interfaces whit FTP-XI-Idoc scenarion.
we decided to save files after elaboration in different directory depending on month (yy-mm).
Example:
/Rxarchivio/0901
/Rxarchivio/0902
I see this link
https://wiki.sdn.sap.com/wiki/display/XI/SAPXIFileAdapterOSCommandLine+Feature
very helpfull but i don't know how to parameterize variable of year and month.
i try with this but don't work:
SET CC=%DATE:6,4%%DATE:3,2%
open ftp
VCE01\selzsapd
dpas_zles
cd /Rxarchivio
mkdir %CC%
mget
cd /Rxarchivio/%CC%
mput
quit
any suggestion?

Hi,
I m not taking about FTP server. Your PI is on Windows or Unix.
Id it is on UNIX the put the UNIX script to PI file system and give the path.
FTP adapter pick the file from FTP location and the pick the UNIX script from PI FIle system and run script ..archive the files and then send message for further processing.
Thanks
Aman

Similar Messages

  • AS400 - File adapter not archiving File and Member

    Hi Gents,
    Specific problem for the archiving of file/members on the AS400 system.    When the file adapter is archiving the AS400 member to an AS400 archive file it is leaving an empty file structure in the origin directory.    So at the end of the day we have a lot of AS400 Files with no members.
    AS400 Technical folks are looking for the FTP 'script' that is being executed on the AS400 to pick up the file and archive it.  
    Has anyone else encountered this AS400 problem, were you able to solve it?
    Also how can I see the exact commands being executed on the AS400 from XI?
    Thanks in advance and regards.
    Mark

    Extend the trace file to Debug in Visual Admin, and re run:
     Services
     Log Configurator
     Locations
     Choose the location (Java package) and the tracing level (severity)
    (for example, com.sap.aii.adapter.file)
     Root Location > com > sap > aii > File
     Set the severity and choose Copy Severity to Subtree.
    Check the log file which will give you the details.
    Don't forget to switch this back afterwards.
    There are also quite a few OSS Notes relating to problems with Adapter Framework and AS/400...

  • Ftp file adapter -

    Hello,
    I am using FTP - file adpter receiver in which Data conncetion is is Active. When I ran scenario I got following error on FTP file adapter.
    11.04.2008 16:11:53 Success Connect to FTP server "CorpFTP.UHC.COM", directory "/ftp/418p/put"
    11.04.2008 16:11:54 Success Write to FTP server "CorpFTP.UHC.COM", directory "/ftp/418p/put",   file "FREEMANF.U.200804111610.gsf.pgp"
    11.04.2008 16:11:54 Success Transfer: "BIN" mode, size 368397 bytes, character encoding -
    11.04.2008 16:11:56 Success Connect to FTP server "CorpFTP.UHC.COM", directory "/ftp/418p/put"
    11.04.2008 16:11:56 Error Attempt to process file failed with java.net.SocketException: Connection reset
    11.04.2008 16:11:56 Error MP: exception caught with cause com.sap.aii.af.ra.ms.api.RecoverableException: Connection reset: java.net.SocketException: Connection reset
    11.04.2008 16:11:56 Error Exception caught by adapter framework: Connection reset
    11.04.2008 16:11:56 Error Delivery of the message to the application using connection File_http://sap.com/xi/XI/System failed, due to: com.sap.aii.af.ra.ms.api.RecoverableException: Connection reset: java.net.SocketException: Connection reset.
    11.04.2008 16:11:56 Success The asynchronous message was successfully scheduled to be delivered at Fri Apr 11 16:16:56 CDT 2008.
    11.04.2008 16:11:56 Success The message status set to WAIT.
    I also tried with Passive Data Connection without any success. I got following error when I tried with passive data connection.
    11.04.2008 16:02:23 Success Connect to FTP server "CorpFTP.UHC.COM", directory "/ftp/418p/put"
    11.04.2008 16:02:23 Success Write to FTP server "CorpFTP.UHC.COM", directory "/ftp/418p/put",   file "FREEMANF.U.200804111600.gsf.pgp"
    11.04.2008 16:02:23 Success Transfer: "BIN" mode, size 368397 bytes, character encoding -
    11.04.2008 16:02:23 Success Connect to FTP server "CorpFTP.UHC.COM", directory "/ftp/418p/put"
    11.04.2008 16:02:24 Error Attempt to process file failed with com.sap.aii.adapter.file.ftp.FTPEx: 425 Can't open passive connection.
    11.04.2008 16:02:24 Error MP: exception caught with cause com.sap.aii.af.ra.ms.api.RecoverableException: Can't open passive connection.: com.sap.aii.adapter.file.ftp.FTPEx: 425 Can't open passive connection.
    11.04.2008 16:02:24 Error Exception caught by adapter framework: Can't open passive connection.
    11.04.2008 16:02:24 Error Delivery of the message to the application using connection File_http://sap.com/xi/XI/System failed, due to: com.sap.aii.af.ra.ms.api.RecoverableException: Can't open passive connection.: com.sap.aii.adapter.file.ftp.FTPEx: 425 Can't open passive connection..
    11.04.2008 16:02:24 Success The asynchronous message was successfully scheduled to be delivered at Fri Apr 11 16:07:24 CDT 2008.
    11.04.2008 16:02:24 Success The message status set to WAIT.
    I also tried ftp directly fron the XI server using command line and also using winftp utility. In both cases I was successful to ftp the file. The ftp server says we need to run in only active connection mode.
    I wonder if any one experienced same problem and how was it resolved? I appreciate your help.
    Thank you,
    Balaji

    Srini,
    Thank you for the reposne. THe Q.26 is as follows.
    Q: I have configured a File Adapter channel to connect to an FTP server, but receive one of the following error messages in the adapter monitor:
    Error connecting to ftp server '<hostname>': SocketException: Connection reset
    Error connecting to ftp server '<hostname>': SocketException: Connection refused
    Error connecting to ftp server '<hostname>': ConnectException: Connection timed out
    A: This problem is either caused by incorrect firewall / packet filter settings or an incorrect configuration of the FTP server. Also make sure that you have correctly specified the host name / IP address and port of the FTP server.
    Changing the connection type from 'active' to 'passive' (or vice versa) might additionally help to work around the incorrect firewall configuration.
    I was successful in transmitting file via ftp from XI box without any issues. If there are fire wall issues,command line ftp shall fail. I also verified that the file size is good after transmission. I have tried with both active and passive mode without any success.
    By the way I have about 6 other ftp communication channels configured and working correctly from the XI box. Please let me know if you want me know.
    Thank you,
    Balaji

  • FTP/File adapter issue (polling one file at a time)

    Hi,
    I have come across an interesting scenario. I have a folder in which many files are placed at once (around 20+).
    In my adapter I need such a logic that whenever file adapter polls the directory, it should only pick one file, wait for the specified time (in PollingFrequency interval or maybe some other way) and then poll the next file. Right now it polls all the files in one go.
    Is there any property that I can use or any other logic that can help me achieve this?
    Thanks.

    Hi,  You can use MaxRaiseSize property. Set its value to 1.

  • How to Create a Flat File using FTP/File Adapter

    Can any body done workaround on creating the Flat file using FTP/File Adapter?.
    I need to create a simple FlatFile either using of delimiter/Fixed length. using the above said adapters we can create XML file, i tried concatinating all the values into a single String and writing into a file, but it does not have proper structure
    Can any body help me out on this..
    Thanks
    Ram

    You can create a text schema while creating a File Adapter. If schema is specified for File Adapter, it takes care of converting XML into fixed length or delimited format.
    Thanks,
    -Ng.

  • How to know file name in FTP/file Adapter

    Iam new to FTP/file Adapter,
    when ever we use ftp/file adpter,
    afrter pick file from remote server/local system.
    how can i fine filename,?
    how can handling a fault,if file picked,but data is wrong ?
    How we know the picked date, time of that picked file ?
    please give me solution

    Check this : http://docs.oracle.com/cd/E25178_01/integration.1111/e10231/adptr_propertys.htm#CHDJBDHC
    Search for this topic : Table A-5 JCA Properties for Oracle File Adapter: Normalized Properties.
    After the file has been picked up, you can easily fetch the file details using "jca.file.FileName" etc (see above).
    Rest should be dealt by you, depending upon the scenario you have.
    HTH

  • EOIO service on Receiver FTP/File Adapter

    Hi,
    I have a scenario where I would like the sender adapter to be quality of service, EO (Exactly Once), and the receiver ftp/file adapter to be of quality of service, EOIO (Exactly Once in Order).  Is there a way to change the quality of service on the receiver adapter only so that it differs from the sender adapter?
    Thanks in advance.
    Best Regards,
    Duke

    Hi,
    Unfortunately changing the QoS in the adapter module does not solve the issue.  The message appears to be put into the queue prior to the module being called.  Below is the audit log.
    2007-10-26 09:58:30 Success Using connection AFW. Trying to put the message into the receive queue.
    2007-10-26 09:58:30 Success Message successfully put into the queue.
    2007-10-26 09:58:30 Success The message was successfully retrieved from the receive queue.
    2007-10-26 09:58:30 Success The message status set to DLNG.
    2007-10-26 09:58:30 Success Delivering to channel: XXXXXXX
    2007-10-26 09:58:30 Success ChangeQoS: Module called
    2007-10-26 09:58:30 Success File adapter receiver: processing started; QoS required: ExactlyOnceInOrder
    As you can see the QoS has been changed to EOIO from the adapter module, but the message is still in Qos EO.
    Am I missing something or is there another way this can be achieved?  Can we do this in the mapping somehow before it ever gets to the AFW?
    Thanks in advance.
    Best Regards,
    Duke

  • FTP Sender Adapter, Empty Archive Files

    Hi,
    When I retrieve files using a FTP sender Communication Channel and I checked the Archive check box (including an existing directory), the file is archived but it does not have any content. It is completely empty.
    The original file contains data and is processed correctly. The original file is a csv and I use FCC to convert it to XML.
    Anybody any suggestions?
    Ron

    Hi,
    The scenario is FTP --> IDOC scenario.
    The config is as follows: (not mentioned = not used)
    Source:
    Source Directory:  /Out
    Filename    File*.csv
    FTP Connection:
    Server: a.b.nl
    Port: 21
    Dataconnection: Passive
    Connection Security: None
    Username: user
    Password: pass
    Connect mode: Per File Transfer
    Transfer mode: Binary
    Processing:
    Quality of Service: Exactly once
    Poll Interval: 60 secs
    Processing Mode: Archive
    Add Timestamp: checked
    Archive directory : /usr/sap/Interfaces/
    File Type: Text
    FCC:
    Documentname: File
    Recordset Name: Lines
    Recordset Structure: Line,*
    Recordset Sequence: Ascending
    Key field type: String (Case sensitive)
    Line.fieldSeparator     ;
    Line.endSeparator     nl
    Line.fieldNames         VBELN, POSNR, RREL
    Best regards
    Ron

  • Move File Object to Archive Directory

    I am getting a file FTP'ed into a directory which I read, modify and process the data into a different directory. My question is that the origanal file that I read I would like to move to an archive directory. What is the best way to do this?
    Thank you,
    Mike

    Couple of ways, depending on the platform, and if the machine os a server, work station, etc. Can you please let us know what your config is so we can advise you better. - Bart

  • File Adapter on shared directory

    Hi,
    I am trying to use file adapter on a mapped network drive, windows machine.
    I am getting this error:
    ORABPEL-11001
    Invalid Input Directory.
    The value specified for the input (Physical/Logical)Directory activation parameter has an invalid value "O:\BCRSignatures"
    Ensure that the following conditions are satisfied for the input directory :
    1) It exists and is a directory (not a file). and
    2) It is readable (file read permissions). and
    3) If activation parameter "DeleteFile" is set to "true" then the directory should also have granted write permissions. and
    4) If using a logical name, then ensure that the mapping from logical name<-physical directory is correctly specified in the deployment descriptor
    The location is accesible for read and write within Windows.
    The error persists even with "no delete files after processing" and "no archive processed files", options.
    Any ideeas? Sugestions?
    Regards,
    Latha

    Hi Latha,
    Can the user your running your AS access the directory? Assuming you're on windows, by default the process manager service runs as the local system account. Try running the service as a named user with sufficient privileges on the directory.
    Regards,
    Pop

  • ESB file adapter on shared directory

    Hi
    I am trying to use file adapter on a mapped network drive, windows machine.
    I am getting this error:
    ORABPEL-11001
    Invalid Input Directory.
    The value specified for the input (Physical/Logical)Directory activation parameter has an invalid value "O:\BCRSignatures"
    Ensure that the following conditions are satisfied for the input directory :
    1) It exists and is a directory (not a file). and
    2) It is readable (file read permissions). and
    3) If activation parameter "DeleteFile" is set to "true" then the directory should also have granted write permissions. and
    4) If using a logical name, then ensure that the mapping from logical name<->physical directory is correctly specified in the deployment descriptor
    The location is accesible for read and write within Windows.
    The error persists even with "no delete files after processing" and "no archive processed files", options.
    Any ideeas? Sugestions?
    Metalink is poor on this.
    Thank you,
    Liviu

    HI BPEL Gurus,
    Everytime i m facing ORABPEL-11001 Errors . I dont know why its coming.can u someone give suggestion to this regards. i attach the logs as follows
    <2007-11-23 09:53:29,825> <INFO> <dev.collaxa.cube.activation> <File Adapter::Inbound> Recovery still not possible after 151110 attempts due to ORABPEL-11001
    Invalid Input Directory.
    The value specified for the input (Physical/Logical)Directory activation parameter has an invalid value "D:\igefi\bpelinterfaces\mfond\dev\Wrk_Imp_Swap_Price\WORKDIRS\input".
    Ensure that the following conditions are satisfied for the input directory :
    1) It exists and is a directory (not a file). and
    2) It is readable (file read permissions). and
    3) If activation parameter "DeleteFile" is set to "true" then the directory should also have granted write permissions. and
    4) If using a logical name, then ensure that the mapping from logical name<->physical directory is correctly specified in the deployment descriptor.
    the above message i m getting in domain.log and opmn.log
    Regards
    Hameed

  • FTPS file adapter setup fields not visible after SP13 install

    After installation of SP13, I was looking for file adapter FTPS setup (fields described in SP13 release notes). I could not see any. It's just like the old adapter.
    Java cryptolib is installed, and we checked it is there.
    we recycled the whole thing.
    Any idea what could be missing ?

    Solved. We had applied SP12 file.
    Note that this originates from the SP stack download tool.
    We had followed the generic download process and it did not contain the SP13 tpz file.
    I tried again this morning, when selecting source sp11 target sp13, The selection of packages selects
    SAPBASIS12_0-10002900.zip... and not the SP13 one.
    Watch out if you move two SP up !
    Detailed solution :
    Downloaded the SP13 zip file. the following way.
    service.sap.com  download/entry by app grp/sap content
    process integration (XI content)/ XI_CONTENT_SAP_BASIS/ XI_CONTENT_SAP_BASIS_6.40/DB independant/ selected sp13 from the list
    Unzipped, and put the tpz file in the import directory
    of the repository. file name is XI3_0_SAP_BASIS_6.40_13_02.tpz
    Imported it
    And it works now
    Thanks a lot for your help.

  • Changing of the timestamp in sender file adapter in archive mode

    Hi,
    I have a requirement where in I have to archive a file with timestamp different from that generated by XI.
    Please let me know if this can be done and if so how can we handle the changes to be made to the timestamp in the sender adapter in archive mode.
    regards,
    Srinivas.

    Srinivas,
    Option 1) Create a bat file..to run the perl script you call..
    Perl script..
    #!/usr/bin/perl -w
    print("Starter that you want to change: ");
    chomp($badex = <STDIN>);
    print("Starter that you want added: ");
    chomp($goodex = <STDIN>);
    foreach $file (<$badex*>){
        @fields = split(/$badex/,$file);
        $goodfile = ("$goodex" . "$fields[1]");
        rename("$file","$goodfile");
    Run that on the os
    That should fix it.........
    Option 2) On your local Machine create a java file..add this code to it
    public class Utils
         public static int Randomizer(){
              int randomInt = 0;
              randomInt = (int) (Math.random()*1000);
              return randomInt;
    public static void main(String[] args)
         Randomizer();
    save and compile..
    Create a bat file to add the number returned from the random to your targetFilename
    so it would be something like..
    mv oldFileName Newfilename+randomizer... and also get this command written to a file..helpful later on.........
    Hope that helps
    Regards
    Ravi Raman
    PS:Dont forget the points if helpful

  • File adapter with archiving option

    hello,
    i am using a file adapter sender with archiving option, sometimes this communication channel fail, it said not is possible archiving file...i change anything in the channel, I leave it as it was and active and then it works, what can be caused this?
    thank you

    Hi,
    sometimes this communication channel fail, it said not is possible archiving file...i change anything in the channel, I leave it as it was and active and then it works
    It shouldn't be the problem with the authorization as "unable to archive" error comes once in a while. There can be some problem with loss of network, which might be creating this error.
    A detailed error message will be helpful to assist you.
    Regards,
    Neetesh

  • File-adapter with Dynamic Directory/Filenames in Header-variables

    Hi,
    I have looked through the file-adapter documentation. And it says that you can use wildcards/regexpressions/dynamic file and directory names using the file-adapter-wizard. Also you can use the header-variables to specify the file and directory names at run-time.
    Is it also possible to use the dynamic names using the header-variables?
    I want to create a process that I can give in the file/directory-names at run-time and that it will look for a file using the wild-cards to pickup. Since at run-time I often do not know the name of the file, since it might contain a sequence or date/time-stamp. But I do know the location and the structure of the file name (that is specified at config-time).
    The same question for outbound: if I specify a name in the header-variables with forexample '%seq%' in the name, like 'filename_%seq%.XML', will it then create the file with the sequence?
    Thanks in advance.
    Regards,
    Martien

    Hi,
    I've been trhough this document over and over again, but did not find anything on how to do it actually. But I found out that the file-outbound-header wsdl does not contain a directory element after generation by the wizard. But you can add it afterwards.
    Also you can replace the location attribute in the jca:address element of the adapter-wsdl by mcf properties (host, username, password) and override them by copying the values to the partnerlink using bpelx:properties.
    I planned to put the details in my blog.
    Regards,
    Martien

Maybe you are looking for

  • Video quality is questionable

    I've recently reinstalled windows on a new hard drive as well as reinstalled Itunes and imported my libraries from my secondary drive. The video quality in ALL of my videos seems a bit questionable. It's a darker hue (maybe a bit of blue) and not as

  • Can't eject DVD...please help

    i can eject my dvd from my drive. i've tried to shutdown and hold the eject button, but it still won't eject. is there another way that i can eject this DVD? Thanks - Myke23

  • How to call different viewer according its filetype?

    Hi guys, there is a requirement. We write a custom report which shows all the attachments of a project. and the ALV report needs the drill down function too. So the question is that how it can determine its viewer in pc according its file extension,

  • Why POP emails not supported by webOS - There is no syncing

    It appears the POP and POP3 mail cannot be fully sync'd w/ webOS. For instance, if I reply to an email on my Palm Pixi it does not reflect that on my email account when accessed via the desktop and vice versa. I was told by Palm that POP is not fully

  • Airprint

    Hi, i have a new canon mg3250 printer, an airport express, and an iPhone. I'm trying to get the airprint work with the airport, usb cable inserted, but iphone does not detect the printer. Please help Sincerly Oli_vdm