Failed Message Routing - Generic Error Description - why?

Hi,
I have developed a custom pipeline component but when it throws an exception, it throws a generic exception description, as follows:
"The Message Engine encountered an error during the processing of one of or inbound messages"
I have 'Failed Message Routing' enabled on my port and an orchestration that subscribes to these failed messages.
But I'm creating my own custom error description, with information I use further down the process, this custom description gets overwritten by Biztalk somewhere after been thrown.
Is there a reason for this? And is there a way to work around this?

Thanks for your reply.
I'm trying to get a value from the using XPathReader
Here is a snippet of my code
Stream inboundStream = bodyPart.GetOriginalDataStream();
VirtualStream virtualStream = new VirtualStream(bufferSize, thresholdSize);
ReadOnlySeekableStream readOnlySeekableStream = new ReadOnlySeekableStream(inboundStream, virtualStream, bufferSize);
XmlTextReader xmlTextReader = new XmlTextReader(readOnlySeekableStream);
XPath.XPathCollection xPathCollection = new XPathCollection();
XPathReader xPathReader = new XPathReader(xmlTextReader, xPathCollection);
xPathCollection.Add(XpathValue);
bool ok = false;
string Value = string.Empty;
while (xPathReader.ReadUntilMatch())
if (xPathReader.Match(0) && !ok)
if (xPathReader.NodeType == XmlNodeType.Element)
xpathValue = xPathReader.ReadString();
else
Value = xPathReader.GetAttribute(xPathReader.LocalName);
ok = true;
DateTime.TryParse(Value, out myDate);
readOnlySeekableStream.Position = 0;
bodyPart.Data = readOnlySeekableStream;
if an Exception happens anywhere before this code or even during this code snippet, I get my custom error description but when the code exits the 'while statement' and if an exception happens, I get the generic error description - "The Message Engine
encountered an error during the processing of one of or inbound messages"
Does something happen the stream when it is used in XpathReader?
Thank you

