Sender File Adapter: Adapter Module to archive incoming file?

Dear experts,
I have ZIP files coming from an external system which a File Sender adapter picks up from the PI file system. I already added the PayLoadZipBean Module to unzip the file in order to be able to map the payload. It works fine.
Now in the tab "Processing" --> "Processing Mode" I have the option to choose "Archive" and give a path. That way I can archive them also on the PI file system.
But how could I choose an FTP location here? Can I or would I have to write an adapter module?
In case for an adapter module how do I access the incoming ZIP file? Any ideas?
Thank you for any help and best regards,
Peter

Hi Peter,
I'm afraid you are not fully right about the archiving. Choosing Processing Mode = Archive leads to the file being moved to a different directory once it is processed. According to SAP Help:
Processing Mode
○       Archive
Files that have been successfully processed are moved to an archive directory.
■       To add a time stamp to a file name, select the Add Time Stamp indicator.
The time stamp has the format yyyMMdd-hhMMss-SSS. The time stamp ensures that the archived files are not overwritten and it enables you to sort them according to the time that they were received.
■       Under Archive Directory, enter the name of the archive directory.
■       If you want to archive the files on the FTP server, set the Archive Files on FTP Server indicator. If you do not set the indicator, the files are archived in the Adapter Engine file system.
See here for further details:
http://help.sap.com/saphelp_nw04/helpdata/en/e3/94007075cae04f930cc4c034e411e1/content.htm
Hope this helps,
Grzegorz

