File Adapter archiving mode....

Putting message into send queue failed, due to: com.sap.aii.af.ra.ms.api.DuplicateMessageException: Message ID a7cbcf00-4e00-11db-bd7f-0018717400ed(OUTBOUND) already exists in database: com.sap.sql.DuplicateKeyException: ORA-00001: unique constraint (SAPSR3DB.SYS_C00135467) violated.
2006-09-27 17:17:47 Error Returning to application. Exception: com.sap.aii.af.ra.ms.api.DuplicateMessageException: Message ID a7cbcf00-4e00-11db-bd7f-0018717400ed(OUTBOUND) already exists in database: com.sap.sql.DuplicateKeyException: ORA-00001: unique constraint (SAPSR3DB.SYS_C00135467) violated
2006-09-27 17:17:47 Error Attempt to archive file "D:\SSNEDI\test\in\queue\20060926070906359.txt" after processing failed. Retry
source directory : D:\SSNEDI\test\in\queue
target directory : D:\SSNEDI\test\in\queue\FB
But, source directory not deleted 20060926070906359.txt.
Target directory exist file too.
what's the matter?

Hi Kim,
If it is in test mode,the file wont get deleted in your source direcory.  So the adpater will keep polling the file and the server will be flooded with messages.  If it is in the delete mode file will be deleted,archive mode it will be moved in to the archived directory but in the test mode file will not be deleted from your source directory and will be polled continously by the adapter.
Also go thro' this link:-
Re: Archiving ftp files
Hope this provides a solution.
Regards.
Praveen

