How to handle rejected messages in file adapter

Hi....! every one.........
in file adapter read operation it will pick the files even the file contains unstructure message but that file wont be processed.
where the rejected message goes.
i have requirement like that rejected message i have to store in another file
please provide me answer..........

Hi,
You can add the parameter 'PhysicalErrorArchiveDirectory' in the JCA file (of the File Adapter).
Put there the required directory where you want the rejected file to be sent.
You can add this property in 2 ways:
1. In your JDeveloper open the JCA file and add: <property name="PhysicalErrorArchiveDirectory" value="/../.."/>
2. In EM, right click the composite->Service/Reference Properties->Choose your file->On the Properties tab press Add-> Choose 'PhysicalErrorArchiveDirectory' and put the directory-> press Apply.
Arik

Similar Messages

  • How to post multiple message using file adapter in XI2.0

    We have to post multiple IDOCS.We have scenario as below.
    We will have file structure like as shown below.
    VKORG,VTWEG,SPART,BSART,PARVW,PARTNER,BSTDK,MATNR,MENGE,VSART,BSTZD,POLINE,BSARK
    BE10;10;10;OR;SP;1000033;;M184-ISS01;2;G;131;0002;
    BE10;10;10;OR;SP;1000033;;M184-ISS01;2;G;131;0002;
    BE30;10;10;OR;SP;1000033;;M184-ISS01;2;G;131;0002;
    For this we want that 2
    messages should be created.In first message there will be first 2 records
    with VKORG BE10 and in second message there will be last record with VKORG BE30.
    We can do it through FILE2XMBWITHSTRUCTURECONVERSION and using some options.
    I am sending the configuration that I have done for my adapter.
    classname=com.sap.aii.messaging.adapter.ModuleFile2XMB
    mode=FILE2XMBWITHSTRUCTURECONVERSION
    #mode=FILE2XMB
    XMB.TargetURL=http://20.60.53.36:8000/sap/xi/engine?type=entry
    XMB.ReceiverBusinessSystem=sapdev210
    #XMB.ContentKind=B
    XMB.ContentKind=T
    #XMB.ContentType=application/xml
    XMB.ContentType=text/xml
    #XMB.ContentType=text/plain
    XMB.QualityOfService=EO
    ##xml conversion properties if mode FILE2XMBWITHROWCONVERSION specified (example, see docu)
    xml.recordsetStructure=IDOC,*
    xml.recordsetName=SALESDATA
    xml.recordsetsPerMessage=1
    xml.documentName=SALESDATA
    #xml.fieldFixedLengths=
    xml.IDOC.processFieldNames=fromConfiguration
    xml.IDOC.fieldNames=VKORG,VTWEG,SPART,BSART,PARVW,PARTNER,BSTDK,MATNR,MENGE,VSART,BSTZD,POLINE,BSARK
    xml.keyFieldName=VKORG
    xml.keyFieldType=CaseSensitiveString
    xml.IDOC.keyFieldValue=BE10.
    xml.IDOC.fieldSeparator= ;
    What I have tried is hardcoding 2 in  xml.recordsetStructure=IDOC,2.It works fine
    Since I already knew this.
    Butin real scenario we wont be knowing this that is why I have given * in configuration , and
    given
    xml.keyFieldName=VKORG
    xml.keyFieldType=CaseSensitiveString
    xml.IDOC.keyFieldValue=BE10.
    With this it should identify on key field and its value and put first 2 records in one message
    and last record in second message.
    It is not giving any error when we start adapter but no XML message is created.Can u plz help me
    for the above problem.
    My datatype in repository is like
    SALESDATA
        IDOC
             VKORG
             VTWEG
    and allother remaining fields.
    Is this scenario possible in XI 2.0.If yes then will it  be done through above approach or something else.
    Thanx.
    Rekha.

    Hi,
    I think you can not handle this problem with keyFieldName/keyFieldValue.
    In my opinion with keyFieldName/keyFieldValue you can create different substructures of the same XML, but you can not seperate messages with the same substructure.
    But I don't know how to handle your problem ;-(
    Another point is that I see a dot after xml.IDOC.keyFieldValue=BE10.
    My be this is a problem too.
    Christoph

  • How to handle large data in file adapter

    We have a scenario Proxy -> PI -> File Sever using File adapter.
    File adapter is using FCC for conversion.
    recently we had wave 2 products live and suddenly for this interface we have increase in volume of messages, due to which File adapter is not performing well, PI goes slow or frequent disconnect from file server problem. Due to which either we will have duplicate records in file or file format created is wrong.
    File size is somewhere around 4.07 GB which I also think quite high for PI to handle.
    Can anybody suggest how we can handle such large data.
    Regards,
    Vikrant

    Check this Blog for Huge File Processing:
    Night Mare-Processing huge files in SAP XI
    However, you can take a look also to this Blog, about High Volume Messages:
    Step-by-Step Guide in Processing High-Volume Messages Using PI 7.1's Message Packaging
    PI Performance Tuning Best Practice:
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/2016a0b1-1780-2b10-97bd-be3ac62214c7?QuickLink=index&overridelayout=true&45896020746271

  • How to handle blank line in File adapter

    Hi,
    I am using a file adapter with CSV as input file. If I have a blank line in CSV file, BPEL is failing read it, no instance is created and file is archieved.
    Please let me know how to handle this issue.
    Thanks

    Hi Yatan,
    I am already using rejectedMessageHandlers, I am on 10.1.3.3.
    Here's my bpel.xml
    ============
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <BPELSuitcase>
    <BPELProcess id="EmpAddressUpdABCSImpl" src="EmpAddressUpdABCSImpl.bpel">
    <partnerLinkBindings>
    <partnerLinkBinding name="ReadFile">
    <property name="wsdlLocation">ReadFile.wsdl</property>
    <property name="rejectedMessageHandlers">file://E:/HRARCHIVE/BadData</property>
    </partnerLinkBinding>
    <partnerLinkBinding name="InsertAddressUpd">
    <property name="wsdlLocation">InsertAddressUpd.wsdl</property>
    <property name="retryInterval">60</property>
    </partnerLinkBinding>
    </partnerLinkBindings>
    <configurations>
    <property name="sensorLocation">sensor.xml</property>
    <property name="sensorActionLocation">sensorAction.xml</property>
    </configurations>
    <activationAgents>
    <activationAgent className="oracle.tip.adapter.fw.agent.jca.JCAActivationAgent" partnerLink="ReadFile">
    <property name="portType">Read_ptt</property>
    <property name="rejectedMessageHandlers">file://E:/HRARCHIVE/BadData</property>
    </activationAgent>
    </activationAgents>
    </BPELProcess>
    </BPELSuitcase>
    Someone told me that this can be achieved by changing the native schema, I tried many options but no result. Please suggest me.
    -- Shirish

  • How To split large message using File Adapter

    Hello everyone,
    Here is my scenario FTP > XI > BI.
    I got 2 questions:
    (1) I am getting large message around 70 MB file.
        How we can split the message into multiple files 10 MB each before processing the file into XI?
    (2) Is there is any way we can find out size of file which is on FTP  without contacting FTP admin?    
        through XI before processing the file?
    Thanks
    Vick

    hi vick,
    check the blog
    Zip or Unzip your Payload with the new PayloadZipBean module of the XI Adapter Framework                                   
    Working with the PayloadZipBean module of the XI Adapter Framework
    SAP XI acting as a (huge) file mover                                   
    The specified item was not found.                                   
    Managing bulky flat messages with SAP XI (tunneling once again) - UPDATED                                   
    The specified item was not found.                                   
    regards
    kummari

  • How to handle duplicate messages in J2SE File scenario

    Hi,
    Is there any way to handle processing of duplicate messages in J2SE File adapter scenario?
    Here is the scenario ,
    Steps :
    1. Engine picks up a message and checks the size of it.
    2. Before reaching the checking interval , the adapter(file) was terminated unfortunately.
    3. J2SE engine was restarted.
    4. Previous file was again picked up and sent as the first time with one msgID.
    5. After sometime, same file was picked up with a new msgID
    6. System gets only ONE configrmation that file has been successfully transfered.
    So we find two messages containing the same file.
    I have checked in J2SE doc, there is a parameter called "db.exactlyOnceErrorInPendingState" which is related to DB.
    Is there any similar parameter to handle the duplicate messages in FIle Adapter scenarios of J2SE Engine.
    Please help me in this regard as it seems to be a new thing in J2SE AE.
    Regards,
    Soorya.

    Hi swarup,
    But using OS command how can we rename /archive that file?
    Module means any Custom Module or wat?
    Following are the channel configurations used in File To File scenario.
    File Sender :
    version=30
    mode=XMB2FILE
    XI.httpPort=58201
    XI.httpService=/test
    XI.ReceiverAdapterForService=test_rcv
    file.numberOfMessageTypes=1
    XI.Interface=MI_test_out
    XI.InterfaceNamespace=http://nestle.com/test
    file.type=BIN
    file.targetDir=/test_inb
    file.targetFilename=unusedbutreq
    file.writeMode=fromHeader.ext
    file.createDir=0
    file.nestleName=initial
    file.writeMode=fromHeader.ext
    file.nestleEXT=test
    file.nestleFileOverwrite=False
    File Receiver :
    version=30
    mode=FILE2XMB
    XI.TargetURL=http://localhost:58201/test
    XI.NestleTargetURL=http://localhost:58201/test
    file.type=BIN
    file.checkFileModificationInterval=300000
    file.pollInterval=300
    file.processingMode=archiveWithTimestamp
    file.archiveDir=/test_out/arc
    XI.QualityOfService=EO
    file.numberOfMessageTypes=1
    file.messageAttributes=name
    XI.SenderService=test_snd
    XI.Interface=MI_test_out
    XI.InterfaceNamespace=http://nestle.com/test
    XI.ReceiverService=test_rcv
    file.nestleBadMsgDir=/test_out/bad
    file.sourceDir=/test_out
    file.sourceFilename=.
    Do the needful help asap.
    Regards,
    Prakash.

  • How to handle errors in a file at sender side?

    Hi
    I have done a file to proxy scenario.
    I know how to handle errors on proxy.
    But on sender side when picking the file if one the record have worng fomat its throwing mapping error and its not processing any record..
    I wanted to process the records which have right format and data and  all remaining recrods which have wromg format should be send back to the sender as file.
    How to do this.
    How to handle error in sender file.
    Regards
    Sowmya

    Hello Sowmya,
    In your scenario Three ways you can validate the data.
    1) Before the data reaches into SAP system ie in XI system during Mapping or before mapping i,e in Adapter Module in the Sender side
    2) this option, is in the receiver applications side. ie. Validations will be taken care in the SAP system i.e in ABAP server proxy code.
    3)Through BPM, If Mapping Exception Occures then through exception Branch you can send bad formate file to sender again.
    Generally, it is prefer to more business critical validations in the Application System ie Receiver Application System (ABAP Server Proxy)
    In this, you can have more flexibility of the validations as you are validating some of the SAP payroll informations as Personal ID etc.
    Based on the complexity and flexibility of the requirement, you can either do this in the XI (if XI, ie Sender Adapter Module or Mapping) or in the ABAP proxy
    Thanks'
    Sunil Singh

  • How to have Secure Connection for File Adapter.Pls help

    Hi All,
    For File to File Scenario
    How to have Secure Connection for File Adapter.
    Pls send links/blogs explaining this scenario.
    Regards

    hi rich
    go through these links
    FTPs connection failed - error ".. certificate rejected by ChainVerifier"
    Re: What is SFTP, FTI channels
    http://help.sap.com/saphelp_erp2005/helpdata/en/e3/94007075cae04f930cc4c034e411e1/frameset.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/frameset.htm
    FTPS implementation question.
    http://help.sap.com/saphelp_nw04s/helpdata/en/43/0e16bfd7b021aee10000000a1553f6/frameset.htm
    Server certificate rejected by ChainVerifier:FTPS server(Points Guaranteed)
    /people/krishna.moorthyp/blog/2007/07/31/sftp-vs-ftps-in-sap-pi
    File adapter
    thanks
    Kunaal

  • Multiple message through FIle Adapter using XI 2.0

    I have scenario to create multiple message using File adapter .My file structure will be like
    EMPID     NAME     SKILLS
    001     A      ABAP
    001     A      XI
    002     B      JAVA
    Now I want to post first 2 records in one message and last record in other message.
    Can we do it in XI 2.0.Any help appreciated

    Hi Suraj.
    Thank you very mutch for your reply.
    Excuse me...my mapping is done for message type and idoc.
    My problem is that when the interface start, on the sxmb_moni I see an error like this:
    Creating Java mapping com.sap.xi.tf._MM_XmlOrderToIdocMapping_ --- Using MappingResolver with context URL //srvsapdev/sapmnt/CX1/SYS/global/xi/mapping/gestione_magazzini/7fa9c9e15a7811dab710f3e3ac10826e/ --- Load of com/sap/xi/tf/_MM_XmlOrderToIdocMapping_.class from //srvsapdev/sapmnt/CX1/SYS/global/xi/mapping/gestione_magazzini/7fa9c9e15a7811dab710f3e3ac10826e failed. --- Class not found: com.sap.xi.tf._MM_XmlOrderToIdocMapping_ --- java.lang.ClassNotFoundException at RUMappingJava.load(): Could not load class: com.sap.xi.tf._MM_XmlOrderToIdocMapping_ Class not found: com.sap.xi.tf._MM_XmlOrderToIdocMapping_ --- com.sap.aii.ibrun.server.map.MappingRuntimeException: at com.sap.aii.ibrun.server.map.MappingRuntimeException.code_STYLESHEET_OR_CLASS_NOT_FOUND
    ..where 'gestione_magazzini' is my namespace and 'MM_XmlOrderToIdocMapping' is my message mapping.
    Can you help me to undestand the problem?
    Thanks,
    Gianluca

  • How to handle the java.policy file ?

    Can somebody tell me how to handle the java.policy file?
    I always get java.net.SocketExceptions and java.security.AccessControlExceptions while connecting to an appserver from an applet.
    What do I have to write in the java.policy file, where do I have to place it and do I have to call it in some way form my applet?
    Thanks in advance.
    don call

    The java.policy file goes in your jre installation directory in .../jre/lib/security (there should be one there already).
    I used it to allow otherwise restricted permissions for an applet using javax.comm. Add something like the following to the file:
    grant codeBase "URL:http://yourDomainName/rootDirectoryOfYourApp/*" {
         permission java.security.AllPermission;
    This will give the applet downloaded from your site all permissions. You might want to give only certain permissions, I don't know.
    Teri

  • Duplicate message handling in the sender file adapter

    Hi,
    I enabled duplicate file handling check in the sender file adapter so that whenever there is a duplicate file it should send me an alert also it should disable the channel so that i do not get that duplicate file alert message again and again.
    My question is will it activate the channel again as soon as a new file arrives or do i need to manually do that.
    Michal's PI tips: Duplicate handling in file adapter - 7.31

    Hi Hema,
    You will have to activate the channel manually. The idea behind the 'disable' functionality is to avoid further file processing through that channel which can only start once the channel is activated again manually.
    Regards,
    Abhishek

  • How to handle different message types of EDIFACT in single input file.

    Hi All,
    Currently we have a requirement like we will be receiving the input with different messages in the same input file (eg: ORDERS and ORDRSP in the same file).
    We have configured both the message types in the document definitions. One more thing is the versions of the messages are different.
    When we pass the input we are getting the error.
    The input looks like below,
    UNB
    UNG
    UNH*ORDERS
    UNT
    UNE
    UNG
    UNH*ORDRSP
    UNT
    UNE
    UNZ
    Please assist us to overcome the error.
    Thanks,
    Ravindra.

    Hi Prasanna,
    Thanks for your reply.
    I have created the agreements for both the messages still i'm getting the below error,
    B2B-50037
    B2B inbound message processing error
    If i give the input as separate messages (i mean 2 input files). Its working fine.
    Also let me know is there any configuration settings to handle multiple messages in a single input file.
    Thanks,
    Ravindra.

  • How to handle archives messages in Msgs waiting for Acknowledgement

    Hi folks
    If i have a async process in BPM whcih is having status set "Processed successfully" but the BPM has actually spawned a WAIT for a transport acknowledgment(from file adapter), how do I handle archving/deletion for this msg??
    Any filter i set in SXMB_ADM will count in such msgs too..how do we work around the scenario?

    Hi Sriram,
    >>>The missing link here is the Adapter status is not considered by ccBPM in deciding the process status..
    I think you're right I'd like to know a little bit more about this too
    If you decide to post it as an OSS message please
    update this thread so that we'll all know in the future:)
    Thx in advance,
    Regards,
    michal

  • Dicarding messages in file adapter

    Hi,
    I wish to process a file that has invoice data. The structure of the file is thus:
    $H$<<Supplier Name>>,<<Supplier Site>>,<<Invoice Number>>
    $D$<<Line Number>>     ,<<Business Unit>>,<<Location>>,<<Store Name>>
    $D$<<Line Number>>     ,<<Business Unit>>,<<Location>>,<<Store Name>>
    $H$<<Supplier Name>>,<<Supplier Site>>,<<Invoice Number>>
    $D$<<Line Number>>     ,<<Business Unit>>,<<Location>>,<<Store Name>>
    $D$<<Line Number>>     ,<<Business Unit>>,<<Location>>,<<Store Name>>
    The intent is to configure the file adapter in such a fashion that it rejects the entire invoice if there are any errors in any of the lines that belong to that invoice. The invoices that follow the erred inovice should be processed normally. How do I configure the adapter to achieve this. Any help is greatly appreciated.

    Have a look at the startWith example in this link Jason provides.
    Also you can see this post as it provides examples
    Re: ESB- Flat file records to different DB tables based on first field
    cheers
    James

  • How to set DEBUG severity for File adapter in J2SE AE

    Hi,
    Can anyone help me in setting the severity level to DEBUG for file adapter?
    I have tried to set in logging.properties file as given below,
    formatter[Trace]         = TraceFormatter
    formatter[Trace].pattern =%24d [%t] %-6s %l - %m
    log[Trace] = FileLog
    log[Trace].pattern     = swb_%g.log
    log[Trace].limit     = 2000000
    log[Trace].cnt          = 5
    log[Trace].formatter     = formatter[Trace]
    com.sap.aii.messaging.adapter.severity = DEBUG
    logging components
    #com.sap.aii.axis.logs = +log[Trace]
    #com.sap.aii.axis.severity = DEBUG
    #org.apache.axis.logs = +log[Trace]
    #org.apache.axis.severity = DEBUG
    Please correct me if I have did anything wrong and sugest me hot to set the DEBUG level as soon as possible.
    Best Regards,
    Soorya

    Hi Sejoon,
    when we changed the host of XI server in one of our projects one of the things we had to change was the exchange profile entries
    http://server:port/exchangeProfile/index.html
    to see how your adapter engine is configured
    http://server:port/sld
    SLD -> Content Maintenance
    then
    Subset: landscape description
    Class: XI Adapter Framework
    buth check the exchange profile entries first
    Regards,
    michal

Maybe you are looking for

  • Upgrading Oracle RAC from 10.0.2.3 to 10.0.2.4 on HP-UX

    Hi all, I have to apply 10.0.2.4 patch to Oracle RAC that running on HP-UX system. I'm inexperienced with this subject. What is your suggestions and recommendations about this? Can you share the your own roadmap and your experience? Regards, Alper.

  • HP Altec Lansing Speakers

    Hi, I have the HP DV6-3126sa with built in Altec Lansing speakers. The problem is when im listening to stuff say on YouTube, when it hits a certain pitch it starts to buzz/whistle. I have tried playing around with the Sound Control settings in Equali

  • Payment Terms Advice

    Hi Experts Our company has a procedure for new BPs whereby they are required to make 3 pro-forma or cash payments before their application for credit can be accepted. At the moment we have no way of monitoring this so customers are informing us that

  • Wireless Print failure with 2575/Vista

    I am trying to get my wife;s laptop to print through wireless to a 2575. Network Netgear 3300 router feeding Cisco swith MAchines HP desktop XP  - ethernet Linux desktop - ethernet Dell laptop Linux - wireless HP DVR9000 laptop - wireless Printers HP

  • Arbitrary number of parameters

    I try to call a method defined to accept an arbitrary number of parameters, in particular in the following piece of code: String catalogPath = "/path/to/catalog"; Constructor constr = resolverClass.getConstructor(   new Class[] {CatalogManager.class}