Similar Messages

  • Failed Message Routing not working

    HI
    I have a receive port and a Send Port .In the Rv Port i have enabled Routing for failed Messages.
    The send port is a file adapter and have a filter ErrorReport.ErrorType == FailedMessage & Receive Port Name.
    When i drop a invalid Message to the Receive Location i am unable to get the Failed Message.
    Where i am wrong ?

    This could be because your ReceivePortName property is demoted. To avoid that the error message is routed to subscribers that actually are subscribing on you original messages its original properties are demoted. Think of it, otherwise all
    port that subscribe to messages (from a specific ReceivePortName for example) could end up getting the error message and
    ErrorReport.ErrorType == FailedMessage is not promoted.
    Refer the article on how to achieve this:
    Failed Message Routing and Failed Orchestration Routing in BizTalk 2006
    Using Failed Message Routing
    Rachit
    Please mark as answer or vote as helpful if my reply does

  • Enable Biztalk Failed Message Routing in Orchestration

    In Biztalk Receive Port or Send Port, we can enable failed message routing such that error message will be routed to the message box for further processing and I can subscribe to those error reports and consume them.
    Can I do the same in an orchestration?  So for example,  I have a correlation set, where my orchestration is going to wait for 2 messages before aggregating them and publishing a message to a send port.
    So my receive shapes are in a scope shape and the scope shape has a timeout.  So if the timeout elapses before the orchestration is completed then an exception will occur and the message will suspend. 
    What I'd like to do is have it not suspend, generate an error report which I can subscribe to and perform other logic, such as inform someone.  I'd also like to include details about the message, or possibly the entire message that was received, which
    appears difficult because the scope's exception block is not in scope of the message that was received.
    I'd think that will correlation scenarios this would be a common problem.  Any suggestions?

    Hi Jeremy,
    You have to use Exception Handling in Orchestration, I would ask you to go through following articles to understand how to work with exceptions in Orchestration:
    A developers guide to handling exceptions in BizTalk Server
    Using Transactions and Handling Exceptions
    Maheshkumar
    S Tiwari|User
    Page|Blog|BizTalk
    2013: Inserting RawXML (Whole Incoming XML Message) in SQL database

  • Delivery Notification & Failed Message Routing At the same time

    Hi All,
    Here's our scenario.
    BizTalk Orchestration --> One Way Send Port --> SAP
    Now, we've enabled 'Delivery Notification' on the Logical Send Port, so if the message fails due to some connectivity issue, it's caught in Orchestration and persisted in another custom database from where it'll be automatically retried. Problem is although
    the Orchestration instance is terminated after catching the exception, Send Port instance remains suspended, we don't want that, to solve this we 'Enabled Failed Message routing' on the Send Port and had another Send Port to subscribe to those failed messages
    and terminate them. 
    But after that, failures are not really handled as expected, sometimes the message is not routed back to orchestration (delivery failure notification), sometimes the Failed Message routing port is not getting the message, it's intermittent and unexpected.
    Would you guys be able to help us here with.
    1. Do you see us doing something wrong?
    2. Any other solution to this problem rather than using 'Failed Message routing', may be programmatically terminating the Send Port instance? any examples of that?
    Thanks alot
    Syed

    Hi Sayed,
    In my view the issue is with your design of using Delivery Notification and Failed message routing together.
    Case 1 : The thing is that when you enable failed message routing on the send port it will not suspend the message and the message will be delivered successfully and since message will be delivered successfully your Delivery Notification exception will not
    get invoked. 
    Case 2 : Since the delivery notification works on the ACK NACK concept, sometimes it could happen that before failed message routing send port subscribes the message the NACK message may have been send to the Orchestration hence the message is routed back
    to the Orchestration.
    Hence you are getting the unexpected behavior. You could always create powershell or MSbuild scripts to remove the send port suspensions. Below links gives you the code to remove suspended and terminated instances :
    http://code.msdn.microsoft.com/windowsdesktop/Script-to-delete-biztalk-1cd312ac
    http://stackoverflow.com/questions/11795105/get-all-suspended-instances-for-specific-application-in-biztalk
    Please indicate "Mark as Answer" or "Mark as Helpful" if this post has answered the question
    Regards,
    Rahul Madaan
    biztalkvillage.blogspot.com

  • Report preview fails with very generic error

    I am working on a project that includes an SSRS project within a Visual Studio 2012 solution. The SSRS project was created in VS2008 and then brought into the VS2012 solution later. The other developer is able to preview reports just fine, but I can't.
    I believe I have installed all the necessary supporting software (Sql Server Data Tools, etc.)
    I am able to create and view reports in the designer, and I can even query data through the dataset. However, when I try to preview the report, I get a very unhelpful error:
    "An error occurred during local report processing. An error has occurred during report processing."
    All of the other forum messages I have found that have run into this error also have some further explanation of the error. I just get this, which leaves me with two questions:
    1) Has anyone seen this and managed to resolve it? If so, how?
    2) Is there somewhere else I can look, a log or something, to tell me what the error actually is?
    Thanks in advance,
    Geoffrey Callaghan

    Hi Geoffrey,
    If I understand correctly, you have meet this issue when you try to preview the report in SQL Server Data Tools.
    Based on the error message, it may be the report design incorrect caused this issue. As you mentioned, in general, it will have other information after the error message. Please make sure if there are any other information. We can create a simple report
    to check if also meet the same issue to judge if we have installed software correctly. If possible, please try to recreate the report to troubleshooting the issue.
    If the issue still persist, could you please post the dataset with data and .rdl file to us by the following E-mail address? It is benefit for us to do further analysis.
    E-mail:  [email protected]
    Regards,
    Alisa Tang
    Alisa Tang
    TechNet Community Support

  • EDI over WCF request-response port - how to catch failed messages and send response over a 2 way port

    I'm using BizTalk 2009.  I've written an orchestration for accepting 270's and returning 271's, and another for 276's and 277's.  The incoming and outgoing EDI stream is wrapped in XML.  I've published the schema using the WCF publishing wizard,
    and I am using the WCF-WSHttp adapter.  I have custom pipeline components to unwrap and wrap the XML, and to handle the NACK generated by the adapter.  Everything works fine if valid EDI is received. 
    However, I'm challenged with handling failures from the EDI disassambler.  The specification I've been given is to return a 271 or 277 in all cases (or as many as possible).  What I would like to do is catch the failed message, generate a (271
    or 277) response, and return that response over the 2-way port.  I know how to enable failed message routing and how to subscribe to the message if it were to come in over a one-way port.  It seems that this cannot be done when the message comes
    in over a 2-way port. 
    Any suggestions on how this can be done?

    I should have mentioned that turning off as much EDI validation as I can in the pipeline is already part of my approach.  However, to my knowledge, there are some validations (such as incorrect segment count in the SE) that cannot be disabled. 
    Regarding the TA1/997/999 - because this is a real time transaction, I'm not generating any.  Still, to take your suggest, I decided to generate a 997, thinking I could at least subscribe to it and if the 997 indicated a failure, to
    generate the response (in the form of a 271 or 277) that my trading partner is expecting.  What I found was that the 997 was being returned through the send pipeline of the 2 way port, EVEN WHEN I set RouteAckOn2WayPort to False on the receive pipeline! 
    This produces even more work for me, because now I have to "eat" the acknowledgement so that the 271 or 277 can get through.

  • New to photoshop. Keep getting an "Import Failed" message

    I'm trying to put videos from a Panisonic HDD video camera on to DVDs but keep getting an "Import Failed" message everytime I try. Why? What am I not doing?

    I suspect that you wiil be using the Adobe Premiere Elements software for editing video in order to create that DVD of your video.  There is a  separate forum at
    http://forums.adobe.com/community/premiere_elements
    I recommed that you post your video import question on that forum because that is where you will find people who use the video related functions of the Adobe Elements software.

  • Why do I get "generic error" message when trying to upload a self-created, 1hr .wmv file?

    I went through the forums and made sure that any blocks or copywrites weren't triggered by the file, it's clean and can be opened using a media player and other video editing software like windows MovieMaker. I keep getting "The importer reported a generic error" message and have no idea how to proceed. Can someone please help?

    Re: Why do I get "generic error" message when trying to upload a self-created, 1hr .wmv  file?
    This ARTICLE starts with a checklist on setting up a computer to run PrE best, then goes into a series of links for tuning up one's computer and OS, and then links on troubleshooting.
    There is also a link on posting all necessary info, to help others help you.
    Without knowing much more about your system, it is impossible to say much beyond that WMV's are tough assests to work with, requiring a lot of CPU horsepower.
    Good luck,
    Hunt

  • HT1386 I am getting an error message that syncing failed to start.  Any ideas why?

    I am getting an error message that syncing failed to start.  Any ideas why.  The ipad is working fine.

    Then I tried to download and install them again but it kept saying the old itunes could not be removed.
    (1) Download the Windows Installer CleanUp utility installer file (msicuu2.exe) from the following Major Geeks page (use one of the links under the "DOWNLOAD LOCATIONS" thingy on the Major Geeks page):
    http://majorgeeks.com/download.php?det=4459
    (2) Doubleclick the msicuu2.exe file and follow the prompts to install the Windows Installer CleanUp utility. (If you're on a Windows Vista or Windows 7 system and you get a Code 800A0046 error message when doubleclicking the msicuu2.exe file, try instead right-clicking on the msicuu2.exe file and selecting "Run as administrator".)
    (3) In your Start menu click All Programs and then click Windows Install Clean Up. The Windows Installer CleanUp utility window appears, listing software that is currently installed on your computer.
    (4) In the list of programs that appears in CleanUp, select any iTunes entries and click "Remove", as per the following screenshot:
    (5) Quit out of CleanUp, restart the PC and try another iTunes install. Does it go through properly this time?

  • Enable routing for failed messages on receive port

    Hi,
    I have a receive port with a WCF-CustomIsolated receive location.
    On receive port I checked "Enable routing for failed messages".
    In pipeline settings I have set ValidateDocument to true.
    When a client sends me an incorrect schema, it receives a validation error (that happened in pipeline) and it's OK.
    But it's not routed as a fault message to message box.
    Could you help me why does it happen?
    Why "routing for failed messages" does not work in this case? And in what cases it should work?
    Thank you!

    Hi Vlad,
    Failed Message is created only when there are subscribers for it.
    Create a send port with following filter 
    ErrorReport.ErrorType=FailedMessage
    Please mark the post as answer if this answers your question. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.

  • Trying to burn a playlist in itunes and i get this message at the end 'The attempt to burn a disc failed. An nknown error occurred (4450)'.  This is with a new Dell laptop running windows 8. The playlist was 17 songs from cd's and itunes.  Any ideas?

    Trying to burn a playlist in itunes and i get this message at the end 'The attempt to burn a disc failed. An nknown error occurred (4450)'.  This is with a new Dell laptop running windows 8. The playlist was 17 songs from cd's and itunes.  Any ideas?

    try this...
    This is how I managed to fix the problem...and I hope this helps others in the similar situation.
    I tried with another program..latest version of Nero, and this was also stopping at the 'initialising' stage. I was now lost! I thought the last resort is to give Evesham (My PC manufacturer) a buzz. They were very helpfull. Basically go into 'Control Panel', 'System', and click on the Hardware tab, then 'Device Manager'. Uninstall everything in the DVD/CDRom Drives. Then uninstall everything under the catagory IDE ATA/Atapi disk controllers. This is where my problem was, as I only had one IDE channel here. You should have 4 or 5! Reboot your machine, and everything will automatically re-load. I tried burning using Nero and it worked. Then the big test was iTunes. It worked 1st time!
    I asked why the IDE channels have dissappearred, and he said sometimes uninstalling Programmes occasionally removes them.
    I hope this will help others who are having problems to burn stuff on iTunes.

  • "Importer reported a generic error" message while importing ProRes 422 clip

    Hi all.  I am getting an "Importer reported a generic error" message when I try to import a ProRes 422, linear PCM clip into Premiere Pro CS6.  I have imported other ProRes 422 clips in previous projects without a problem, although those clips did not have the linear PCM codec included.  I have tried to solve the problem using advice on other forum threads.  Changing the file name did not work.  Removing underscores in the file name did not work either.  Copying the file and pasting to a different folder before re-importing did not work either.  The file DOES open in AE, but I am getting the error message without fail when I try to import into Premiere.  Any thoughts on how to remedy the situation?  FYI - I am still running version 6.0.0 of Premiere.  Thanks for your help!

    Try going to Help | Deactivate in Pr.  Close Pr.  Reboot.  Launch Pr and activate if requested.  That procedure has helped some users restore missing codecs and presets, maybe it'll help your Dynamic Link.
    Jeff

  • TS3297 Any idea why I can't purchase stuff off either iTunes or AppStore? I am getting a message saying unknown error has occurred immediately I enter my password.

    Any idea why I can't purchase stuff off either iTunes or AppStore? I am getting a message saying unknown error has occurred immediately I enter my password.

    Brett,
    Well done getting the wireless network secured.
    You have to precede the (hex) password with a '$' in Mac OS, to tell the Internet Connect dialog box that you are keying a hex password (rather than ASCII). This is because the Mac has detected that the network is WEP protected, and leaves it to you to decide how you want to key the password.
    As an alternative, in Internet Connect (or from the AirPort icon menu), you can elect to join an "Other" network. If you select your network again, it'll come up with "WEP Password" as the option of Wireless Security. You can change this to "WEP 40/128-bit hex" and then not have to precede your password with the '$'.
    Alternatively, you could tell us the make and model of your wireless router and we can tell you how to set, and use an ASCII password. From your 10-character hex password, we can see that you're using 40/64-bit WEP. Non-Apple routers can be a bit fussy when using ASCII passwords with 40-bit WEP (don't worry, this is also true for Windows PC's using 40-bit WEP too), but we can talk you through it.
    As a final alternative, as you have such a whizzy Mac, as long as your wireless router supports it, you could use WPA security, and never have to worry about ASCII / hex / '$', etc. Older Macs (particularly original AirPort cards - not AirPort Extreme - and OS9) were limited to 40-bit WEP.

  • Why do I keep getting an "authentication failed" message when trying to join my network?

    Why do I keep getting an "authentication failed" message when trying to join my network?

    You may have to shut your computer off and pull the power adapter from both your ISP's Modem and your Router and wait 5 minutes and restart them in the following order.
    1st your ISP's Modem and wait a minute to get your signal and lights.
    2nd do the same with your Router and again you have to wait the minute.
    Last restart your computer and boot in OSX use Safari.

  • HT4623 keep getting a generic error message when updating

    I keep getting a generic error message when trying to update my iphone3gs.  I have done it while connected to the computer and through wifi.  When I am connected to the computer it stated, check your connectivity as the update timed out (I did a check and everything worked fine) when I tried through wifi, it just said it failed to update.  Um, no help there.

    I received this email from Apple and this corrected the problem for me...  I only had to reset the iTunes cache
    1) Open iTunes
    2) At the top menu, click File > Preferences (iTunes > Preferences on a Mac)
    3) In the Preferences menu, click the Advanced tab
    4) In the Advanced menu, you should see a button that says "Reset Cache". Please click this button.

