Problem (Process Break) in Creating GRPOs thru DI API Object

Dear All,
I am creating around 12000 GRPOs thru object of GRPO. But the process breaks after processing the few hundred of GRPOs and get an error related to memory insufficient. I am woriking on SERVER and it has 18 GB of RAM. I am releasing the GRPO object and even use the Garbage Collector. But the system throws the errors concerning with memory. I think 18 GB RAM is enough.
Also, I have Disconnect and Connect to the DATABAse after posting of around 1200 GRPOs. But the problem is still occuring.
Please help me in this matter.
if (oGoodsReceipt != null)
                                            //GC.Collect();
                                            System.Runtime.InteropServices.Marshal.ReleaseComObject(oGoodsReceipt);
                                            GC.Collect();
                                            GC.WaitForPendingFinalizers();
                                        oGoodsReceipt = (SAPbobsCOM.Documents)ICreon_SBOAddOn.SBOCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oPurchaseDeliveryNotes);
                                        oGoodsReceipt.CardCode = strRptVendCode1;
                                        oGoodsReceipt.DocDate = Convert.ToDateTime(strDate);
                                        oGoodsReceipt.DocDueDate = Convert.ToDateTime(strDate);
                                        oGoodsReceipt.TaxDate = Convert.ToDateTime(strDate);
ANUJ SINGH

Hello
I am kindly asking you to remove these lines:
                                            //GC.Collect();
                                            System.Runtime.InteropServices.Marshal.ReleaseComObject(oGoodsReceipt);
                                            GC.Collect();
                                            GC.WaitForPendingFinalizers();
There is no relevance with them to release the memory, if you read the MSDN documents about the garbage, you can find out, they are not necessary...
The correct in c#
// inside loop
oGoodsReceipt = (SAPbobsCOM.Documents)ICreon_SBOAddOn.SBOCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oPurchaseDeliveryNotes);
oGoodsReceipt.CardCode = strRptVendCode;
oGoodsReceipt.DocDate = Convert.ToDateTime(strDate);
oGoodsReceipt.DocDueDate = Convert.ToDateTime(strDate);
oGoodsReceipt.TaxDate = Convert.ToDateTime(strDate);
oGoodsReceipt = null;
//loop ends
I am imporing items every day (approx 12000) without an error.
Regards
János

