|
Home > Archive > BizTalk Server General > August 2004 > Catching parsing error in derived FFD
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 |
Catching parsing error in derived FFD
|
|
| The Gremlin 2004-08-25, 5: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?
| |
| Devdutt Patnaik 2004-08-27, 6: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?
| |
| Mauricio R. 2004-08-27, 6: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)
>
>
>
| |
| Devdutt Patnaik 2004-08-27, 6:07 pm |
| You could implement a Event Log Watcher windows service that uses WMI. I
have posted a code snipped at my blog:
http://devdutt10.blogspot.com/2004/...ption-with.html
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]
|
|
|
|
|