Similar Messages

  • To much files in archive of file adapter

    Dear all,
    on a day in november the RWB and the sxmb_moni show about 150 messages that
    have been processed by a sender file adapter.
    On the file system we have two files (all in all 152) more in our archive for this day. Neither the day
    before nor the day after have a different amount of messages so that the two message
    could not be a problem of late processing (for example over midnight).
    I also check that no empty files where in archive.
    My question: What kind of problem could appear that a message get processed through file adapter and save
    to archive folder but not getting processed by adapter engine or integration engine?
    Thanks
    Chris

    Hi,
    My question: What kind of problem could appear that a message get processed through file adapter and save
    to archive folder but not getting processed by adapter engine or integration engine?
    There can be few situations when this can happen.
    For example - say you are sending out a proxy from PI to R3 / BW system. Your sender file channel will read and archive the file, but when the PI tries to generate the proxy, it encounters an error - "User is not authorized to process messages" ... Means, the id that PI is using to send and process the proxy in R3 is not having proper authorization.
    But once you have fixed this problem, you can re-start the message from MONI in PI.
    Similarly, there can be other cases when this situation can arise.
    So, for those 2 extra archive files, you might be interested in checking the logs in MONI / RWB if any message went into error.
    Regards,
    Neetesh

  • Comparing incoming file name having timestamp with system time.

    Hi,
    The scenario is File to FIle.
    i have to read the incoming file name which will be having time stamp.
    compare the time stamp with the system time .
    if the difference in time is within specified time then send the file to target location,else send a mail that file is not placed in target location.
    please enlight me on how this scenario can be done.
    Thanks,
    Akkasali.

    if you mean the actual time stamp on the file and not the file name then ref: http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417300)ID2044216150DB12410233167314983393End?blog=/pub/wlg/15154
    else if you mean the time stamp on the file name itself then use dynamic configuration and then read the file name and do the further processing - /people/shabarish.vijayakumar/blog/2009/03/26/dynamic-configuration-vs-variable-substitution--the-ultimate-battle-for-the-file-name

  • Archived log files not registered in the Database

    I have Widows Server 2008 R2
    I have Oracle 11g R2
    I configured primary and standby database in 2 physical servers , please find below the verification:
    I am using DG Broker
    Renetly I did failover from primary to standby database
    Then I did REINSTATE DATABASE to returen the old primary to standby mode
    Then I did Switchover again
    I have problem that archive logs not registered and not imeplemented.
    SQL> select max(sequence#) from v$archived_log; 
    MAX(SEQUENCE#)
             16234
    I did alter system switch logfile then I ssue the following statment to check and I found same number in primary and stanbyd has not been changed
    SQL> select max(sequence#) from v$archived_log;
    MAX(SEQUENCE#)
             16234
    Any body can help please?
    Regards

    Thanks for reply
    What I mean after I do alter system switch log file, I can see the archived log files is generated in the physical Disk but when
    select MAX(SEQUENCE#) FROM V$ARCHIVED_LOG;
    the sequence number not changed it should increase by 1 when ever I do switch logfile.
    however I did as you asked please find the result below:
    SQL> alter system switch logfile;
    System altered.
    SQL> /
    System altered.
    SQL> /
    System altered.
    SQL> /
    System altered.
    SQL> SELECT DB_NAME,HOSTNAME,LOG_ARCHIVED,LOG_APPLIED_02,LOG_APPLIED_03,APPLIED_TIME,LOG_ARCHIVED - LOG_APPLIED_02 LOG_GAP_02,
      2  LOG_ARCHIVED - LOG_APPLIED_03 LOG_GAP_03
      3  FROM (SELECT NAME DB_NAME FROM V$DATABASE),
      4  (SELECT UPPER(SUBSTR(HOST_NAME, 1, (DECODE(INSTR(HOST_NAME, '.'),0, LENGTH(HOST_NAME),(INSTR(HOST_NAME, '.') - 1))))) HOSTNAME FROM V$INSTANCE),
      5  (SELECT MAX(SEQUENCE#) LOG_ARCHIVED FROM V$ARCHIVED_LOG WHERE DEST_ID = 1 AND ARCHIVED = 'YES'),
      6  (SELECT MAX(SEQUENCE#) LOG_APPLIED_02 FROM V$ARCHIVED_LOG WHERE DEST_ID = 2 AND APPLIED = 'YES'),
      7  (SELECT MAX(SEQUENCE#) LOG_APPLIED_03 FROM V$ARCHIVED_LOG WHERE DEST_ID = 3 AND APPLIED = 'YES'),
      8  (SELECT TO_CHAR(MAX(COMPLETION_TIME), 'DD-MON/HH24:MI') APPLIED_TIME FROM V$ARCHIVED_LOG WHERE DEST_ID = 2 AND APPLIED = 'YES');
    DB_NAME HOSTNAME           LOG_ARCHIVED   LOG_APPLIED_02    LOG_APPLIED_03     APPLIED_TIME     LOG_GAP_02      LOG_GAP_03
    EPPROD  CORSKMBBOR01     16252                  16253                        (null)                      15-JAN/12:04                  -1                   (       null)

  • Archive selected files on file based camera

    The camera (Canon HFS20) has 20 GB of files. I want to archive selected files (say 5 files totally 4 GB) . The workaround on page 284 of the manual doesnt't work. Although I select the files I want to archive, FCP X archives the complete 20 GB. Anyone a solution ?

    No. An "Archive" is a direct copy of the card with a FCPX plist and special icon on the folder Archive

  • Problem while archiving faulty files in File Sender Adapter

    Hi All,
    I am facing some problem while archiving the faulty files using Sender File adapter.
    I have configured the option in the File Sender Channel to archive the files to some
    other location. I have configured some custom modules inorder to perform conversion.
    My file adapter is not archiving the faulty files. Please help me in this regard asap.
    Best Regards,
    Surya

    I have checked with all the authorization issues. It is still no archiving the faulty file.
    Can you please explain the mechanism behind this concept?
    How File adapter will decide that it is faulty? On what basis?
    How Modules play a role here?
    Regards,
    Surya.

  • Archiving TXT files in Sender File Adapter--Unformatted Way

    Hello,
    I am Archiving TXT files thru Sender file adapter, files are getting archived to specified directory.No issues in that.,
    When i open the archived files, those are not in the correct format way that i placed before file pickup.
    Header & lines got messed up side by side.
    Regards

    Hi,
    If the file that it being archived is not transformed, it should exactly be the same as the original file.
    Please make sure that you are not transforming the archive file by any means(unix script, mapping logics etc).
    As suggested above, it is advisable to open the file in the editors like textpad, ultraedit etc. The difference in the alignment could be because of the notepad editor.
    Try to open the original and archived files in any of those(textpad,ultraedit etc) editors and check.
    Please let us know if you are still able to find the difference in the alignment.
    Regards,
    Subbu

  • File sender adapter (FTP) - processing mode "Archive"

    Hello all
    We're polling files from an external FTP server. For this I created a scenario on XI according to this thread:
    When setting processing mode to "Archive" in the file sender adapter (ftp) it polls the file, stores it to the archive directory I specified and then tries to delete the file on the FTP server side. This returns me an error because we're not allowed to delete the retrieved files on the FTP server!
    Because of this error the file adapter stops further processing and does not poll all the other files.
    How can I disable this deletion mechanism while keeping processing mode to "Archive"?!?!?
    We do not want to use processing mode "Delete" or "Test" and we don't see other options to influence this behaviour.
    Thanks for any guideance on this one in advance!
    Kind regards,
    Renaud

    Hi Bhavesh
    Sorry for the late answer. Unfortunately I can't ask the application system to provide file names containing a timestamp within. The files are provided by an external partner and are retrieved by several others as well.
    In the meantime I managed to achieve this:
    In repository I created dummy data types, message types and message interfaces. No mapping programs and interface mappings!
    In configuration I created the necessary communication channels (1 ftp sender, 1 file receiver) and the required receiver and interface determinations as well as the sender and receiver agreements.
    The result of this is:
    I'm able to poll some specific files via ftp from remote host. The file names are file1.arj, file2.arj, file3.arj and file4.arj. All 4 files have the same SourceFileTimestamp (e.g. "20060727T053900Z").
    I'm able to store those 4 files 1:1 in a target directory with the same file names. Until here I did NOT need to follow this blog: <a href="/people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14: The same filename from a sender to a receiver file adapter - SP14</a>.
    As of this blog it is possible to access adapter specific attributes and make them available in message mapping using user defined functions. This way I'm able to get the SourceFileTimestamp from the polled files and use it in a message mapping. This way I'm also able to use it in variable substitution on file receiver adapter (syntax = "payload:root,1,fileTS,1") in order to dynamically create a directory with this syntax: YYYYMMDD.
    So far so good... but the only remaining BIG problem now is, that as soon as the mapping is activated and assigned in the interface determination, the created files contain the XML payload instead of the original binary content. Where has it gone? How should the target message type look like so that it can carry over the original binary file content?
    BTW: isn't it possible to post screenshots? Would be much more easier to explain things... so sorry to anyone if I wasn't clear enough!
    TIA and best regards,
    Renaud

  • Sender FTP Adapter - Archive faulty files not working

    Hello,
    We are on SAP PI 7.11 SP 06
    We have a scenario where we are reading CSV files from a FTP location.
    File Sender Adapter is polling the FTP location for CSV files, if there
    is any error during FCC we need to move the faulty file under a
    particular directory on FTP server.
    Archive faulty files tick is click under the communication channel and
    also the required directory is specified, but the functionality is not
    working.
    If there is a faulty file it is just adding a rejected prefix to the
    file and keeping the file in the polling directory. It is not moving
    the file in the rejected directory specified in the communication
    channel.
    Thanks & Regards,
    Rahul Nawale

    Are you trying to archive the file on the same FTP server or a different FTP server? Archiving the faulty file on the FTP server might not have expected results. And if you are trying to archive the file on a separate FTP server, it wouldn't probably be achieved using the simple file adapter functionalities.
    The best way would be to archive the faulty files to an NFS location on your PI server (this will certainly work, even if it's FTP mode) and then use a separate script or PI interface (file tunneling) to move these files from PI server File System to FTP archive location.
    Regards,
    Suddhasatta

  • FTP sender adapter archives empty files

    Hi.
    I have a strange problem with the ftp sender adapter.
    I receive my file without problems, and the scenario works as it should.
    The problem is with the archiving of my processed file.
    It writes the file fine to the path specified, but it is empty (user has full file permissions)
    The ftp adapter uses content conversion, and I have seen threads in the forum that tells about simular errors. But I have found no solution.
    Hope someone can help here.
    Regards...
    Peter

    File Content Conversion is usually associated with Receiver File/FTP adapters
    and Archiving the source file is an option at the Sender File/FTP Adapter.
    No, content conversion is used both in sender and receiver file/FTP adapters.
    In my case, it is in a sender adapter!
    I'm not sure what you mean when you said "The ftp adapter uses content conversion,..."
    The sender FTP adapter content converts a flat file to XML format!
    Can you let us know the details of your scenario?
    Like who / what is the sender and who/what is the receiver system?
    The scenario looks like this: "FTP -> XI -> RFC", but as mentioned before, the scenario works fine, the problem is in the FTP sender adapter that fails to save the archive file.
    If I try to use the file/FTP sender adapter in "file mode", with the same parameters, the archive file is written just fine!
    Regards...
    Peter

  • How to get the incoming file name using JMS adapter and SOAP adapter

    Hi Everybody,
       In one of my interface i need to get the file name of incoming flat file using JMS adapter at sender side. and then i am using xslt to convert it to IDOC and then posting to  SAP IDOC.
    my incoming filname are in this form price<DateTimestamp>.txt. when i do the tranformation this incoming file name should be part of one element in the IDOC which i am posting.
    EX:
    <IDOC
    <REF>price<DateTimestamp>.txt</REF>
    </IDOC>
    Hope it is clear to everybody. I need your suggestion how i can capture this incoming file name and send it as part of IDOC.
    Thanks
    raj

    If they are passing it in message id or correlation id,
    you can access it using
    <xsl:variable name="dynamic-conf" 
            select="map:get($inputparam, 'DynamicConfiguration')" />
        <xsl:variable name="dynamic-key"  
            select="key:create('http://sap.com/xi/XI/System/JMS', 'DCJMSMessageID/ DCJMSCorrelationID')" />
        <xsl:variable name="dynamic-value"
            select="dyn:get($dynamic-conf, $dynamic-key)" />
    Check this:
    http://help.sap.com/saphelp_nw70/helpdata/en/f4/2d6189f0e27a4894ad517961762db7/content.htm
    Thanks,
    Beena.

  • File Adapter - Archive Source Files with Errors.

    Hi All,
    Could you kindly give the steps as to how to configure sender File Adapter to archive source file which result in error ?.
    Cheers,
    Kushi

    Hi Kushi,
    To configure Sender File Adapter what you can do is:
    1. Create one Communication and select the adapter as File.
    2. Select the radio button Sender.
    3. Enter the source directory e.g. /temp
    4.Enter File name e.g. xi_test.xml
    5. Under Processing parameters Chose the processing mode as "Archive" from
    drop down box.
    6. Enter the path where you wnant to archive your file.
    7. Do not forget to enter the poll intervells. e.g. 60 & Quailty of service "Exactly Once".
    8. Enter file type "Binary" if your source file is XML.
    9. Check if Adapter status as "Active".
    Note: Archiving the file is regardless of erorr in file.
    It will archive all the source file.
    Regards,
    Sarvesh
    ****Reward Points, if found helpfull.

  • File adapter with modules

    Hi all
    Why is the File adapter does not work properly with modules.
    The source file does not be picked up from the source directory when I use module with the CC , but when I remove the modules it works fine.
    Do I have to activate anything or to do any set up.
    any help would be apreciated.
    thanks.

    Hi .
    It is getting a little bit complicated than I can manage to understand -)
    Those are the modules I am using
    1  AF_Modules/RequestResponseBean Local Enterprise Bean  1
    2  CallSapAdapter Local Enterprise Bean  2
    3  AF_Modules/ResponseOnewayBean  Local Enterprise Bean  3
    config.
    1  passThrough               true
    3  receiverChannel           cc_receive_from_xtl
    3  receiverService           FileAdapter
    This is what I getting from RWB
    2008-02-11 10:36:02
    Success Channel cc_sender_com_get_details: Send binary file  "D:\usr\xifileadapter\test\in\compget.txt". Size 151 with QoS EO
    2008-02-11 10:36:02
    Error: com.sap.engine.services.jndi.persistent.exceptions.NameNotFoundException: Object not found in lookup of RequestResponseBean
    How can I determine the SP of my xi whether is 19 or not.
    I hope you can help.
    best regards
    Camilla

  • Sender File(FTP protocol) Adapter not able to pick multiple files(eg *.xml)

    Dear Experts,
    I have SAP PI 7.0 installed on HP-UX. I installed Guild FTP on my Windows Vista machine.Configured File to File scenario. Sender File adapter(FTP Transport Protocol)is able to process the 'input.xml' file placed in FTP INBOX folder.
    I want to process all/multiple XML files. For this I have changed File Access Parameters in Sender Communication channel as:
    Source Directory -   /INBOX
    File Name          -   *.xml
    Immediately Sender Communication status went into red with error log messages :
    Error occurred while connecting to the FTP server "172.XX.XX.XX:21": java.lang.NullPointerException
    Please let me know what is the issue. Thanks in Advance.

    Hi
    It should work with *.xml
    Check with the connectivity as well.
    If this is still unable to process files then check with the FTP server compatibility.
    J2EE File adapter is based on RFC 959 and if GUILD FTP is non compatible to RFC format then exclusion mask may not work.
    Thanks
    Gaurav

  • How to file mask in sender seeburger SFTP adapter

    Hello Gurus,
    Please help on
    How to perform a file mask in sender seeburger SFTP adapter? eg. I want to pick all the files but not *.tmp files.
    thanks
    Kishore

    Kishore
    A work around:
    Use another interface File to file (By pass) using file adapter which does the mask exclusion of the file which are not required.
    Regards
    Raj

Maybe you are looking for

  • Frequent Kernel Panics on Snow Leopard 10.6.8

    I recently bought a used MacbookPro5,1 with a 2,4 Ghz Core2Duo Processor. It was upgraded to 4 GB of RAM and a 750GB HDD by the previous owner. When I received it yesterday, it was running 10.6.3, I think. It worked flawlessly for the first couple of

  • How to find tables in schema affected after a particular timestamp

    Hi Folks, I have a huge database size needs to be migrated and upgraded across different platforms, I done the initial migration and the upgrade test on the new server successfully to the latest release (11.2.0.4) and the new Oracle server is ready n

  • Car blue tooth caller can't hear me clearly. How can I resolve this?

    I have just installed a MEX-N5050BT which is working well except my callers cant hear me clearly. How can I resolve this? I cant find any way of increasing the volume of sound through microphone. Any ideas appreciated.

  • Why certain SRM screens unable to go to my break-points?

    Hi all, I am quite baffled by certain behavior of SRM screens. Certain screens can go to my break-points and some don't. Though I understood that MDM screens will need to be debug by JAVA... However, I am sure there must be some kind of way to actual

  • Azure Worker Role can't receive tcp connection to Port 25(Smtp)

    I have an SMTPE implementation as an Azure Worker Role. I have defined two input endpoints (port 25 and port 2525). Listener at 2525 accepts tcp connections from smtp clients. However port 25 can't receive connections. When running on emulator port 2