Similar Messages

  • Error - Addition of Batch wise GRPO thru DI API

    Dear All,
    I am facing the error "Can not release the item with selection of Batch/Serial" while adding the GRPO thru DI API.
    When I add only 1 line in GRPO with Batch Details thru coding,GRPO added successfully. But when there are more than 1 line then i get the above mentioned error.
    Edited by: anuj singh on May 7, 2011 11:31 AM

    Please show us your code, it's difficult to know the exact cause without seeing it.

  • Steps Involved in creating Users thru the API

    Hi Mark or anybody from Oracle,
    Your solution to build a string for the
    XML and then parse it is ok. However I would
    like to do it programmatically instead of building strings containing the XML.
    What are the steps and exactly what attributes do you need to set for the User
    to be created programmatically.
    Here is the steps I have and It's giving me
    the following exception: IFS-30002 - Unable to create new library object.
    The objects needed to create a user are:
    1) DirectoryUserDef + set its attributes
    2) Folder Definition for User folder then add
    to parent folder in this case /home
    3) PrimaryProfileUserDefinition + set its attributes DirectoryUser and HomeFolder ?
    Can you elaborate on the exact steps to take
    and exact attributes to set.
    Thanks
    null

    #1 I would strongly recommend the XML based approach. It's much easier, and if we change the way the user / directory objects are organized in much less likely to require you to alter your code.
    Note that in order to create the objects programatically you're going to have to make sure that you have set ACLs and Owners correctly. It really is quite a complex process.
    At some later date we 'may' provide a simple Java API for creating users.
    In order to understand your error I need to catch the exception and print the stack trace as per the end of my code example for creating a user from an XML string.
    Please post the results of the stack trace and someone will attempt to respond to you.

  • Really having problems with organising documents in pages. For example, deleting pages deletes the whole section and I cannot insert a section break as its greyed out & sending an object to background deletes several pages - what the **** is going on???

    Really having problems with organising documents in pages. For example, deleting pages deletes the whole section and I cannot insert a section break as its greyed out & sending an object to background deletes several pages and trying to insert a text box autmatically creates new pages- what the **** is going on??? Is this programme really this badly thought out? I thought everything apple was supposed to be intuitive!?!?!? Help.

    You can not insert a section break into a textbox.
    You appear to have a lot of objects with wrap set, that once you take them out of the flow of text (by sending them to the background) causes the text to reflow and contract into fewer pages. Pages is almost unique in the way it forms up pages in Word Processing mode only so long as there is text on them.
    I suspect you probably have hammered away at returns, spaces and tabs as well to position things, which only works to add to the mess.
    Download the Pages09_UserGuide.pdf available under the Help menu and swot up a bit on how it works.
    You may find this a usueful resource as well:
    http://www.freeforum101.com/iworktipsntrick/
    Peter
    PS There is quite a lot of programming in OSX that is far from "intuitive". Pages is easy at one level, when using the templates, otherwise it can be quite frustrating.

  • Problem using BAPI_BUS2001_CREATE to create project definition

    Hi,
    i have a problem using BAPI_BUS2001_CREATE to create project definition.
    i have customer fields in CI_PROJ structure.
    i used help structure BAPI_TE_PROJECT_DEFINITION in EXTENSIONIN table
    the problem is that customer fields that i have populated in BAPI_TE_PROJECT_DEFINITION are not processed.
    please help.
    thanks.

    solved,
    applay oss note 637345

  • 4.2.1 was supposed to fix problems, but it only created new ones. No video on some movies, no audio on others, and can't even play some movies. Can you please provide a means to restore 4.1.1?

    4.2.1 was supposed to fix problems, but it only created new ones. No video on some movies, no audio on others, and can't even play some movies. Can you please provide a means to restore 4.1.1?

    Let me try again, Chenks. I'm a technical person by profession, and so can get deeper into things like this, but I have not attempted to use these methods of communication in the past. I'm trying to get some feedback to Apple on their worsening a product and really messing with existing customer configurations. I'll try to break things up below.
    1. Configuration:
    Existing Apple TV and Mac Mini configuration in place since December 2010.
    Three Apple TVs, one in Family Room for music and movies, one in Master Bedroom for music and movies, the third one in the Living Room for music only.
    I'm using iTunes as library. (Probably an obvious statement, but wanted to mention that.)
    2. Pre 4.2.1
    No problems at any location since configuration finalized and all equipment installed in December.
    Since December, Family Room entertainment equipment was updraded to a new Sony Bravia 3D, and a new Pioneer receiver. The Master Bedroom still has the original Toshiba 32HLC56 TV. That unit has only one HDMI input. I'm using the built-in speakers. This TV/Monitor is about fives years old.
    3. Problem
    I updated the software in two of the Apple TVs to 4.2.1. I updated the Family Room device and the Master Bedroom device. I had not updated the Living Room device.
    After updating to 4.2.1, the Family Room equipment works fine. That's the location with the newer TV and receiver.
    The Master Bedroom has different problems with different movies: e.g. "The Little Mermaid:" video, no audio. "The Lion King:" movie wont start at all.
    Additionally, in the Master Bedroom some movies work fine, other movies start but immediately go into pause mode. Pressing pause button on Apple remote will not initiate start of movie, screen does "flicker" for a moment but movie does not start to play, showing only the last frame that had been streamed.
    4. Not really a problem for me.
    Fortunately for me, I had not updated the Apple TV in the living room so I used it to troubleshoot the problem. Initially I thought it was a defective Apple TV in the Master Bedroom. I took the unit to the Apple Store in town and they exchanged it for me. I brought the replacement Apple TV home but I did not install it immediately.
    While testing the Master Bedroom set up once again to make it was working for our afternoon movie watching, I was again reminded that a software update was available. That message came up because it was the unit I had brought over from the Living Room. I proceeded to update the Apple TV to the new software version (4.2.1).
    As soon as I "updated" the software in the Apple TV to the new 4.2.1, the same problems manifested themselves. At that point I suspected that the problem was with 4.2.1, and not with the hardware.
    I called Apple Support and went through a series of troubleshooting techniques. We tested the Apple TV with the new 4.2.1 installed in it. This is the unit which originially in the Living Room. Under the direction of the Apple TV support technician, I used the Family Room gear and the Master Bedroom gear to try and isolate the problem to hardware or software.
    We eliminated the following as potential problems:
    a. TV speakers in the Master Bedroom
    b. HDMI cable
    c. Ethernet connection
    5: Conclusion:
    Fortunately for me, again, the Apple TV that the Apple Store had given me that morning still had 4.1.1. So I installed that unit in the Master Bedroom and everything started working normal again.
    6. Side note:
    An interesting observation: In early March I copied several movies from the Mac Mini to my iPad and some to my wife's iPad. All movies worked fine on our flight out and while we were away.
    My wife recently (about a week ago) updated the software in her iPad. and now some of the movies that played just fine on her iPad are exhibiting the same problems as the Master Bedroom TV when it is connected to an Apple TV with software 4.2.1.
    Apple has been trying to fix some problems in 4.2 when it released 4.2.1. I make that observation based on recent articles I found on the web. Most likely the Apple engineers were trying to fix things in one place and broke them in another.
    Clear as mud, isn't it?
    7. In closing:
    I'm good to go, I just need to remember not to update the software in the Master Bedroom Apple TV. I want to keep that unit at 4.1.1. It's possible that Apple might come to the realization that they hosed things for some of us. Because I do have three units in my home, I can experiement with the other two units should a "fix" come out. I can then update one of the two devices, connect it to the Master Bedroom TV, and see if the problem was corrected. If not, I stay with 4.1.1. But I'm not convinced that Apple will see this as their problem, it's always easier to point elsewhere.
    Regards,

  • I have tried to purchase Adobe Acrobat Professional XI this morning and payment (AED 1983.53) has been taken, I received a message stating there was/is a problem processing my order and that I should contact your customer service team in UAE.  Having trie

    I have tried to purchase Adobe Acrobat Professional XI this morning and payment (AED 1983.53) has been taken, I received a message stating there was/is a problem processing my order and that I should contact your customer service team in UAE.  Having tried this, I was met with a recorded message, in Arabic, and no options to speak to anyone.  I have found this process extremely frustrating and poor on your behalf.  Not providing any options to speak to an Adobe representative is equally annoying.  Please get back to me ASAP, as I need to use the product immediately.

    CS2 is very old and reached its "end of life" a while back.  So probably won't run on modern operating systems.  If you can still run it, you'll need to uninstall what you have and re-install with the download link below to activate it.
    Error: Activation Server Unavailable | CS2, Acrobat 7, Audition 3
    Nancy O.

  • How do i purchase license for lightroom 5? When i tried to process payment, it says There was a problem processing your order, please contact our Customer Service team on 800 448 1642 for assistance.

    How do i purchase license for lightroom 5? When i tried to process payment, it says There was a problem processing your order, please contact our Customer Service team on 800 448 1642 for assistance.

    In this forum, we can't help with purchasing issues.
    My suggestion is to call that phone number.

  • The problem is when we create and then publish to ibooks review it can not be shown completely. How can I solve this problem?

    The problem is when we create and then publish to ibooks review it can not be shown completely. How can I solve this problem?

    If you are saying, that you published the book to  the iBooks review team and cannot be seem in the store.
    Use your iTunes Connect account > Manage your Books to check on its status. It takes time so you need to allow a few days.
    If its a problems viewing on your iPad Follow  the above advice and another option is is export your  book, open iBooks on your  Mac and drag the  book into  iBooks.
    You can iTunes > add to libray and sync to your iPad.

  • There was a problem processing your order, please contact our Customer Service team for assistance.

    when i waned to buy and finished filling all the (*), i clicked on conifirm membership they worte this in a red color:
    There was a problem processing your order, please contact our Customer Service team for assistance.Middle East & North AfricaBahrain: 80081097Egypt: 08000000447Jordan/Kuwait/Lebanon/Qatar/Yemen: English +44 207 365 0735Jordan/Kuwait/Lebanon/Qatar/Yemen: Arabic/French +44 203 564 4145Oman: 80077173Saudi Arabia: 8008446638Tunisia, Morocco and Algeria: +33 157324642United Arab Emirates: 80004443085Commonthwealth of Independent States (CIS): +44 207 365 0735

    Asmaa,
    Other than using the suppport phone number, you may try a chat here:
    Creative Cloud support (all Creative Cloud customer service issues)
    http://helpx.adobe.com/x-productkb/global/service-ccm.html

  • When i waned to buy and finished filling all the (*), i clicked on conifirm membership they worte this in a red color:  There was a problem processing your order, please contact our Customer Service team for assistance.Middle East

    when i waned to buy and finished filling all the (*), i clicked on conifirm membership they worte this in a red color:
    There was a problem processing your order, please contact our Customer Service team for assistance.Middle East & North AfricaBahrain: 80081097Egypt: 08000000447Jordan/Kuwait/Lebanon/Qatar/Yemen: English +44 207 365 0735Jordan/Kuwait/Lebanon/Qatar/Yemen: Arabic/French +44 203 564 4145Oman: 80077173Saudi Arabia: 8008446638Tunisia, Morocco and Algeria: +33 157324642United Arab Emirates: 80004443085Commonthwealth of Independent States (CIS): +44 207 365 0735

    Verify that everything about your Adobe ID and your country and your credit card match exactly
    Change/Verify Account https://forums.adobe.com/thread/1465499 may help
    -http://helpx.adobe.com/x-productkb/policy-pricing/change-country-associated-with-adobe-id. html
    -Credit card https://helpx.adobe.com/utilities/credit-card.html
    -wrong email https://forums.adobe.com/thread/1446019

  • I can't renew my plan. It always say"There was a problem processing your order, please contact our Customer Service team on 30714922 for assistance."

    I can't renew my plan. It always say"There was a problem processing your order, please contact our Customer Service team on 30714922 for assistance."
    I can't find my payment info and renew button. Please help me!

    In this forum, we can't help with purchasing issues.
    My suggestion is to call that phone number.

  • Process Flow of Creating and sending Dunning Form

    Hi Experts,
    Can you please help me in this
    What is the process flow of creating, sending Dunning form and when do we get Confirmation from vendor and when the condition type should be triggered in messages of PO.
    I will appriciate your help
    Regards,
    Sheral

    Hi,
    Check these links.
    http://forums.sdn.sap.com/thread.jspa?messageID=3537642#3537642
    http://forums.sdn.sap.com/thread.jspa?messageID=5337739#5337739
    Regards
    Ayyallas

  • Problem in Function while creating dependency not getting solved

    Hi All,
    I am not getting any solution even after debuging it many times,
    This is second time I am posting same problem , Please help me out if possible
    I am  working on a Program in which I have to create Class , local and global dependency -
    For class createion i am using
    BAPI_CLASS_CREATE
    For local dependency i m using
    CAMA_CLASS_MAINTAIN_DEP
    For Global dependency i am using
    CAMA_CLASS_ALLOCAT_GLOB_DEP
    Now my problem is that I am able to create Class and only 1 of the dependency either local or global whihever function I am calling first
    But while debugging program I am able to create Class as well as both dependencies successfully
    Please can any one tell while this is runing successfully only at the time of debugging
    Code -
    have used -
    CALL FUNCTION 'BAPI_CLASS_CREATE'
    EXPORTING
    CLASSNUMNEW = TCLASS-CLASS
    CLASSTYPENEW = TEXP1-KLART
    CLASSBASICDATA = CLASSBASICDATA
    CHANGENUMBER = SAENNR
    TABLES
    CLASSDESCRIPTIONS = CLASSDESCRIPTIONS
    CLASSLONGTEXTS = CLASSLONGTEXTS
    CLASSCHARACTERISTICS = CLASSCHARACTERISTICS
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
    WAIT = 'X'
    IMPORTING
    RETURN = TRET2.
    CALL FUNCTION 'CAMA_CLASS_ALLOCAT_GLOB_DEP'
    EXPORTING
    CHANGE_NO = SAENNR
    KEY_DATE = SY-DATUM
    TABLES
    CLASS_DEP_ASSIGN = T_GLBDEP
    EXCEPTIONS
    ERROR = 1
    WARNING = 2
    OTHERS = 3.
    CALL FUNCTION 'CAMA_CLASS_MAINTAIN_DEP'
    EXPORTING
    CLASS = TCLASS-CLASS
    CLASS_TYPE = SKLART
    DEPENDENCY_DATA = T_DEPDATA
    CHANGE_NO = SAENNR
    KEY_DATE = SY-DATUM
    TABLES
    SOURCE = TSOURCE
    EXCEPTIONS
    ERROR = 1
    WARNING = 2.
    I have no problem in creating Class using Bapi ,
    Problem I am facing here in creating Local and global dependency together which i am able to create in debugging mode only otherwise either Local or global whichever function i am using first
    Regards
    Preeti

    duplicate post locked
    Re: Problem in Function while creating dependency

  • Error in 'eMail Response - Process Message' --- Error running sub-process 'eMail Response - Create Activity' at step 'Create Activity Process'.(

    Hi,
    When I was simulating the 'eMail Response - Process Message', I had been getting the below error when entering to 'Create activity Process' step.(provided all the inputs per testmode.xml file)
    Error running sub-process 'eMail Response - Create Activity' at step 'Create Activity Process'.(SBL-BPR-00183)
    I increased the log level to 5 and got the below message in log file
    ObjMgrBusServiceLog    InvokeMethod    4    0000000251b51f04:0    2013-06-10 01:30:12    Begin: Business Service 'XML Hierarchy Converter' invoke method: 'DocToHier' at 12cc4240
    ObjMgrBusServiceLog    Error    1    0000000251b51f04:0    2013-06-10 01:30:12    (xmlcnvsv.cpp (548)) SBL-EAI-00246: XML Hierarchy Converter error - empty input message, expecting an XML document in <Value> of input arguments
    I was wondering I could not find 'XML Hierarchy Converter' business service in 'eMail Response - Process Message' and 'eMail Response - Create Activity' sub process.
    Can any body help me out in this regard.
    Thanks in advance..
    Jagadeesh

    Hi Naresh,
    yes, I am using the delete polling strategy. Here is the .jca file:
    <adapter-config name="Pozadavky" adapter="Database Adapter" wsdlLocation="Pozadavky.wsdl" xmlns="http://platform.integration.oracle/blocks/adapter/fw/metadata">
    <connection-factory location="eis/DB/PozadavkyConn" UIConnectionName="PozadavkyConn" adapterRef=""/>
    <endpoint-activation portType="Pozadavky_ptt" operation="receive">
    <activation-spec className="oracle.tip.adapter.db.DBActivationSpec">
    <property name="DescriptorName" value="Pozadavky.Pozadavky"/>
    <property name="QueryName" value="PozadavkySelect"/>
    <property name="MappingsMetaDataURL" value="Pozadavky-or-mappings.xml"/>
    <property name="PollingStrategy" value="DeletePollingStrategy"/>
    <property name="PollingInterval" value="120"/>
    <property name="MaxRaiseSize" value="1"/>
    <property name="MaxTransactionSize" value="10"/>
    <property name="NumberOfThreads" value="1"/>
    <property name="ReturnSingleResultSet" value="false"/>
    </activation-spec>
    </endpoint-activation>
    </adapter-config>

Maybe you are looking for

  • Table for vendor deletion date

    Hi all, I want the table name that stores the vendor deletion date as per xk06 transaction. but not the LFA1 table as it just indicates deletion of vendor. thanks in advance, prash

  • Application iDB Datamaster Pro

    Please review and approve the new app update "iDB Datamaster - Pro" Version 1.2, by Evince Technologies, Inc as soon as possible. All of the customers of Version 1.1.3 are enraged by it's failure to run under iPhone OS4. The makers claim that they ha

  • Default username and password for Oracle EM

    Hi all I am running Oracle database server using the VM template 'Database App Development VM'. I have started the EM from the console and able to access it through browser. I used username and password as 'oracle'. But it is saying that 'user name o

  • Download documents

    Hi, I need to put a button in a report to make a download of a file that is stored in a blob field in a table. How can i do it? Is it possible to do it with wizards? In the forum I see a lot of questions about this, in all of them they use the instru

  • FSL-02106  Path contains reserved character ('"'):

    Dear all, I am going to uninstall a dialog instance from our IS-U system (NetWeaver 2004sSR1).  Our IS-U system is a cluster system running Microsoft Cluster Service.  Unfortunately, I received the following errors and I didn’t know what went wrong.