OutOfMemory error on large file processing in sender file adapter

Hi Experts,
I got file to IDOC scenario, sender side we are using remote adapter engine, files are processing fine when the size is below 5mb, if the file size is more than 5mb we are getting java.lang.OutOfMemoryError: java heap space. can anyone suggest me what parameter i need to change in order to process more than 5mb.

Hi Praveen,
Suggestion from SAP is not to process huge files at a time. Instead, you can make the into chunks and process.
To increase the heap Memory:
For Java heap-size and other memory requirements, Refer to the following OSS note for details:
Note 723909 - Java VM settings for J2EE 6.40/7.0
Also check out the OSS Note 862405 - XI Configuration Options for Lowering Memory Requirements
There are oss notes available for the Java Heap size settings specific to the OS environment too.
Thanks,

Similar Messages

  • OS command before file processing in Sender File adapter

    Hi there,
    I'm having troubles running a os command from the sender file (NFS) adapter.  The batch file which I try to run is not getting executed at all.
    When I manually run the same batch file from the command prompt then it works perfectly.
    The OS command looks like this from the adapter config:
    myserver\xi\interface\in\dothis.bat
    I have also try with this notation
    G:\myserver\xi\interface\in\dothis.bat
    Please give me some tips how can I solve this problem, is there any way how can I debug the OS command? When I look at the adapter monitonr no errors are showed.
    Thanks for any tips.
    Roberto

    Hi all,
    The problem is solved.
    Issue: File Receiver Channel does not execute the OS Command before message processing.
    Reason: XI always expects an input file (in my case the sender communication channel) on the source folder. If no input files are found then the rest of the adapter configuration is not executed at all.
    In our scenario the OS command is responsible for retrieving the input files from a FTP server the adapter. SO XI will never trigger the OS Command.
    Solution: Place a dummy input file on the source folder , the sender adapter will always read in this file and put it back on the same location.(e.g. using a condition in the receiver determination).
    Thanks,
    Roberto

  • Operating System Command After File Processing in Sender File Adapter

    Hello guys,
    actually we have different interfaces, and the client to take all the files from only one directory, for example D:/DPI.
    Unitl now we had one adapter for every file with the content conversion, so we didn't have problems with that. Now we have the problem that we sould maintain an order processing files.
    We thougth that an idea could be to execute one file pointing to D:/DPI and at the Operating System Command put like: copy D:/DPI/file.txt D:/DPI/outbound/file.txt, so when file is executed, we move the next file to another directory where is pointing the adapter. Doing this we have an error on the adapter giving us the message: Could not process due to error: java.lang.NullPointerException
    We are using a Windows.
    There is anyway to do in our way, or there is a better solution to resolve this problem?
    Any other idea to do this?
    Many thanks in advance.
    Regards,
    Xavi.

    Helo Guys,
    maybe I haven't explained well.
    We have one directory with different files. We have one adapter for every file( we need for the content conversion ) using NFS and all the adapters are pointing to the same directory.
    The problem is that if we have files A.txt, B.txt and C.txt we need to process in an order.
    And the problem we see is that for every file we have one adapter, so for example if we process file A.txt with one adapter, when this part is finished, we want to process file B.txt with another adapter, and the same for the rest of the files.
    So the idea we had is to create another directories, and when A.txt has finished move file B.txt to another directory.
    However this way is not running, if we log on the PI machine and execute cmd, we can do a copy of one file from one directory to another, but when we put this sentence in the adapter in OS command if we see the adapter log we see an error executing the OS command, but we don't know what is the error, there is no more information.
    There is any way to do this or maybe we have to manage in a different way?
    Many thanks in advance.
    Regards,
    Xavi.

  • Since upgrading to FF 4, I have constant crashes (updating graphics drivers did not help). now all my bookmarks are gone. When I try to restore them, I get error message: "Unable to process the backup file".

    Since I "upgraded" to FF 4, I have constant crashes (I tried updating my graphics drivers--it did not help) and now all of my bookmarks have disappeared. When I try to restore them, I get this error message "Unable to process the backup file". I have lost years of bookmarks...please help.
    I am using Windows XP, SP 3 if that matters.

    I am also unable to restore any of the backups of the bookmarks, both automatic backups and two backups that I created manually. Since I was able to restore backups before, and since no changes have occurred to these backup files, the problem must be with Firefox.
    Right before my bookmarks disappeared, FF crashed and I accidentally started FF 3.5. When I saw what I did, I ended the Firefox process and started FF 4. That's when all my bookmarks were gone and I discovered I couldn't retrieve any backups. I did note that an add-on was updated when I restarted FF. Maybe that's the problem. Does FF have a Safe mode?

  • What is the use of additional file(s) in  sender file adapter?

    Hi experts,
    what is the use of  additional files parameter in sender file adapter?
    give me some example.......
    Thanks & Regards
    E.Ravi Chandra Reddy

    Hi,
    please check the below link,
    you can specify additional files to be included in the XI message as attachments.
    http://help.sap.com/saphelp_tm90/helpdata/en/44/692ab8a4b633eae10000000a1553f6/content.htm
    Regards

  • Module processing inside Sender File Adapter

    Hello,
    I am trying to analyze whether I can create a specialized module inside Sender File Adapter. As of right now, the Sender File Adapter and Receiver as well, assume endSeparator character in the end of each record. For files that do not have this field, it is just on continuous string, I assumed I can create an
         adapter module
         call it BEFORE data in the file is being converted to XML format
         Insert 'nl' character (since the record length is fixed)
         Call regular adapter processing (converting to/from XML)
        However, creating any module inside Sender File Adapter, the payload of the main document is already in XML format. Is there anyway to avoid it?
       Thanks for your help,
             Dmitriy Mindich

    It is not possible with the standard functionality.
    So maintain the sender file adapter with no conversion, but in the module tab enter following modules:
    1. Your module
    2. The conversion module (*)
    3. The standard module.
    (*) for details look here:
    Look here:
    http://service.sap.com/nw-howtoguides
    -> Exchange Infrastructure
    -> How To Use the Content Conversion Module in JMS Adapter
    Regards
    Stefan

  • Unable to process Textfile Sender FCC adapter

    Hi Experts,
    I am doing FCC to ABAP Proxy Interface. Where I have to pick an text file and process and send to through ABAP Proxy to R3.
    My data is in text file .txt , the data is like this :
    HEMAHPOD019##012621   30018  09022012600308                  48        09022012d019                          3110
    HEMAHPOD019##012622   30018  09022012600317                  120      09022012d019                          3110
    HEMAHPOD019##012623   30018  09022012603023                  24        09022012d019                          3110
    HEMAHPOD019##012624   30018  09022012600921                  30        09022012d019                          3110
    HEMAHPOD019##012624 --> Here 3 fields are clubbed together and filed separator is tab.
    Please tell me how to process this kind of file.
    Thanks and regards,
    Ahmed.
    Edited by: Ayubsajjid on Feb 29, 2012 8:51 AM

    Hi Friends,
    I have done this....
    By using below in Content Conversion Parameters: for given text data
    HEMADPOD015##008171   30003 16082011600600                  2         16082011d015                          3110
    HEMADPOD015##008172   30003 16082011600603                  48       16082011d015                          3110
    Row.fieldName Zabc,Zabc,Zabc,ZabcE,INVDT,Zabc,Zabc,abc,Zabc,abc,abc
    Row.processConfiguration : FromConfiguration
    Row.keyFieldValue      : H*
    Row.endSeparator : Tab( from notepad i paste the tab here)          
    Row.fieldFixedLengths :      4,14,4,6,8,24,9,1,8,30,4
    Row.comlumnSeparator : tab ( Notepad tab)     
    Row.lastFieldsOptional :      true
    I got some input from this link also for given below error :
    File Content Conversion in PI 7.1 Error
    Conversion of file content to XML failed at position 0: java.lang.Exception: ERROR converting document line no. 1 according
    to structure 'Row':java.lang.Exception: Consistency error: field(s) missing - specify 'lastFieldsOptional' parameter to
    allow this
    Thanks a lot for the help to all for providing inputs from your valuable time.
    Cheers 
    Ahmed.

  • Error while running BPEL Process with Oracle Apps Adapter.

    Hi All,
    I am trying to configure the oracle apps adapter in JDeveloper.
    Here my EBS is running on different database where as SOA is installed on different database.
    I am able to properly configure the adapter & deploy the process to weblogic server.
    But when I am trying to run the process I am getting following errorr.
    <p>
    The JCA Binding Component was unable to establish an outbound JCA CCI connection due to the following issue: BINDING.JCA-12510\nJCA Resource Adapter location error.\nUnable to locate the JCA Resource Adapter via .jca binding file element <connection-factory/>\nThe JCA Binding Component is unable to startup the Resource Adapter specified in the <connection-factory/> element: location='*<JNDI Name passed in Oracle apps Adapter.>*'.\nThe reason for this is most likely that either \n 1) the Resource Adapters RAR file has not been deployed successfully to the WebLogic Application server or \n 2) the '<jndi-name>' element in weblogic-ra.xml has not been set to <JNDI Name passed in Oracle apps Adapter.>
    </p>
    Please suggest the solution for the same.
    its really urgent . waiting for reply.
    Edited by: aumathe on Dec 16, 2010 2:33 PM

    Have you created a connection pool with the JNDI specified while configuring adapter in Oracle Apps adapter on weblogic admin console. You should create it at Deployments --> OracleAppsAdapter --> Configuration--> Outbound Connection pools
    Make sure to update the adapter after creating a connection pool so that changes can take effect.
    Regards,
    Anuj

  • How to count the  number of files read through  sender file adapter

    Hi  ,
    I have a scenario where I am reading  files from a third party system and trying to send those files to R/3 system .The frequency is 1 file per day .But there can be situation where  the source system can put  2 to 3 files in source folder and so XI sender adapter will pick up all the 3 files at time . And I want to send only 1 file at a time to r/3 .
    Do you know any way to handle this requirement ?
    Thanks ,
    Suvarna

    Hi,
    Like Bhavesh pointed out, you could EOIO as the Quality of Servie in the sender file adapter.
    But I guess this would solve your issue only to a certain extent.
    Marking this QOS in the sender file adapter would only mean sequential processing of the files. That is, the second file will be sent only when the first file is successfully received by the end system.
    It would not ensure that the files are sent only after 15 mins of the first file is sent.
    If the 15 mins time period is important, then this needs to be achieved using a BPM which ensures that the messages are sent to the target only every 15 mins.
    In case, the frequency of the incoming files is not known (in which case, the having a BPM would be a bad idea) you could use a ztable, which stores the filename and time the file was sent to the R/3.
    You could query this table each time, before sending the file data to the R/3
    Regards,
    Smitha.
    Message was edited by:
            Smitha Rao

  • XML file conversion after sender file content conversion

    Hi,
    I have issue refarding file content conversion.
    My input structure is
    <MT_RCICrecords>
    <TRNH>
      <RCIC>
        <RECH>
        <RECL>
      <RCIC>
    <TRNH>
    Afetr sender File content conversion (csv to xml) it produces xml file as below (since file conversion does not support 3rd level of hierarchy)
    <TRNH>
    <RECH>
    </RECH>
    <RECL>
    </RECL>
    </TRNH>
    It does not recognize RCIC.
    Now i am trying to map this to IDOC and getting error as
    'MT_RCICRecords tag found instead of IDOC BEGIN ='.
    CAn anyone suggest me how to chaage this xml output after File content conversion to add RCIC tag in xml file?
    I am new to XI so please give me some sample code to.
    Thanks.
    Yashpal
    Its urgent!

    My problem is xml generated from content conversion is like below
    <MT_RCICrecords>
    <TRNH></TRNH>
    <RECH></RECH>
    <RECL></RECL>
    <TRLR></TRLR>
    </MT_RCICrecords>
    and i want it to be
    <MT_RCICrecords>
    <TRNH></TRNH>
    <RCIC>
    <RECH></RECH>
    <RECL></RECL>
    </RCIC>
    <TRLR></TRLR>
    </MT_RCICrecords>
    which is not happening
    My input message structure is
    MT_RCICrecords
    TRNH
    RCIC
    RECH
    RECL
    i hope it is clear now
    TRLR

  • Duplicate File Handling Issues - Sender File Adapter - SAP PO 7.31 - Single Stack

    Hi All,
    We have a requirement to avoid processing of duplicate files. Our system is PI 7.31 Enh. Pack 1 SP 23. I tried using the 'Duplicate File Handling' feature in Sender File Adapter but things are not working out as expected. I processed same file again and again and PO is creating successful messages everytime rather than generating alerts/warnings or deactivating the channel.
    I went through the link  Michal's PI tips: Duplicate handling in file adapter - 7.31  . I have maintained similar setting but unable to get the functionality achieved. Is there anything I am missing or any setting that is required apart from the Duplicate file handling check box and a threshold count??
    Any help will be highly appreciated.
    Thanks,
    Abhishek

    Hello Sarvjeet,
    I'd to write a UDF in message mapping to identify duplicate files and throw an exception. In my case, I had to compare with the file load directory (source directory) with the archive directory to identify whether the new file is a duplicate or not. I'm not sure if this is the same case with you. See if below helps: (I used parameterized mapping to input the file locations in integration directory rather than hard-coding it in the mapping)
    AbstractTrace trace;
        trace = container.getTrace();
        double archiveFileSize = 0;
        double newFileSizeDouble = Double.parseDouble(newFileSize);
        String archiveFile = "";
        String archiveFileTrimmed = "";
        int var2 = 0;
        File directory = new File(directoryName);
        File[] fList = directory.listFiles();
        Arrays.sort(fList, Collections.reverseOrder());
        // Traversing through all the files
        for (File file : fList){   
            // If the directory element is a file
            if (file.isFile()){       
                            trace.addInfo("Filename: " + file.getName()+ ":: Archive File Time: "+ Long.toString(file.lastModified()));
                            archiveFile = file.getName();
                          archiveFileTrimmed = archiveFile.substring(20);       
                          archiveFileSize = file.length();
                            if (archiveFileTrimmed.equals(newFile) && archiveFileSize == newFileSizeDouble ) {
                                    var2 = var2 + 1;
                                    trace.addInfo("Duplicate File Found."+newFile);
                                    if (var2 == 2) {
                                            break;
                            else {
                                    continue;
        if (var2 == 2) {
            var2 = 0;
            throw new StreamTransformationException("Duplicate File Found. Processing for the current file is stopped. File: "+newFile+", File Size: "+newFileSize);
    return Integer.toString(var2);
    Regards,
    Abhishek

  • Case Insensitive File Names in Sender File Adapter

    Hi,
    I've tried my best to search SDN on this issue with no help...
    My sender file name can have any case (upper or lower) e.g.
    ABC_123.txt
    or
    ABc_345.txt
    or
    aBC_456.txt
    However configuring the file name in the sender file channel as 'ABC*' did not work
    only files with name starting with the capital letters ABC got picked up and lower case did not get picked up...
    any suggestions on how this can be overcome
    Thanks
    Bharath Sai

    what if my file name has to be F0215DBFR* ??
    should I give 4*4 = 16 combinations ?
    looks funny... but feasible..
    was hoping SAP has a standard solution like
    [Ff]0215[Dd][Bb][Ff][Rr]* ?
    Anywise.. thanks a lot for your help Satish.. will use this technique (16 combinations for my req..)
    Edited by: Bharath Sai R on Sep 25, 2009 4:37 PM

  • Which file fails in sender file adapter

    Hi.
    Is there a place in the monitoring landscape, that can tell me the filename of a file, that fails in a sender file adapter (lets say I receive files with filename *.txt).
    The file adapter uses content conversion.
    Right now, the RWB only tells me that something went wrong in the content conversion. The filename would be nice for people working in a CCC to forward to second level support!
    Regards...
    Peter

    Hi,
    In the sender file CC..
    Check the option filename and filetype under the adapter specific attribute so  that the payload will have the filename too...which make the life easy...
    Regards
    San
    Remember to set the thread to solved when you have received a solution there is a Way.

  • File renaming in Sender file adapter usins OS command

    Hi Guys ,
    Can anyone explain on how to use the rename command in Sender file adapter using OS command parameter.
    Thanks,
    KC.

    Hey
    run the following OS command
    mv <originalFileName> <newFileName>
    This command will copy the <originalFileName> to a new file called <newFileName> and will delete the <originalFileName>
    There is no rename command in Unix,mv is used to rename the files
    Thanx
    Aamir

  • File missing from Sender File Adapter

    Hi,
    I have got some serious issue in the production environment where the file picked up by the J2EE Sender File Adapter has disappeared and I can't see any trace in sxmb_moni, adapter engine monitoring, integration server monitoring within the Message Monitoring.
    I have tried increasing the log to 1 in the sxmb_adm-->integration server configuration, still no help.
    Can somebody please suggest where should I look at.
    TIA.
    Ranjan Koirala
    The issue was that I was using a separate queue name and somehow the queue was corrupted thats why the message was not going anywhere.
    Message was edited by: Ranjan Koirala

    Ranjan,
    Incase you are trying to find out what happened to your message, one option could be to use the JMS commands - in particular 'JMS LIST DEADMSGS'. this command i believe lists the destinations for all the dead message on the server.
    regards,
    Sapknowledge

Maybe you are looking for

  • No bootable device - Please insert boot disk and press any key

    So I tried all yesterday to get bootcamp to work, and this is what happens. I get through all the steps of bootcamp with my USB, and when it restarts, it comes up with an error on a black screen: "No bootable device - Please insert boot disk and pres

  • Photoshop CC with Mac OSX 10.6.8?

    Sorry, this is my first time and I hope I'm in the right section. So I need to download photoshop, and when I checked out the system requirements it says "Mac OS X v10.7, v10.8, or v10.9" I have a Mac OSx 10.6.8, I was wondering if it would work? I'v

  • How to add a new value in seeded LOV in I Procurement page

    Hey Guys, I am stuck with one problem. In the I procurement module , when we make requisitions , we have option to change the requestor name. When i open the form , we can search the requestor only by name. There is a LOV for search criteria which ha

  • RMAN SBT_TAPE error

    When I am trying to delete the obsolete backups I get this error . RMAN-00571: =========================================================== RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS =============== RMAN-00571: ===========================

  • Shopping cart disappeared in iTunes 9

    I just updated to iTunes 9, and overall I love it. However, I noticed that my shopping cart just disappeared. Anyone know what happened? Are there no more shopping carts in iTunes 9? Wish I had known that before I upgraded!