IBaseMessage.Context getting disposed for large message processing (There was a failure executing the receive pipeline: Reason: Cannot access a disposed object. Object name: 'MessageContext'.

Hi,
I am trying to parse a large message (2.7 MB file) in a custom Flat file Disassembler (inherited from the Microsoft.BizTalk.Component.FFDasmComp) this does exactly the same work for FFDasmComp but also promotes the count of disassembled messsages. This
works fine for small messages but for large messages I get this error
There was a failure executing the receive pipeline: "<pipeline name>, <Pipeline assembly>" Source: "Custom FlatFile Disassembler" Receive Port: "ReceivePort7" URI: "<the input file location>" Reason: Cannot access a disposed object.
Object name: 'MessageContext'.
In the event log
what I am doing inside the custom flat file assembly is, I am saving all the disassembled messages in a List<IBaseMessage> and then finally when GetNext() method returns null I am promoting the nRecordCount in the messageContext of all the disassembled
messages. This is where I get the error when trying to promote to the message context.(Cannot access a disposed object, Object name: 'MessageContext'). I think the messagecontext is getting disposed, but it should not as I still hold its reference in
the List<IBaseMEssage);
private long nRecordCount = 0;
private List<IBaseMessage> oDisassembledMessages = new List<IBaseMessage>();
Any idea why this happens ?
Thanks in advance, PLEASE HELP
Surya

Hi Surya,
Are you still facing this issue? and are you using Flat File Disassembler in your Receive pipeline?
If yes then set 'RecoverableInterchangeProcessing' to True.
Please have a look in below articles-
BizTalk
Pipeline - Flat File Disassembler Cannot Access a Disposed Object 'DataReader'
biztalk-esb-toolkitflat-file-debatching
BizTalk
Server: List of Errors and Warnings, Causes, and Solutions
This issue can also occur if you are using Large Size message, in this case you will have to optimize your code.
Thanks,
Prashant
Please mark this post accordingly if it answers your query or is helpful.

