Archive Faulty Source File

We have an issue in moving the faulty source files to a particular directory.
We could move all successfully processed files to an archive directory, but not able to move the error files (having some data issue) to another archive directory, so that we can continue with processing of other files.
Module  used:
AF_Modules/MessageTransformBean  --> 1
Parameter:
Transform.PermanentErrors --> true
But this is not working. 
I see a similar thread which is not answered:
Re: Archive Faulty Source File
Your inputs are appreciated.

I actually have two scenarios:
1. Asynchronous
2. Synchronous
In Asynchronous; best part is, all files are getting processed, in spite if there are any erroneous files in between, at least it continues with next file.  My problem here is, it archives all successful and error files to the same Archive directory; though I have mentioned different directory for u2018Faulty Source Fileu2019. And there are no errors when I see in the CC monitoring. But there is error in sxmb_moni (actually I have failed it intentionally)
Runtime exception occurred during application mapping com/sap/xi/tf/_CreateProductMaster_to_CreateProdu~; com.sap.aii.utilxi.misc.api.BaseRuntimeException:The element type "Products" must be terminated bythe matching end-tag "</Products>".
In  Synchronous: If there are any error files in between:  it never go to the next file, it is stuck in the same file and retries the same.   And error in CC monitoring is:
Error: com.sap.engine.interfaces.messaging.api.exception.MessagingException: Application:EXCEPTION_DURING_EXECUTE:
In sxmb_moni
Runtime exception occurred during application mapping com/sap/xi/tf/_CreateProductMaster_to_CreateProdu~; com.sap.aii.utilxi.misc.api.BaseRuntimeException:The element type "Products" must be terminated bythe matching end-tag "</Products>".

