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

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

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

  • Is Sender File Adapter always throws error when there is no file?

    Hi,
    I have a simple question but can't find a straight answer to it. I have a Sender File adapter that configured to pick up file XXX* from FTP server every 1 hour. But a file can come every 2, 3, or 7 hours- no certain time.When there is no file I got "File not found " error. As we use alerts, this behaviour is not acceptable.
    Does this error comes always if there is no file? Any possible way to avoid this error ?
    Thanks for help.
    Nataliya

    Hi Ravi,
    I can see the error in Runtime Workbench under CC monitoring. To be precise it says:
    An error occurred while connecting to the FTP server '1X.1XX.XX.XX:21'. The FTP server returned the following error message: 'com.sap.aii.adapter.file.ftp.FTPEx: 552 RMS-E-FNF, file not found, ES4_SAP*'. For details, contact your FTP server vendor.
    My ftp server has the following set up:
    Server: xx.xxx.xx.xx
    Port:21
    Dataconnection:Active
    Timeout:120
    Connection secuirity: None
    User name .... etc set up.
    Connect mode: Per file transfer
    Transfer mode:Text
    QoS:EO
    Pollinterval: 120 (for test purposes)
    Processing Mode: delete
    Can it be that its a ftp server generates error and sends back to XI?
    Thanks,
    Nataliya

  • File Adapter Read, Translation error

    Hi,
    I got problem with BPEL File Adapter. When i'm reading file i got scheme - termineted with semicol and without quoting.
    In uploaded test file there was line - first colums;second colums;""third"" column";forth column;
    And the problem are five quotes and adapter fails with translation error. Can i somehow ignore them?

    Hi,
    You have use the attribute quotedBy... By default, the specified string is &amp;quot; ("). If your data includes this character, you must override this default even if the field is not quoted.
    For example:
    {code}
    <element name="field" type="string" nxsd:style="terminated" nxsd:terminatedBy=";" nxsd:quotedBy="&lt;"/>
    {code}
    Read this...
    http://docs.oracle.com/cd/E23943_01/integration.1111/e10231/nfb.htm#CHDBBECG
    Cheers,
    Vlad

  • XI 2.0 WorkBench File Adapter Self-Test Error

    I have installed the file adapter on our XI serve and when I perform the Self-Test I get the following error HTTP request failed. Error code: "401". Error message: "Authorization Required".  I have the user  XIRWBUSER defined to the Adapter Engine.  What else am I missing?

    Hi Dan,
    You are thanking a poster for his answer.
    Please next time also give him points.
    See: /people/mark.finnern/blog/2004/08/10/spread-the-love
    This time I did it for you.
    Remember: When you ask a question you also assume the responsibility to assign points.
    Please check your other questions and if the answers were good.
    Spread the love and give some points.
    Thanks in advance, Mark.

  • File Adapter giving Translation error while reading & moving pdf files

    Hello Gurus,
    I am on SOA 10.1.3.4 and using BPEL for the below procedure.
    The requirement I have is to move pdf files from one local directory to another as soon as the pdf files land in source directory. So I used a file adapter (FileAdapter_1) to poll the file and read as an opaque schema. Then I copied the name and directory in a header variable and passed the header variable to another file adapter(FileAdapter_2) which moves the file from source to target directory. The jca operation for FileAdapter_2 is as follows:
    <jca:operation
    InteractionSpec="oracle.tip.adapter.file.outbound.FileIoInteractionSpec"
    SourcePhysicalDirectory="foo1"
    SourceFileName="bar1"
    TargetPhysicalDirectory="foo2"
    TargetFileName="bar2"
    Type="MOVE">
    </jca:operation>
    It is working fine for all 90% of pdf files, but some files are failing with the following error in domain.log file.
    2012-02-24 11:15:12,170> <DEBUG> <custst1.collaxa.cube.translation> <TranslatorFactory::log> Inside TranslatorFactory
    <2012-02-24 11:15:12,170> <DEBUG> <custst1.collaxa.cube.translation> <TranslatorFactory::log> using version attribute = NXSD
    <2012-02-24 11:15:12,170> <DEBUG> <custst1.collaxa.cube.translation> <TranslatorFactory::log> loading xlator class...oracle.tip.pc.services.translation.xlators.nxsd.NXSDTranslatorImpl
    <2012-02-24 11:15:12,174> <DEBUG> <custst1.collaxa.cube.translation> <TranslatorFactory::log> class loaded
    <2012-02-24 11:15:12,174> <DEBUG> <custst1.collaxa.cube.translation> <NXSDTranslatorImpl::log> Starting translateFromNative using InputStream
    <2012-02-24 11:15:12,174> <DEBUG> <custst1.collaxa.cube.translation> <XlatorHelper::logDebug> validating payload size
    <2012-02-24 11:15:12,175> <INFO> <custst1.collaxa.cube.activation> <File Adapter::Inbound> Error while translating inbound file : Sample.pdf
    <2012-02-24 11:15:12,175> <INFO> <custst1.collaxa.cube.activation> <File Adapter::Inbound>
    ORABPEL-11104
    Error while translating.
    [Line=1, Col=5] The value "%PDF" read from the native data, from the specified position, using "choiceCondition" as "fixedLength" and "length" as "4", doesnt match any of the "conditionValue" on the particles of choice model group.
    Check the error stack and fix the cause of the error. Contact oracle support if error is not fixable.
    at oracle.tip.pc.services.translation.xlators.nxsd.NXSDTranslatorImpl.parseNXSD(NXSDTranslatorImpl.java:1312)
    at oracle.tip.pc.services.translation.xlators.nxsd.NXSDTranslatorImpl.parseNXSD(NXSDTranslatorImpl.java:1142)
    at oracle.tip.pc.services.translation.xlators.nxsd.NXSDTranslatorImpl.doTranslateFromNative(NXSDTranslatorImpl.java:748)
    at oracle.tip.pc.services.translation.xlators.nxsd.NXSDTranslatorImpl.translateFromNative(NXSDTranslatorImpl.java:509)
    at oracle.tip.adapter.file.inbound.ProcessWork.doTranslation(ProcessWork.java:846)
    at oracle.tip.adapter.file.inbound.ProcessWork.processMessages(ProcessWork.java:380)
    at oracle.tip.adapter.file.inbound.ProcessWork.run(ProcessWork.java:231)
    at oracle.tip.adapter.fw.jca.work.WorkerJob.go(WorkerJob.java:51)
    at oracle.tip.adapter.fw.common.ThreadPool.run(ThreadPool.java:280)
    at java.lang.Thread.run(Thread.java:595)
    <2012-02-24 11:15:12,175> <INFO> <custst1.collaxa.cube.activation> <File Adapter::Inbound> Since a translation exception was thrown, this indicates that it is a non-debatching scenario.
    <2012-02-24 11:15:12,175> <INFO> <custst1.collaxa.cube.activation> <File Adapter::Inbound> Failed to translate file : {common/InboundFiles/Sample.pdf}
    Thanks in advance for your help.......

    As stated in my Original Post, I am using opaque schema for both the adapters, still not sure why the adapter is going through native translation.

  • File Adapter  sync reading error

    I am getting the following error trying to read a pdf file using file adapter
    <assign name="Assign2">
    <copy>
    <from variable="receiveInput_process_InputVariable" part="filename"/>
    <to variable="file"/>
    </copy>
    <copy>
    <from variable="receiveInput_process_InputVariable" part="filename"/>
    <to variable="Invoke1_SynchRead_InputVariable" part="filename"/>
    </copy>
    </assign>
    <invoke name="Invoke1"
    inputVariable="Invoke1_SynchRead_InputVariable"
    outputVariable="Invoke1_SynchRead_OutputVariable"
    partnerLink="ReadBomFile" portType="ns7:SynchRead_ptt"
    operation="SynchRead" bpelx:invokeAsDetail="no">
    <bpelx:inputProperty name="jca.file.FileName"
    variable="file"/>
    </invoke>
    <assign name="Assign1">
    <copy>
    <from variable="receiveInput_process_InputVariable" part="filename"/>
    <to variable="replyOutput_process_OutputVariable" part="filename"/>
    </copy>
    <copy>
    <from variable="Invoke1_SynchRead_OutputVariable" part="opaque"/>
    <to variable="replyOutput_process_OutputVariable" part="filestream"/>
    </copy>
    </assign>
    error i am getting
    <messages>
    <input>
    <Invoke1_SynchRead_InputVariable>
    <part name="filename">
    <filename xsi:type="xsd:string">Bom.pdf</filename>
    </part>
    </Invoke1_SynchRead_InputVariable>
    </input>
    <fault>
    <bpelFault>
    <faultType>0</faultType>
    <bindingFault>
    <part name="summary">
    <summary>Exception occured when binding was invoked. Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'SynchRead' failed due to: null". The invoked JCA adapter raised a resource exception. Please examine the above error message carefully to determine a resolution. </summary>
    </part>
    <part name="detail">
    <detail>null</detail>
    </part>
    <part name="code">
    <code>null</code>
    </part>
    </bindingFault>
    </bpelFault>
    </fault>
    <faultType>
    <message>0</message>
    </faultType>
    </messages>
    Thanks
    Thomas

    Hi,
    You have use the attribute quotedBy... By default, the specified string is &amp;quot; ("). If your data includes this character, you must override this default even if the field is not quoted.
    For example:
    {code}
    <element name="field" type="string" nxsd:style="terminated" nxsd:terminatedBy=";" nxsd:quotedBy="&lt;"/>
    {code}
    Read this...
    http://docs.oracle.com/cd/E23943_01/integration.1111/e10231/nfb.htm#CHDBBECG
    Cheers,
    Vlad

  • 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

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

  • ALERT MAIL FOR FILE ADAPTER COMMUNICATION CHANNEL ERRORS

    Hi,
    I need to send an alert by mail to a list of configured receivers if any error( Application as wel as System Errors ) occurs in the FILE ADAPTER Communication Channel .
    Please suggest how to do it......
    Regards,
    Sriparna

    Can anything be configured in the communication channel to run a mail unix script if the communication channel is throwing
    error.Other than alert rule can we configure this.
    Why do you intend to use script? Define Alert....create Rule....set parameters using SCOT.....you will get the alert as email (if you need it)
    Can you please help with how do I create this rule specific to File Adapters only ?
    Other than selecting FILE as Adapter Type in RWB --> Alert Rule definition we dont do anything special....this setting should help.
    Regards,
    Abhishek.

Maybe you are looking for

  • Accessing Voice Memos from iPhone when the iPhone is Sync'd to another Mac

    Don't know if this is possible but... - Have an iPhone 4 sync'd to my home iMac and iTunes account - all good with lots of music sync'd (~16Gb worth) - Want to use the Voice Memo functionality for recording work stuff - Want to download/sync these Vo

  • Payment term and Baseline date are not appear after residual clearing

    Hi Friends, We have an issue in Payment term. Recently small changes were made in OBA3.Here they enable the option of "Payment term from invoice". the function of this is to - copy  the payment term and baseline date form invoice to Partial item .Due

  • Having issue with a plug in

    Hi, I just upgraded to Maverick and it has caused issues with plugin. This is the resolution the website sent. Is it safe to do this? Thank you for contacting ALEKS. I just noticed you have 10.9 installed (Maverick). To address the issue you are havi

  • How to post actual COGS to PA

    Dear all, When we create billing document, revenue and COGS(cost of goods sold) will be posted to PA. This COGS is standard cost which got from condition type VPRS, however, it is not actual cost now. After we run material ledger, actual cost is calc

  • Currently using panther but would like to go to tiger but...

    i really like some of the software that came bundled with panther. i also want to update and buy ilife. is there a way to keep some of the programs that they took away such as world book? since it came bundled its not something that can just be reins