BizTalk Server Orchestration - Error Handling - getting ErrorDescription

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server Orchestration > October 2005 > Error Handling - getting ErrorDescription





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 Error Handling - getting ErrorDescription
Lastis

2005-10-12, 6:12 pm

Hi, I have followed Stephen W. Thomas sample for error handling :
http://geekswithblogs.net/sthomas/a...08/02/9234.aspx

but I have the following strange problem. I manage to catch the exception
and cast it to a soapexception. I then use a variable of type xmldocument
(xDoc) and load the soapexception.detail.innnerxml in there.

I then have a message called NAcK that is a copy of the NAcK message in the
sample and assign NAcK = xDOC; (NAcK is based on NACK.xsd which has
ErrorDescription as a distinguished field)

Sorry for taking to long but I am going crazy...

So If I now send the message NAcK with an SMTP Port I get the NAcK fully
populated with the error I want inside of it. If I try to use the
ErrorDescription field of the message or do an xpath in the orchestration
after the send (or before) then I get null???!!!!

Any ideas??

Thanks

L.Kattis

BA

2005-10-24, 10:31 am


Hey,

Read this:

http://www.biztalkgurus.com/Samples...hestration.html

Are you sure you are accessing the Xpath correctly? If you are seeing the
message output then it sounds like the Xpath is at fault.

BA


"Lastis" <Lastis@discussions.microsoft.com> wrote in message
news:48E874CC-86D7-431F-9C53-56983E9AC09B@microsoft.com...
> Hi, I have followed Stephen W. Thomas sample for error handling :
> http://geekswithblogs.net/sthomas/a...08/02/9234.aspx
>
> but I have the following strange problem. I manage to catch the exception
> and cast it to a soapexception. I then use a variable of type xmldocument
> (xDoc) and load the soapexception.detail.innnerxml in there.
>
> I then have a message called NAcK that is a copy of the NAcK message in

the
> sample and assign NAcK = xDOC; (NAcK is based on NACK.xsd which has
> ErrorDescription as a distinguished field)
>
> Sorry for taking to long but I am going crazy...
>
> So If I now send the message NAcK with an SMTP Port I get the NAcK fully
> populated with the error I want inside of it. If I try to use the
> ErrorDescription field of the message or do an xpath in the orchestration
> after the send (or before) then I get null???!!!!
>
> Any ideas??
>
> Thanks
>
> L.Kattis
>



Lastis

2005-10-24, 10:31 am

I will look into the xpath but... since ErrorDescription is a distinguished
field and I get the Nack message sent fine in an email the why doesnt
Nack.ErrorDescription work?? Why is it giving me null??
BA

2005-10-24, 10:31 am


It should work if it's distinguished (given that there is only 1 instance of
the record)

Can you write it the value to the debug view? Does it show up?

BA



"Lastis" <Lastis@discussions.microsoft.com> wrote in message
news:A6F3EDC9-4D1C-4363-86FC-88467CF8C865@microsoft.com...
> I will look into the xpath but... since ErrorDescription is a

distinguished
> field and I get the Nack message sent fine in an email the why doesnt
> Nack.ErrorDescription work?? Why is it giving me null??



Lastis

2005-10-24, 10:31 am

If I try to write it in the event log right after I assign it i.e.
NAcK = xDoc;

I get an empty string. It is very weird. If I send then the NAcK as a
message with smtp it is ok with all the information inside but if I try to
use NAcK.ErrorDescription I get a null!!!??


"BA" wrote:

>
> It should work if it's distinguished (given that there is only 1 instance of
> the record)
>
> Can you write it the value to the debug view? Does it show up?
>
> BA
>
>
>
> "Lastis" <Lastis@discussions.microsoft.com> wrote in message
> news:A6F3EDC9-4D1C-4363-86FC-88467CF8C865@microsoft.com...
> distinguished
>
>
>

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com