Similar Messages

  • File Adapter Archiving Issue

    Hi,
    THe file adapter archives the file, it doesn't save the entire contents of the file in the archive folder, but saves the first recordset (row) only in XML format. Did any body face similar issue, and what's the resolution to archive the contents of the file, the way it was sent.
    Thanks
    Pandari

    Hi Anil,
    Refer Archiving concepts in below links.
    http://help.sap.com/saphelp_nw73/helpdata/en/44/682bcd7f2a6d12e10000000a1553f6/content.htm?frameset=/en/44/6830e67f2a6d12e10000000a1553f6/frameset.htm
    http://scn.sap.com/docs/DOC-35572
    Warm Regards,
    DNK Siddhardha.

  • 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 archive on error?

    Hello,
    I have a flat file scenario: flat -> XI -> flat.
    I have configured the sender channel for archiving messages after processing and it work fine.
    But what i want to do is :
    if the message is processed succesfully i want to archive the send file in the directory "c:/sucess" and if the message is processed on error (for example due to a mapping error) i want to archive the send file in the directory "c:/error". For the moment i don't see if it's possible, all the file successfull and on error are archived in the same directory.... Is it possible to use 2 directories for archiving ? One for success, second for error ?
    Thanks in advance.

    for Archive mode, please check these things in Sender Communication Channel :
    1.  Processing Mode is Archive
    2.  Archive Directory path is correct.
    3.  In Advance Tab : Set Adapter-Sepcific Message Attribute is Checked.
          Filename, direcotry, filetype are also Checked.
    You have one option on Processing Tab : Archive Faulty Source File, Please use the same.
    Sandeep

  • File adapter - archiving files after successful processing & errors

    Hi All
    In sender file adapter, I understand that we can archive files after processing them.
    After successful processing, we can archive the file, and if there are any errors, we can archive the file in a different folder (all files resulting in errors during processing are archived in a seperate folder).
    Now, see this scenario.
    My file is successfully picked up, processed and posted to receiving sap system thru proxy.
    But, if there is any application specific error (ex: duplicate id), because of which this data cannot be processed in the receiving system, how can i move the file which is archived in successful messages folder to the folder where we archive error messages?
    Is it possible?
    This is required because, when there are these kind of errors with incorrect data, we want the corresponding file to be archived in the folder where erred files are archived.
    Please let me know how we can achieve this.
    Many Thanks
    Chandra

    in file sender CC, thr is option to archive and error file store also..
    1)under processing mode - archive.. give the path thr..
    2) To archive source files where a permanent error occurred during processing, select Archive Faulty Source Files
    http://help.sap.com/saphelp_nwpi71/helpdata/en/44/658abd344a4de0e10000000a1553f7/frameset.htm

  • FIle adapter Test Mode

    Hi Guys,
                   What are the modes available in File adapter sender and receiver mode? what is Test mode for? can you pls send me a link on file adapter attributes?
    XIer

    Hi,
    Processing mode for File sender:
    <b>Archive</b>
    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.
    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.
    <b>Delete</b>
    Successfully processed files are deleted.
    <b>Test
    Files are not processed.
    Only use this mode to test the configurations of the file/FTP adapter or the Integration Engine/PCK. It is not suitable for productive operation.</b>
    <b> Set to Read-Only</b>
    Successfully processed files are given this attribute. Only writable files are processed. This selection is only available for the File System (NFS) transport protocol.
    File As receiver you have FILE CONSTRUCTION MODE
    <b>Create,Append,Add Time Stamp,Add Message ID,Add Counter.
    ,</b>
    Cheers,
    *RAJ*

  • Reg:File adapter archive Directory

    Dear team,
    Our requirement is to read a csv file from a directory and archive the file in archive folder specified in the file adapter.
    If any exception is caught,then we need to read the archieve file from archive directory rename the archive file with source file name and place it in source directory.
    On the receive activity we are able to get the source file name and source file directory.
    <receive name="Receive1" createInstance="yes"
    variable="Receive1_Read_InputVariable" partnerLink="fileRead"
    portType="ns1:Read_ptt" operation="Read">
    <bpelx:property name="jca.file.FileName" variable="srcFileName"/>
    <bpelx:property name="jca.file.Directory" variable="srcDrFolder"/>
    How to get the archive file name and archive file directory from the receive activity so that we can store in local variables.
    Pls do help.
    Thanks

    Hi,
    Another way you can accomplish your scenario. Instead of deleting or archiving in beginning just move the file from inbound to archive location after business flow completion.
    In case of error, the file will remain at original position as moving operation is at the end.
    First read the file using read operation, then at the end create a file adapter with sync read operation. Change the entries in .jca generated with below sample.
    Sample jca file.
    <endpoint-interaction portType="SynchRead_ptt" operation="SynchRead">
    <interaction-spec className="oracle.tip.adapter.file.outbound.FileIoInteractionSpec">
    <!-- Below properties are dummy except Type , it will be changed in runtime -->
    <property name="SourcePhysicalDirectory"
    value="srcdir"/>
    <property name="SourceFileName" value="abc.txt"/>
    <property name="TargetPhysicalDirectory"
    value="targetdir"/>
    <property name="TargetFileName" value="abc.txt"/>
    <property name="Type" value="MOVE"/>
    </interaction-spec>
    Then,in you bpel flow at the invoke for sync read add these two properties.
    <bpelx:inputProperty name="jca.file.SourceFileName"
    variable="varInputFileName"/>
    <bpelx:inputProperty name="jca.file.TargetFileName"
    variable="varArchiveFileName"/>
    <bpelx:inputProperty name="jca.file.SourceDirectory"
    variable="varInputDirectory"/>
    <bpelx:inputProperty name="jca.file.TargetDirectory"
    variable="varArchiveDirectory"/>
    - It is considered good etiquette to reward answerers with points (as "helpful" - 5 pts - or "correct" - 10pts).
    Thanks,
    Durga

  • File adapter - connection mode

    Hi,
    RE: File adapter
    Can someone please supply me with some information:
    What is the difference between connect mode - permanently/file per transfer?
    When does the connection get closed?
    Thanks,
    Leanne

    Hi,
    Permanently:
    An existing connection to the FTP server is used permanently.
    The connection is reestablished automatically if it is closed by the server.
    ==>> It will not get closed if the data flows continuesly.it will get closed if it is not in use. then when ever the use comes into picture means the connection will be Established automatically.
    Per File Transfer:
    A new connection to the FTP server is established for each file transfer.
    ==>>It will be closed for each and every file Transfer and will be opened every time.
    Connection mode Permanantly will be better, each and every time closing and opening is not recomended
    REgards
    Seshagiri

  • Receiver File adapter Append Mode

    Hi
    I have scenario where i am sending multiple idocs to file ...when i putting the file construction mode to append i can put multiple idoc in to file but i wanna do it on daily basis Means i wanna send the newly crated or changed Idoc on a daily basis to a single file ..
    How can i achieve that
    SV

    Hi
    You can achieve this using dynamic file names.
    Every day different files
    FileName-<DD>-<MMM>
    chk these
    /people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
    /people/sameer.shadab/blog/2005/09/23/an-interesting-usage-of-variable-substitution-in-xi
    /people/sravya.talanki2/blog/2005/08/11/solution-to-the-problem-encountered-using-variable-substitution-with-xi-sp12
    rgds
    Arun

  • Receiver file adapter archiving

    Is there any mechanisam to archive the files at receiver file adapter?

    Hi Praveen,
    Use file adapter to put the file into the archive directory and use the above mentioned OS commands in "Execute OS commands after message processing" section of Receiver file adapter.. so your file will be placed in archive folder and then copied to actual folder.
    This process is followed so as to make sure that you have the receiver file archived.. suppose you have a receiver process which will read the output of PI and delete the file .. then just to make sure we have a copy in the archive location we are first putting the file in archive directory and then copying it to the correct location
    Regards
    Suraj

  • Mainframe Integration using File Adapter (FTP Mode):: ftp commands

    Hi,
    We are trying to integrate with Mainframe system using File Adapter. (FTP mode). We are able to write the file to Mainframe system but not able to format it properly. We had to provide FTP parameter,  <b>ftp.quote site recfm=fb lrecl=150</b>
    As per SAP Note 801926 :: XI 3.0 File Adapter: Additional Parameters, the only parameter that can be used is <b>ftp.timeout</b>. Has anyone tried out using other FTP parameters? (like ftp.quote)
    Any help is grealy appreciated.
    Regards,
    Siva Maranani

    I am looking at running some OS commands especially the QUOTE SITE FILENAME, and found this OSS note:
    https://service.sap.com/sap/support/notes/841704
    In this note it says...
    "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."

  • File Adapter : Archive bad files

    Hi Friends,
    If we select the archive option while configuring the file adapter, following behaviour is seen.
    1. Files that are successfully processed, get archived to provided folder
    2. However, failed/bad files get deleted from source folder and do not get archived
    Is it possible to configure the adapter so that only failed/bad files get archived?
    Thanks,
    Sachin

    Hi Sachin,
    You can configure to handle the rejected messages in different way as given under (11.1.1.6 - check documentation for your version):
    http://docs.oracle.com/cd/E23943_01/integration.1111/e10231/life_cycle.htm#BABBHJEA
    To achieve archival of only bad files, remove Archive property from your File Adapter and configure only the rejection handler.
    Regards,
    Neeraj Sehgal

  • File Adapter Archive File Name Pattern

    Hi All,
    Thanks in advance for your answers.
    Here is my question.
    I have BPEL process that reads a file, process it and archives it.
    The process is working fine, but the archived file has timestamp attached to the file extension. since my file already has timestamp in its name, is there any way that we can configure file adapter not to add that timestamp to archived file?.
    Thanks
    Praveen

    The timestamp added to the archive filename is the time that the file was processed by bpel. i think this is good information that you can keep just in case you need to resubmit the same file for processing later. or if the file is actually processed in a different date than than on your filename's. just a thought.

  • File adapter - Archive issue with adapter module

    Hi All,
    I have 2 issues here. We are currently using PI 7.11 EHp1 SP02.
    1. Arhival with "add time stamp" wont work. It just gives us an error message saying simpledate format exception.
    I have gone through the OSS note 1265534 and thought this will resolve the issue. But our BASIS team believes this note is only applicable for PI 7.1 SP01. Can you one using PI 7.11 SP02 comment on this?
    Note: Archive option with out add time stamp works fine.
    2. When I use adapter module in my sender file configuration, the archive option itself does not work. Read the official SAP help which says "To archive source files where a permanent error occurred during processing, set the indicator.
    A permanent error occurs either during the conversion of the file content, or in a module in the module processor."
    So the question here is, how do we make the error permanent? The only way to throw error from adapter module is using the ModuleException. It has 4  different constructors. I have used both
    ModuleException me = new ModuleException ("My error Msg"); and
    Module Exception me1 = new ModuleException ("Error String", new Throwable("My error Msg");
    In both the cases, the archival wont happen.
    Any ideas welcome.
    Thanks
    Jai

    Hi,
    I am using NFS protocol here not FTP. Sorry I dint mention that earlier.
    Thanks
    Jai
    Edited by: Jaishankar on Apr 1, 2010 9:55 AM
    Edited by: Jaishankar on Apr 6, 2010 11:10 AM

  • File Adapter - Archived file name issue

    Hello all.
    I am using an 11g composite application to read from the file system and move/archive the files to a "Backup" subdirectory. Everything works well, but the archived file name has the original filename plus an extra long guid. E.g.
    File_1.DAT_156dsfsdgw67rqwedb1c6b54d6fh7yerfa16wewet168erw)-dsfsdg
    Does anyone know how I can control the archiving feature of the file read adapter? I would love for it to just move the file to the Backup folder and keep the original filename.
    I look forward to a response.
    Thank you.
    Nick G.

    Thank you Sahil. I will look into it and test. I will post my results.
    Nick G.

Maybe you are looking for