BizTalk exception handling
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > BizTalk Server > BizTalk Server General > BizTalk exception handling




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    BizTalk exception handling  
darin dimitrov


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
06-30-04 10:55 PM

Hello,

Is it possible to catch an exception thrown in an orchestration
before it gets logged to the system logger? For example, if an error
occurs within a file send port (i.e. wrong file permissions or
inexistant send folder), what shapes should I use in my orchestration
in order to catch this error and how can I reroute the workflow in
case of such error, so that I can notify the user?

P.S. I am using BizTalk 2004





[ Post a follow-up to this message ]



    RE: BizTalk exception handling  
David Stucki [MSFT]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
06-30-04 10:55 PM

You can put your Send shape in a transaction and add a catch block that
catches a DeliveryFailureException.  The InnerException property of the
caught exception will be a SoapException that has this detailed
information.   Make sure that your send port in the orchestration is
Binding->Specify Later and Delivery Notification->Transmitted.

I'm attaching a sample that shows how to catch an exception, extract this
detail text, and send it to an output file.

David Stucki
This posting is provided "AS IS" with no warranties and confers no rights.





[ Post a follow-up to this message ]



    RE: BizTalk exception handling  
Ben Cuttriss


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-16-04 10:50 PM

Darin,

I've seen a couple of examples of patterns to re-route the content in the ev
ent of exceptions.  One way is to basically handle the exceptions, then deci
de on the outcome, another is simply to throw the exception to the point in 
time that you can re-act.
I prefer the first - exceptions being thrown should be in case of serious er
ror and not as a way of controlling application flow (maybe there are others
 that would dispute this... I'm not sure.)

I prefer to handle the expected routing issues, then deal with exception as 
unlikely, unwanted situations.  It makes the orchestration a bit more comple
x with decision shapes all over, but it's not too bad.  Nesting orchestratio
ns makes this a little easi
er.

Also, you can do a lot of this work up front using the Orchestration plug in
 for visio which generates a lot of this initial stuff for you and you can u
se a template.  Another way is to drop into a .Net component that does some 
of the routing for you and
keep the orchestration at a higher abstracted level.  Another way...

HTH.
Ben

"darin dimitrov" wrote:

> Hello,
>
>    Is it possible to catch an exception thrown in an orchestration
> before it gets logged to the system logger? For example, if an error
> occurs within a file send port (i.e. wrong file permissions or
> inexistant send folder), what shapes should I use in my orchestration
> in order to catch this error and how can I reroute the workflow in
> case of such error, so that I can notify the user?
>
>   P.S. I am using BizTalk 2004
>





[ Post a follow-up to this message ]



    RE: BizTalk exception handling  
Jeremy


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-29-04 10:51 PM

David,

Do you have this sample that you referred to in the post?

"David Stucki [MSFT]" wrote:

> You can put your Send shape in a transaction and add a catch block that
> catches a DeliveryFailureException.  The InnerException property of the
> caught exception will be a SoapException that has this detailed
> information.   Make sure that your send port in the orchestration is
> Binding->Specify Later and Delivery Notification->Transmitted.
>
> I'm attaching a sample that shows how to catch an exception, extract this
> detail text, and send it to an output file.
>
> David Stucki
> This posting is provided "AS IS" with no warranties and confers no rights





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 09:33 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register