hemabiz

I have a CatchException block in my orchestration. Within it i build a exception message using construct shape and send message to a port which is direct message box bound

This was working perfectly fine. Until i had to add some web service calls within the exception block to perform some clean up. So now in addition to the existing shapes i have 2 web service calls.

Issue is that whenever an exception is thrown it ends up as "Uncaught exception..." with a message like

The service instance will remain suspended until administratively resumed or terminated.

If resumed the instance will continue from its last persisted state and may re-throw the same unexpected exception.

Inner exception: Value cannot be null.

Parameter name: val

This is thrown directly on the Construct shape(construct exception). If i add an expression shape right between the construct and send ; and just add any valid statements there (like system.diag....eventlog..write etc) then i never get the above error

Looks like the orchestration is trying to send the constructed message even before its constructed.

Any pointers



Re: BizTalk R2 General Exception handler, construct and send shape

Leonid Ganeline

Second, read the "Simple Design Patterns for Consuming and Exposing Web Services from an Orchestration" http://download.microsoft.com/download/1/6/9/16968441-c6c8-4bd0-9410-5f4014bc61f0/sampledesignorch.doc