Similar Messages

  • When I try to manually backup my ipad2, I receive an error message stating "There was a problem completing the backup.  Please try again later" ... and this happens each time I try to back up.  Grateful for suggestions ...

    When I try to manually backup my ipad2, I receive an error message stating "There was a problem completing the backup.  Please try again later" ... and this happens each time I try to back up.  Grateful for suggestions ...

    Seems to be a common enough problem. I've deleted the partial failed backup from iCloud, restoring all 5Gb of storage. Then started a manual backup. After about 20 minutes I get the same error message. I have repeated this several times. According to my iTunes on my laptop I managed one backup to iCloud from there but it is pointless if u can neither backup to or restore from iCloud via my iPhone 4. I had hoped ios 5.0.1 would solve this glitch but ....
    So much for "it just works".
    I have yet to see any suggested fix that works for me. Any other suggestions?

  • When I try to open a pdf file I get an error message stating "There was an error opening the document.  The file is damaged and could not be repaired."  Other pdf files open fine.

    When I try to open a pdf file I get an error message stating "There was an error opening the document.  The file is damaged and could not be repaired."  Other pdf files open fine.

    You need to get a new copy of the PDF.

  • When going to a website from the desktop I get the followi ng message. "There was a problem sending the command to the program" Even though I get this messge, it still connects with the website/

    When going from the desktop to a website, I get the following message. "There was a problem sending the command to the program" Even though I get this message, I still connect to the website.

    As reported in earlier replies, the annoyance disappeared after I upgraded to Roboform 7.5.6, from 7.5.4.
    Regards, Steve

  • Aperture (3.4.1) no longer opens and the following message appears: There was an error opening the database for the library "/ Users / Andrea / Pictures / Aperture 3 Library.aplibrary." How can I solve this problem? Thanks

    I was using Aperture (3.4.1), when he appeared a notice that asked me to stop the Mac with the power button. When I restart Aperture no longer opens and the following message appears: There was an error opening the database for the library "/ Users / Andrea / Pictures / Aperture 3 Library.aplibrary."
    How can I solve this problem?
    Thanks

    After a system crash your Aperture Library may be corrupted, because Aperture may not have been able to finish the ongoing database transactions.
    Have you tried the Aperture Library First Aid Tools?
    Aperture 3 User Manual: Repairing and Rebuilding Your Aperture Library
    Try "Repair Database", and if this does not help: "Rebuild Database"
    Regards
    Léonie

  • My Mac suddenly started getting a pop up message saying "There was a problem conecting to the server. URLs with the type "file" are not supported." My internet is working fine,no problem connecting. I just keep getting this message which I click off .

    My Mac suddenly started getting a pop up message saying "There was a problem conecting to the server. URLs with the type "file" are not supported." My internet is working fine,no problem connecting. I just keep getting this message which I click off and continue working.

    Open the Time Machine pane in System Preferences. If it shows that Time Machine is ON, click the padlock icon in the lower left corner, if necessary, to unlock it. Scroll to the bottom of the list of backup drives and click Add or Remove Backup Disk. Remove all the disks, then add them back. Quit System Preferences. Test.

  • I can not open aperture. Following message appears: There was an error opening the database for the library.

    I can't open aperure. Following message appears: There was an error opening the database for library.

    Try starting Aperture while holding down the command and option keys. This will open the library first aid window. Select library repair, when it is finished the library should open.
    If you still have a problem post back.

  • I get an error FRM-92101:There was a failure in the Forms Server

    I get an error FRM-92101:There was a failure in the Forms Server during startup. This could happen due to invalid configuration. Please look into the web-server log file for details, when i open the form
    it's a fresh installation for the oracle application 12.1.1 vis on linux redhat 5

    Hi;
    Please check below note:
    FRM-92101: There Was a Failure in the Forms Server During Startup After Fresh R12 Installation [ID 429627.1]
    R12 fresh install FORMS DO NOT LAUNCH - FRM-92101/500 [ID 427714.1]
    FRM-92101: Forms Server oracle.forms.net.ConnectionException: Forms session <1> failed during startup: no response from runtime process [ID 880088.1]
    Also check:
    Re: R12 database and JRE Issue
    Regard
    Helios

  • I downloaded mavericks but the install failed. The message stated there was an error with the disk which required repairing.

    Help please!  I downloaded mavericks but the install failed. The message stated there was an error with the disk which required repairing. Using disk utility repair disk is not available ( greyed out) and verify disk stops and says disc requires repairing. So the online support page suggests I erase the disc and reinstall then back up from time machine ( I have a recent backup). But when I try to erase the Macintosh HD I get the message volume erase failed with the error couldn't unmount disk.
    I'd be very grateful for any help anyone can give me.
    I have a macbook pro 17" mid 2009-  running on snow leopard 10.6.8 ...  I lost the snow leopard disk so I don't know what to do from there ... I tried restarting by clicking SHIFT (safe mode) after the chime comes up,  but It doesnt seem to make any difference ... please help !!
    thank you sooo much
    many many thanks for your hep guys !!

    Whenever you install a new version of OS X being installed, the disk is checked just as if you were using Disk Utility checks the disk to see if the disk is damaged. And,, from what you report, your disk is damaged and needs to be replaced. This isn't a fault with Mavericks - your disk may have been failing for years.
    It's a very good thing that you've a recent backup as you're going to need it. I would suggest that you evaluate what functionality that you need in a new disk and go shopping at OWC for a new drive - HGST (or any Hitachi), Seagate SSHDs or Toshiba drives are all good. Be sure that you buy an enclosure for the 'new' drive so that you can format it using Disk Utility before installing it into your machine - you can get one of those from OWC as well.
    Good luck - call back with any questions...
    Clinton

  • When i click on an excel or word file in 2007 the program begins to open but then an error message says There was a problem sending the command to the program

    when i click on an excel or word file in 2007 the program begins to open but then an error message says There was a problem sending the command to the program.
    i am using office2007  with windows7 premium home edition.  i have checked file associations., all DDE settings. i have even tried this in safe mode. the same thing happens. please note once i see the error. i can then go back to the file click on
    it a second time and it WILL open. AND i can open any file if i open excel and and find the file from there. i uninstalled and re-installed office 2007 from scratch. And i checked the compatibility mode (all un-checked) still the problem persisits. this is
    a real PITA.   anyone have any solution for this? Thanks 
    ken yanow

    Hi,
    Have you try to un-select the Ignore other applications that use Dynamic Data Exchange (DDE) setting?
    Click the Microsoft Office Button, and then click Excel Options.
    Click Advanced, and then click to clear the Ignore other applications that use Dynamic Data Exchange (DDE)
    check box in the General area.
    Click OK.
    If the problem cannot resolve, the Run as administrator may selected.
    Go to Office default install location: C:\Program Files\Microsoft Office\Office12.
    Right-click EXCEL.EXE > Properties >
    Compatibility tab.
    Under Privilege Level, uncheck Run this program as an administrator
    check box.
    Best regards.
    William Zhou
    TechNet Community Support

  • HT4463 no able to buy apps - can download free ones only - error message is: There was an error in the App Store. Please try again later. (100)

    no able to buy apps - can download free ones only - error message is: There was an error in the App Store. Please try again later. (100)
    i need solution ?

    Hi there hamzaarab!
    I have an article here for you that deals with this exact issue:
    Mac App Store: "An unknown error occurred (100)" when purchasing
    http://support.apple.com/kb/ts3637
    Thanks for being a part of the Apple Support Communities!
    Regards,
    Braden

  • I am using iphone 3gs since last 4 days. Till yesterday night it was working fine and i have connected this phone for charging . Morning there was apple logo in the screen and every 1mte (approx) it is blinking. I could not restart the phone.Plz help

    I am using iphone 3gs since last 4 days. Till yesterday night it was working fine and i have connected this phone for charging . Morning there was apple logo in the screen and every 1mte (approx) it is blinking. I could not restart the phone.Plz help . I have tried to reset even by pressing sleep and home button but it could not help. Please suggest. Still i have connected for charging .

    Sounds like you have corrupt backup data, if this occurs from one phone to another. Try restoring the phone as a new device, without a backup. Try using for a day before installing any other apps, etc. See if that improves the battery life. Then try syncing back applications a couple at a time. Something seems to be locking in the processor which is draining the battery.
    Do you live in an area where there are Apple Stores? If so, try making an appointment with the Genius Bar to have the device checked out.

  • Everytime I come to purchase neverwinter nights 2 it won't let me, and brings the following error message up; 'There was an error in the App Store. Please try again later (100). It is later, days later, and still nothing is working. Help!?!

    Everytime I come to purchase neverwinter nights 2 it won't let me, and brings the following error message up; 'There was an error in the App Store. Please try again later (100). It is later, days later, and still nothing is working. Help!?!
    Thanks

    Try here >  Mac App Store: "An unknown error occurred (100)" when purchasing

  • I keep getting a message saying "There was a problem sending the command to the program". What is wrong?

    For about 1 week now i have been getting the same message now allowing me to send or open. It says "There was a problem sending the command to the program." Why? I cannot even answer your email asking for to confirm my email question. It will not allow me to access you when I click on the line you tell me to click on. How come?

    Click here and request assistance.
    (87825)

  • "There was an error opening the pdf. File cannot be found" Message

    I am creating an Adobe PDF file using Save As in FrameMaker 7.0. (I have Acrobat Standard 8). The PDF creates fine, but I used to get the pdf to immediately/automatically open. Now I get the message "There was an error opening the pdf..."
    I did select the option to automatically open the pdf in File > Preferences but it doesnt do it, Any suggestions?
    Thanks.
    Beth

    Hi John Paul,
    Do you get any error code associated with this error message.
    Does this happen with other pdf files too or with that specific pdf?
    In case it happens with that specific pdf, please get another copy of that pdf because the current copy might have got corrupted.
    Regards,
    Rahul Tyagi

Maybe you are looking for