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




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

    Error Handling - getting ErrorDescription  
Lastis


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


 
10-12-05 11: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






[ Post a follow-up to this message ]



    Re: Error Handling - getting ErrorDescription  
BA


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


 
10-24-05 03:31 PM


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
>







[ Post a follow-up to this message ]



    Re: Error Handling - getting ErrorDescription  
Lastis


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


 
10-24-05 03:31 PM

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





[ Post a follow-up to this message ]



    Re: Error Handling - getting ErrorDescription  
BA


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


 
10-24-05 03:31 PM


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







[ Post a follow-up to this message ]



    Re: Error Handling - getting ErrorDescription  
Lastis


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


 
10-24-05 03:31 PM

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





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 04:54 PM.      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