BizTalk Server Orchestration - exception handling

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server Orchestration > June 2004 > exception handling





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 exception handling
Muhammad Omer [Xavor]

2004-06-03, 10:56 am

Hi
I am using the SQL adapter that comes out of the box with Biztalk 2004. I
expect an error on certain conditions when the adapter is invoked. From
within the orchestration, I need to be able to deal with the specific
exception that is generated.
I have tried catching System.Exception and general exception but both return
a SOAPException instance which contains very little (and that too
unstructured) information about the errors within teh adapter.
Am I doing something wrong? Are there any specific fault messages that are
returned that I am missing ?
Regards
Omer


David Stucki [MSFT]

2004-06-30, 5:55 pm

SoapException has a Detail property that gives you an XmlNode with more
information.

The XML looks like this when the FILE Adapter fails:

<detail>
<ns0:NACK Type="NACK"
xmlns:ns0="http://schema.microsoft.com/BizTalk/2003/NACKMessage.xsd">
<NAckID>{345FC0F1-8475-4112-AF3C-1C9126CDA7A8}</NAckID>
<ErrorCode>0xc0c01c10</ErrorCode>
<ErrorCategory>0</ErrorCategory>
<ErrorDescription>The FILE send adapter cannot open file
c:\temp1\out\{1BE206FE-798B-49ED-9333-AD510A19A2DF}.xml for
writing.</ErrorDescription>
</ns0:NACK>
</detail>

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

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com