Similar Messages

  • Error with Archiving Faulty Source File in Sender FTP adapter

    Hi All,
    I have configured a Sender FTP adapter with Processing Mode as Archive.
    I am able to read the files from FTP server and archive all the successfuly processed file in the PI aplication server directory XXX/success.
    We need all the error files also to be archived on PI application server in directory XXXXX/Fail so I have checked the option Archive faulty Source Files and provided the application directory  XXXXX/Fail .
    I have unchecked the option Archive Files on FTP server.
    But the problem is when FTP adapter is getting any error files it is not able to archive it to application directory  XXXXX/Fail .
    In RWB it is showing the error
    Unable to archive faulty input file /data/abc.txt to /XXXX/fail/abc.txt
    Cause: com.sap.aii.adapter.file.ftp.FTPEx: 550 rename: No such file or directory
    This directory is existing and works fine when I give this directory name in Archive directory of processing mode.
    Sender FTP adapter is trying to archive the file in FTP server which I dont want and giving us this error.
    If I give any Directory which is present in FTP server my error files are getting archived on FTP server but not in the archived folder.
    I have already unchecked the option Archive Files on FTP server.
    Please help......
    I am on PI 7.11
    Regards
    Henery H

    Hi Henery,
    Check the below thread, this should help you to fix the issue.
    FTP adapter: exc. 550 : No such file or directory
    Thanks,

  • Archiving faulty Source file not working in Sender Adapter FCC

    Hi Experts,
    I have enabled "Archiving Faulty Source File" in Sender Adapter FCC and pen down the directory path accordingly.
    Likewise I also enable the processed mode as "archive" and give it the direcotory path.
    However when there is a error flagged in sxmb_moni for this interface, I unable to see any file created in the error folder but I can see a file with timestamp being created in the archive folder.
    I have checked the access right to the directory, so this is not an issue. I ran through the forum on this subject and come across the help.sap note on the following
    " 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.
    More information: MessageTransformBean, Migrating Dispatcher Classes
    ○       Specify the Directory for Error Archiving.
    ○       To add a time stamp to the archived file, select Add Time Stamp. "
    What is the definition as "permanent error". The error I got in sxmb_moni is a mapping conversion error, so it should be archive this to the error folder, right ?
    Anyone have any such setting enabled and working ?
    Regards
    FNG

    The error I got in sxmb_moni is a mapping conversion error, so it should be archive this to the error folder, right ?
    No, it is not the case. As mentioned on the SAP Help site, for the faulty file to be archived, the error has to occur in content conversion, or in module processor.
    If the error you are getting is in MONI, then it means syntactically the file is correct and hence adapter engine has picked up and sent to integration engine (SXMB_MONI).
    -Supriya.

  • Processing Mode = 'Delete'; Archive Faulty Source Files; Add Timestamp ?

    XI3.0 SPS 19
    For FTP Sender adapter, if Processing Mode is Delete, and you want to Archive Faulty Source Files with an added timestamp, it does not work (meaning it does not archive the faulty source file at all).
    Any suggestions?
    If I change the processing mode to Archive, it works. But my requirement is to archive only faulty files after adding timestamp and the source files should be deleted if processed.
    Thanks
    JB

    Hi james
    If you are using FCC or Modules then only Faulty files will be archived.
    The error that works with this should be a permanent error of file like field missing or compulsory field etc.
    if i understand correct you are trying to use Archive faulty messages in delete mode and you have FCC right ?
    I have also seen this behavior in delete mode it File adapter never archive. So it wont archive the faulty file as well.
    Thanks
    Gaurav

  • Archive Faulty Source files

    Hi all,
    What is the use of "Archive Faulty Source files" option in Sender File FTP adapter. When I can use it.
    In general, we can expect error only at the mapping level in moni in that case file would have already been picked from the source directory and then deleted.
    But I think when we enable this option, I feel like the file has to still remain in the source directory after having failed to process and this file has to be archived in a seperate directory for error messages. How do I achieve this and when can a file remain in the source directory itself without being deleted in case of error other than mapping error which is seen in Moni.
    Regards,
    Nithiyanandam

    Hi Nithiyanandam,
    I faced the same issue of faulty files not getting archived to the fault archive folder.
    But finally I realized that the XML validation is happening at Integration engine and not at adapter level so it archives all the files which are getting read.
    I checked the option of validation by adapter in ICO(this can be done only while creating ICO, otherwise it is greyed out) and this can also be checked in Sender agreement.
    Finally the files were getting archived to fault archive folder in case of invalid xml files and valid ones to original archive folder.
    There is no need to message transformation bean for achieving this.
    Although late but I hope its was helpful!
    Thank You,
    Indu Khurana.

  • Archiving faulty source files in file sender adapter

    Hi All,
    I have configured file to file scenario in which files are read from FTP server & moved to archive directory after processing & new file is created in target directory.
    Scenario is working fine with above mentioned case but I want to move faulty source files to different directory (not to archive directory). There is one option available to move it to different directory. But instead of moving faulty files to faulty directory, files are getting moved to archive directory  & I am getting  Mapping Exception error in SXMB_MONI (which is correct).
    Does any body know how to move faulty files to fautly directory ..???
    I am using PI 7.0

    hi,
    xi does not validate your message
    (so it does not know if it's good or faulty)
    so you can send anything, even jpg files... 
    only when you use MESSAGE MAPPING
    will the error occure - indicating that
    your message had wrong structure
    if you want to validate youself you can
    do it inside an adapter module and put it into another folder
    this will requiure a little bit of programming but
    you will have the files validate as you want
    Regards,
    michal

  • How to enable the Archive faulty source file in File adapter

    Dear XI expert,
    I want to enable the Archive Faultly source file, when the exchange step detects any error then move the source file to the ERROR folder.
    I've already applied patch XI ADAPTER FRAMEWORK CORE 7.00 SP10 but haven't seen anythings about this function.
    Best regards,
    Kobsak

    Hi,
    Check out this link for info on how to archive the file.
    http://help.sap.com/saphelp_nw04/helpdata/en/14/80243b4a66ae0ce10000000a11402f/frameset.htm
    Regards,
    Vikram

  • Archive Source Files with Errors, Option Does not work

    Any one tried "Archive Source Files with Errors" on the
    sender adapter. It shows no effect.
    1.We are on SP19.
    2.Adapter type : FTP adapter.
    Steps for the Reconstruction 
    1. Configure a sender FTP adapter.
    2. choose the option "Archive Faulty source files"
    3. Specify a directory for "Directory for archiving Files with Erroors"
    4. Send a file which can cause File Content conversion errors.
    Regards,
    Raj

    Hi,
    FYI
    I am in PI 7.0 SP 10. It works fine for me. Whenever you have any content conversion problem or module problem, it has created the same input file in specified directory.
    In your case are u getting content conversion error in the Communication Channel ..just cross check it. If not try to get error over there and then test this feature
    Rgds,
    Moorthy

  • Archive Source Files with Errors

    Hi All,
    I need to archive my sending file in repective directory, if it has errors..
    It is mentioned in library that A permanent error occurs either during the conversion of the file content, or in a module in the module processor.
    What is permanent error?
    For example if my input file name is abc.txt which containg 3 fields id,name,address.
    i have configured sending file adapter with FCC .
    now i have given some faulty entries in abc.txt like for example 4 fields separated by comma,
    but this is a error.Asper FCC i have given only 3 fields..
    so this error file has to archive in so and so folder.
    If i check <b>Archive Source Files with Errors</b> parameter in sending file adapter.
    and specified the specified directory.
    but its not working for me. file is not picking but its not coming in the archive folder.
    In library it is mentioned to see message transfer bean link.
    there i found <b>Transform.PermanentErrors: True/False</b>.
    If we have not used message transfer bean then, in that case will this parameter <b>archive source files with errors</b> will work for FCC?
    Please suggest me .
    I would really appreciate if anyone could send a complete blog for this how to archive source files with errors in FCC?
    Thanks in Advance..
    Regards,
    Reehan

    Reehan,
    I am not sure if you are still stuck with your issue of archiving faulty source files but I came across the same issue. Please check your mode of processing. The faulty source files archiving feature will work good in ARCHIVE mode but not in test or delete mode. I haven't check for set for read-only mode.
    Good luck!

  • Archiving Processedor Errored Files on FTP folder-Receiver File Adapter

    Hello,
    A quick question, we have a scenario where we are picking a file from FTP folder and we need to archive it on the
    1) Processed file on the same FTP server different folder
    2) errored file on different FTP folder.
    How could we achieve this using the FILE Adapter?
    As what i could see the file adapter does not gives you the option to select the FTP site for this...
    Help is appreciated.
    Regards

    To archive source files where a permanent error occurred during processing, select Archive Faulty Source Files.
    A permanent error occurs either during the conversion of the file content, or in a module in the module processor.
    More information: Adding MessageTransformBean in the Module Processor
    u25CB       Specify Error Archive Directory.
    u25CB       To add a time stamp to the archived file, select Add Time Stamp.
    ref: http://help.sap.com/saphelp_nwpi71/helpdata/EN/44/655453b48a4ddfe10000000a1553f7/content.htm

  • RH10 variable and build tag source file names

    I'm using RH10 and outputting to WebHelp. My company requires that I archive project source files to our CVS via Eclipse. I am not using RoboSource_Control and must use the company's development resources for archiving.
    Since archiving the initial project, I have been uploading only source files with modified dates.
    However, I have discovered that the files I thought were storing user variables and build tags are not the correct files to archive. Since I am uploading all files with a newer date and that's not working, I need to know the user variable source file name and the build tag source file name that stores the currently defined variables and build tags.
    I have already tried the WebHelp forum and was directed to this forum to pose the question because I'm looking for source file information instead of output file information.
    Thanks for your help!
    karen

    Yes, Eclipse does work that way. However, we do not use our development directory as the local Eclipse repository. I need to move changed files to the local repository (stores all source files in the project) so that Eclipse can upload changes to the server. Yes, this is planned redundancy.
    That said, it is not acceptable to spend the time copying all files in the large projects from the work folder to the local repository. I simply need to know which individual files to copy that include the currently defined variables and build tags. Note, we do not copy the SSL folder output files to our local source file repository, or other associated reference files that are not actually project source files.
    Can you find someone who knows which files I need?
    Thanks,
    karen

  • Archiving of EDI File

    Hello,
               I have an EDI file which is processed using seeburger adapter and does the processing ,I am able to do all this,but
    now  I want to archive the source file received ,is there any parameter with seeburger adapter bic module or some other moduleof the same  through which we can archiving the received file
    Replies will be beneficial to me...
    I have searched the forums but of no use...
    Thanks in Advance
    Rajesh

    First of all thanks for your quick replies
    What do you mean by appending EDI files?*
    I mean if  i receive 3 files say EDI1,EDI2 and EDI3
    then in archived folder i should have file with all three EDI files data in that file one after other .. I hope got it..
    Is this can be achieved with FileStore? Also I dont have document regarding the module FileStore
    If any parameters of the same helps in this case ,Can you just provide them or its very helpful if you can share the document
    Thanks in Advance
    Rajesh

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

  • How to Archive Source Files with error in XI ?

    Hi,
          How to archive source files where a permanent error occurred duing processing? and how to set it?
    Thank you in advance.
    Yinglak

    Hi,
    What exactly u want to do.........If u want to Archive ur sender file then give Archive directory path and if u process the file with error data or success data it will store in Archive directory.
    Archive Directory is used to store the sender files what ever  data ur sending ........not for only error records.
    Regards,
    Phani
    Reward points if Helpfull

  • 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

Maybe you are looking for