Catching parsing error in derived FFD
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 > Catching parsing error in derived FFD




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

    Catching parsing error in derived FFD  
The Gremlin


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


 
08-25-04 10:54 PM

I need to catch parsing errors on incoming flat files. Errors must be logged
to a proprietary database. I tried creating a simple derived flat file
dissasembler derived class, overriding the Disassemble method, like this:

public new void Disassemble(IPipelineContext pContext, IBaseMessage pInMsg)
{
try
{
base.Disassemble(pContext, pInMsg);
}
catch(Exception ex)
{
// Log the error here
}
}

No luck. The disassemble method insists in writing the error to the event
log and does not raise an exception. How can I achieve this?





[ Post a follow-up to this message ]



    Re: Catching parsing error in derived FFD  
Devdutt Patnaik


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


 
08-27-04 11:06 PM

Would it serve your purpose, if the error is logged to the proprietary
database, but also gets logged in the Application log?

Regards
Dev

"The Gremlin" <imagremlin@hotmail.com> wrote in message
news:F072BC06-5EFA-476D-BA13-F153B1C21180@microsoft.com...
> I need to catch parsing errors on incoming flat files. Errors must be
logged
> to a proprietary database. I tried creating a simple derived flat file
> dissasembler derived class, overriding the Disassemble method, like this:
>
> public new void Disassemble(IPipelineContext pContext, IBaseMessage
pInMsg)
> {
>   try
>   {
>     base.Disassemble(pContext, pInMsg);
>   }
>   catch(Exception ex)
>   {
>      // Log the error here
>   }
> }
>
> No luck. The disassemble method insists in writing the error to the event
> log and does not raise an exception. How can I achieve this?







[ Post a follow-up to this message ]



    Re: Catching parsing error in derived FFD  
Mauricio R.


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


 
08-27-04 11:07 PM

Yes Dev, could you tell us how?

Regards,
Mauricio

"Devdutt Patnaik" wrote:

> Would it serve your purpose, if the error is logged to the proprietary
> database, but also gets logged in the Application log?
>
> Regards
> Dev
>
> "The Gremlin" <imagremlin@hotmail.com> wrote in message
> news:F072BC06-5EFA-476D-BA13-F153B1C21180@microsoft.com... 
> logged 
> pInMsg) 
>
>
>





[ Post a follow-up to this message ]



    Re: Catching parsing error in derived FFD  
Devdutt Patnaik


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


 
08-27-04 11:07 PM

You could implement a Event Log Watcher windows service that uses WMI. I
have posted a code snipped at my blog:
[url]http://devdutt10.blogspot.com/2004/08/event-log-message-interception-with.html[/ur
l]

Hope that helps

Regards
Dev

"Mauricio R." <MauricioR@discussions.microsoft.com> wrote in message
news:67006A5C-497A-4BD8-819F-BF8F492A1ECB@microsoft.com...[vbcol=seagreen]
> Yes Dev, could you tell us how?
>
> Regards,
> Mauricio
>
> "Devdutt Patnaik" wrote:
> 
this:[vbcol=seagreen] 
event[vbcol=seagreen] 







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 09:42 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