Maybe you are looking for

  • API0408 Exception throws when open mapping in owb 11.2.0.1

    We got the following error message when openning mapping API0408: Within the same namespace domain one object has already used the name This exception will throw when the mapping name is the same as the table name. The mapping can be openned if chang

  • Relationship tab is not visible in Sales Order in CRM 7.0

    Hello All I am working on CRM 7.0 I want to create an object reference profile to transaction type u201CTAu201D id did the required steps Transactions -> basic settings -> Define Object Reference Profile. Then I assigned the profile to the Transactio

  • Bapi or Function module for getting Bom Item Details (Urgent)

    Hi All, I Want to get the Bom Item Details Corresponding to Production Order Number. So Please Provide me Some Function Module or Bapi So that by giving the Production Order number I will get all material related to that PO. Thanks In Advance.

  • Integrate Sun ONE Messaging and Sun ONE Calendar server with Portal 6.0

    We need to integrate (implement a Single Sign On solution) Sun ONE/iPlanet Messaging and Calendar servers with Portal 6.0. The Msg and Cal. servers do not use Portal Profile server as their DS and have a different DS.This directory server is the exte

  • Why is the address bar not allowing search anymore?

    I have always searched on Firefox by just typing what I want into the address bar. It would bring up the Google results automatically. It just suddenly stopped working-like I did it while searching for one thing and ten minutes later opened a differe