| 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
|