BizTalk Server Orchestration - Catch receive pipeline errors

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server Orchestration > March 2004 > Catch receive pipeline errors





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Catch receive pipeline errors
Jayee

2004-03-11, 10:43 pm

I currently have a receive pipeline to parse a flat file.
There is the possibility that this parsing may fail (as
the user may have made a mistake in the format of the
flatfile).

Right now it writes an error to the event log which is
fine but I want to be able to catch this exception in the
orchestration and handle it accordingly (eg: send an email
to the user).

Does anyone know how to catch an exception in a receive
pipeline within the orchestration?

thanks
Jayee
Brian Loesgen

2004-03-18, 2:00 pm

Jayee:

I've done something similar in the Send direction, but not as part of a
Receive. However, the same technique should work.

I would try putting the Receive inside a Scope, and then add an Exception
handler (right click the Scope to do this). At a quick glance, I don't see
any pipeline-specific exceptions, so use General exception. Alternatively,
you may be able to make the Scope transaction atomic and have a compensation
flow.

HTH,

Brian
BizTalk Server MVP
Neudesic

"Jayee" <anonymous@discussions.microsoft.com> wrote in message
news:b0e701c40780$cc309200$a501280a@phx.gbl...
> I currently have a receive pipeline to parse a flat file.
> There is the possibility that this parsing may fail (as
> the user may have made a mistake in the format of the
> flatfile).
>
> Right now it writes an error to the event log which is
> fine but I want to be able to catch this exception in the
> orchestration and handle it accordingly (eg: send an email
> to the user).
>
> Does anyone know how to catch an exception in a receive
> pipeline within the orchestration?
>
> thanks
> Jayee



Nikolai

2004-03-18, 2:00 pm

how would you retrieve error information from the 'General Exception' exception object type to reuse in a notification email?

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com