Directory for archiving files with errors

HI ,
My Scenario is file to RFC Asynch.
when ever the PI picks file from the source directory that file need to delete from the path and need to be archived to some other patch.
And if the file has wrong data it need to archive to error archive folder.
For this I used  Archive processing in filesender adapter and I also used directory for archiving files with errors(for wrong data files).
Now the files are arching successfully in the given archive folder for successful messages. But the error files (wrong data which are throwing mapping error in MONI) are also archiving in the same archive folder.
But these error files need to archive in error archive folder.
How can I achieve this?
Thanks in Adv..
Vankadoath.

you can use raja's logic ..........in addition in second receiver do a simple mapping UDF to delete the file from the SUCCESS folder. otherwise your file will be archived in both the folder success and errror
see this code.
DynamicConfiguration conf = (DynamicConfiguration) para.get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
               DynamicConfigurationKey keyFileName1 = DynamicConfigurationKey
               .create("http://sap.com/xi/XI/System/File", "FileName");
                     inputFileName = conf.get(keyFileName1);
  *File f1 = new File("/usr/sap/XX/"+keyFileName1);*
  *boolean success = f1.delete();*
  *if (!success){*
  *System.out.println("Deletion failed.");*
  *System.exit(0);*
  *}else{*
  *System.out.println("File deleted.");*

Similar Messages

  • Archiving files with errors

    Hi all
    I have been working on a File(FCC) to File(FCC) Scenario. I am working on PI7.0 with SP12.  I would like to archive all the files with errors, for which the sender file adapter shows an option Archive Faulty source files.  But I am not able to archive any of the error files.  Help.sap.com mentions that this functionality works when a permanent error occurs.
    I have tried out with all possible combinations and I am still unable to archive the error file. 
    Please help!!!
    Regards
    Kartik

    Hi,
    There are two conditions that you should keep in mind while using the “Archive files with errors” option
    1.       The Processing Mode has to be Archive not Delete in case you are using the Add Time Stamp  for the archived files with errors(the second check option not the first one)
    2.       In case the processing mode is Delete you can not use the second ADD Time Stamp option but this also can archive files with errors
    Ranjit

  • Archive file with errors in sender file adapter not working! please help!

    Hi Experts,
       I have a file to RFC scenario. the input is a XML file. I have setup the flag in sender file adapter channel for archiving the input files with errors. But it is not working.
    For testing I have used an invalid xML file for example without the main XML tag. I have also tested with a MSWORD file saved with.xml extension. But in both the cases the files are not getting archived.
    My archive location permissions are fine and in fact normal archive operation is happening. That is, if I select the processing mode as "Archive" and gave the Archive directory then files are getting archived. The problem is only with the "Archive faulty source files" option.
    What am I missing? DO I need to do some more configurations?
    What are the prerequisites if any for this option?
    How to test this?
    Please help me! I will be greatfull to you all!
    Thanks & Regards
    Gopal

    and go thru this links
    Creating a Single Archive of the Version Files
    http://help.sap.com/saphelp_nw04/helpdata/en/79/1e7aecc315004fb4966d1548447675/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/31/8aed3ea86d3d67e10000000a114084/frameset.htm
    Note: reward points if solution found helpfull
    Regards
    Chandrakanth.k

  • 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

  • Use of "Archive Source Files with Errors" for BIC module error

    Hi All,
    I have Edi file to Idoc scenario , where i am using SEEBURGER BICXIADAPTER.MODULE.
    My question is if the input file caught in error with BIC Module e.g
    "MP: exception caught with cause Error in BICMODULE-module:Temporary error: BIC XI Adapter call failed. Reason: SegmentDescription: checkAndResetChildrenCounter() not enough repetitions of the segment UNH found: 0 instead of 1 offset :80 DESCRIPTION: SegmentDescription Warning: Not enough repetitions of the segment UNH ([not specified]/[not specified])."
    can we move these errornous files to another directory using Processing parameter  "Archive Source Files with Errors" available with Sender File Adapter?
    In File Adpater my Module tab looks like :
    1     localejbs/CallBicXIRaBean     Local Enterprise Bean     bic
    2     localejbs/CallSapAdapter     Local Enterprise Bean     0
    In my scenario  , its not working..  do we have any other option to achive this?

    Hi Jyoti,
    I had a raised a similar case with SAP and came to know that archiving only works if the error raised by the module is so called "Permanent". However, bic doesn't raise permanent error due to which archiving of error files won't be possible. Seeburger haven't came up with a solution yet.
    Regards,
    Prateek

  • 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

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

  • "Archive Source Files with Errors"  feature - how to?

    File sender adapter has a feature to  Archive Source Files with Errors.
    I have an adapter module applied to inbound files and in case an error occurs during the processing of the adapter module, I want to make use of this feature , this is because the CC keeps on picking the file with erroneous data after regular specified interval and shows up an error in RWB.
    How can I use the  Archive Source Files with Errors feature with this? Do I have to do anything specific in the adapter module code for this to work?
    Regards,
    Amol

    Hi,
    if you see whats mentioned on the help link
    http://help.sap.com/saphelp_nw04/helpdata/en/f4/2d6189f0e27a4894ad517961762db7/frameset.htm
    it 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.
    does this not mean it could be used with errors raised in adapter modules? ideally it should be.

  • Cs4 opens cs3 files with errors

    Here's a big heads up for anyone considering upgrading to cs4 - don't!  I've been working on a cs3 project and decided to upgrade to cs4 for the extras in the 3D toolset.  All the Adobe propoganda implies this can be achieved no problem, as did soemone on telephone tech support.  Perhaps I didn't clearly ask 'can I open my cs3 file in cs4'.  I can BUT the clips are very much 'out of synch.  I'll lick my wounds and go back to finishing in cs3 but don't purchase cs4 if you think you can seamless import your sc3 project.  Because it seems you very much can not!

    Dennis,
    Many thanks.
    Date: Thu, 11 Feb 2010 05:21:44 -0700
    From: [email protected]
    To: [removed]
    Subject: Premiere Pro cs4 opens cs3 files with errors
    Jarrod,
    As I've stated here in this forum, we're trying to transition Adobe technical support to a new organization and providing the best support we can to our customers.  That being said, it is a long and sometimes painful process, which is why I am here on the forums at times to lend some support.  This doesn't help you and you might not even care so...
    Here's a couple of suggestions:
    1. make sure your software is updated (Premiere Pro 4.2.1) by going to help>updates
    2. clear your prefs - http://blogs.adobe.com/genesisproject/2009/11/having_weird_behavior_with_an.html
    3. try importing (ctrl-I) a CS3 project into CS4
    Try these things and let me know how you make out.  Also, it would be very helpful if you told us about your system and the specs.  I've posted about the importance of 64-bit and lots of memory many times.  You can find one link here: http://blogs.adobe.com/genesisproject/2009/03/64_bit_os_and_adobe_products.html
    The future of Premiere Pro is 64-bit only: http://blogs.adobe.com/genesisproject/2009/10/its_official_64bit_is_the_futu.html
    Beyond that if you'd like me to look into your case, please post your case # here or in a private message to me and I'll gladly look at it.
    I sense your frustration and its understandable - give us a chance to help you.
    Dennis
    >

  • Amarok 1.4.10 from AUR plays flac files with errors

    amarok 1.4.10 from AUR plays flac files with errors and i mean that it plays flac files but with strange behavior and of course the result is awful is there any chance to fix that problem. i have compile it with xine engine, can i use a different engine in PKGBUILD and how. i should write that i don't known much from configure a PKGBUILD by my own. with exaile and totem i have no problem i also play flacs with 24bit and 96khz audio quality. tnks for your time

    Why not amarok 2.3 from extra?
    Found this but its for 2.3: forum.kde.org/viewtopic.php?f=116&t=85428
    looks like amarok just uses xine, which I don't know much about...
    the 2.3 version depends on kde4, so you can run kde4 system settings and switch the multimedia backend between xine, mplayer, and gstreamer (need the aur packages first). I know mplayer should use ffmpeg to playback though.
    Edit: looks like exaile and totem use gstreamer for playback
    Last edited by 1LordAnubis (2010-05-19 16:19:09)

  • Switch on the OIM for archived transaction with RFSEPA02 program

    Hi all,
    i have tried to switch on the OIM for archived transaction with RFSEPA02 program but it saying error.
    it can not be possilbe change OIM for archived transaction in GL account.
    is there any otherwise to switched on OIM for acrchived transaction.
    Regards,
    Veerababu

    HI,
    I believe, it won't be possible. Also, please note that RFSEPA02 report is no longer supported by SAP as its execution causes inconsistencies in the system (see note 175960 for further info).
    Regards,
    Eli

  • Change default directory for Creative files (such as Media Databa

    I'm using a Zen xtra with WinXP Pro on my company laptop. The Creative software puts a lot of files (7 MB!) in my user profile under Document and Settings. Unfortunately, this is making my profile larger than my company allows, since they back up the profile over the network.
    How can I change the default directory for these file? I can't find any .ini files that might declare the path, and I can't find anything in the Windows Registry that points to my profile.
    Help please?
    Thanks,
    Luke

    Thanks for the suggestion of deleting the JetFileBackup folder, Micromouse. I'll try it.
    Any other files look deletable? Without any way to move them, I may have to try deleting some and see what happens.
    I'm not even sure which Creative programs can be uninstalled (other than Nomad Explorer) and still be able to use MediaSource to play songs from my Zen Xtra (through a USB connection). Windows Add/Remove Programs says that I've used all of these programs today:
    Creative Jukebox Driver
    Creative MediaSource
    Creative MediaSource AudioSync Plugin
    Creative MediaSource NOMAD Jukebox 2/3/Zen Plugin
    Creative NOMAD Jukebox Zen Xtra
    But all I've done is open MediaSource and start a playlist from my Zen Xtra. Anybody know which of those can be uninstalled without affecting my use? (Maybe this deserves a separate topic.)
    Thanks,
    Luke

  • How to deactivate *Schedule Background Job for Work Items with Errors* SWU3

    Hello Guys,
    Can any one tell me how do I DEACTIVATE Schedule Background Job for Work Items with Errors in sap workflow SWU3.
    Currently it is green which I don't want. I want to stop this service.
    Regards
    NK

    Hello,
    You could also just stop the job in tx SM37.
    But why would you want to do this? As a test?
    regards
    Rick Bakker
    hanabi technology

  • How to fix the .pdf file with error "invalid annotation object"

    how to fix the .pdf file with error "invalid annotation object"

    As long as the PDF opens, then just try saving it to a new file name. There may be a preflight script that would help troubleshoot the issue.

  • Search for a file with part of a filename in a given folder.

    How can I search for a file with part of a filename in a given folder?
    Or can I change the columns in Advanced Search so that the heading is filename?

    thanks, Michel. it had occurred to me to put a scratch tag on the folder, but I was hoping for an easier way. in future I'll do as you suggest though, because it's easier than what I have been doing.
    daryl

Maybe you are looking for

  • BOOKING TRAVEL COST TO WBS ELEMENT

    Hi there, Can anyone tell me how i can book travel expenses to a WBS element. From pr05 i can select the WBS but when i post it to FI its getting posted to the cost center (and the profit center) and not to the WBS although the correct GL account is

  • Can't even login

    Ugh! I can't even log in to iChat. When I launch, the Buddy List window opens and says "Connecting" for about 2 seconds. Then I hear the login sound, but it instantly switches to "Disconnected" and simultaneously displays an error dialog box which re

  • What happened to the tool bar & why did you switch my browser from Google to Yahoo?

    When I downloaded Firefox 4 you switched my search engine from Google to Yahoo. I much prefer Google. Secondly, at the same time, my toolbar disappeared. When I wanted to print out a mutual fund activity confirmation, there was no means to do it. Unl

  • Make to compile the Petalinux software image, but "returned an error code (127) ;make[1]: *** [pkg_stagefs] Error 255"

    Hello, I am trying ot make to compile the Petalinux software image( make in $PETALINUX/software/petalinux-dist) . Refer to the UG977 PetaLinux SDK Getting Started Guide.pdf  However, when it gets to "[INFO ]  Expanding stagefs", there is be an error

  • How to reverse this?

    Hi, I created a project assigned budget to it. Carried out CJCO run. Now i want to reverse it all and want to attach this project to IM structure. How do i do it?