BizTalk Server General - Error Notification for inbound documents wanted

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server General > February 2004 > Error Notification for inbound documents wanted





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 Notification for inbound documents wanted
Günther Brach

2004-02-17, 2:36 am

Hi,

in our project with BizTalk 2002 we have to implement the functionality to
send an detailed E-Mail to a sender, if he has submitted a document which
cannot be validated by BizTalk
The information should be like:
sender identification, name of the document, a text string with the document
data and the error description (EDI example: BGM segment is missing)

How can I achieve this requirement? Are their existing scripts or tools,
which can do this?

I know, that if BizTalk receives a corrupt document than the inbound
document will be shifted into the Suspend Queue. But the information which
can be retrieved in the Suspend Queue isn't enough

Please help me!

Regards

Günther

mailto: guenther.brach@atosorigin.com



Everett Yang

2004-02-17, 4:36 am

You can utilize BizTalk's WMI events to monitor suspended queue. Once a
document is sent to the suspended queue, use the
MicrosoftBizTalkServer_SuspendedQueue class to retrieve the information you
need.

Sincerely,


Everett Yang
DSI - Microsoft BizTalk Server

This posting is provided “AS IS” with no warranties, and confers no rights.
Subscribe at
http://support.microsoft.com/defaul...msdn/nospam.asp
&SD=msdn

Martin Rodriguez

2004-02-17, 7:36 am

There's no scripts or tools to resolve your needs. The best aproach to do
what you need is to implement an orchestration, so you first receive the
document and then evaluates the doc, if the result is ok, then you send the
mail, if not you need to send the doc to an AIC that resolve the error
handling.

Hope this helps.

Regards,

Martin Rodriguez.-

"Günther Brach" <Guenther.Brach@koeln.sema.slb.com> wrote in message
news:OmyaE5W9DHA.2856@TK2MSFTNGP10.phx.gbl...
> Hi,
>
> in our project with BizTalk 2002 we have to implement the functionality to
> send an detailed E-Mail to a sender, if he has submitted a document which
> cannot be validated by BizTalk
> The information should be like:
> sender identification, name of the document, a text string with the

document
> data and the error description (EDI example: BGM segment is missing)
>
> How can I achieve this requirement? Are their existing scripts or tools,
> which can do this?
>
> I know, that if BizTalk receives a corrupt document than the inbound
> document will be shifted into the Suspend Queue. But the information which
> can be retrieved in the Suspend Queue isn't enough
>
> Please help me!
>
> Regards
>
> Günther
>
> mailto: guenther.brach@atosorigin.com
>
>
>



R.Balaji

2004-02-17, 6:34 pm

Hi,

We have done a similar work.
When the inbound document is failed during parsing then it is sent to the
suspended queue. Most of the time, the error message logged will not be
sufficient.

So we developed a component which takes the biztalk schema and the xml
instance as inputs.

It does the validation for mandatory checks, field length checks, field type
checks etc and give a consolidated error message.

We created two sets of shema; one with validation(mandatory checks,field
length checks etc) and one without any validation.

We used the schema without validation for inbound document defn.
Inside the AIC, we call the schema validation component passing the
validation schema and the XML instance and we throw the error appropriately.
This error message can be send as a email attachment .

Regards,
R.Balaji

"Günther Brach" <Guenther.Brach@koeln.sema.slb.com> wrote in message
news:OmyaE5W9DHA.2856@TK2MSFTNGP10.phx.gbl...
> Hi,
>
> in our project with BizTalk 2002 we have to implement the functionality to
> send an detailed E-Mail to a sender, if he has submitted a document which
> cannot be validated by BizTalk
> The information should be like:
> sender identification, name of the document, a text string with the

document
> data and the error description (EDI example: BGM segment is missing)
>
> How can I achieve this requirement? Are their existing scripts or tools,
> which can do this?
>
> I know, that if BizTalk receives a corrupt document than the inbound
> document will be shifted into the Suspend Queue. But the information which
> can be retrieved in the Suspend Queue isn't enough
>
> Please help me!
>
> Regards
>
> Günther
>
> mailto: guenther.brach@atosorigin.com
>
>
>



Günther Brach

2004-02-17, 7:34 pm

Hi Martin,

I guess, that this approach cannot be used to fit our requirement.
My understanding of XLANG is that it can only be instantiated if the inbound
document can parsed
from BizTalk against the assigned schema if it is error free. If the parsing
failed than the XLANG cannot be instantiated!
On the other hand, we have a couple of organsitations which send different
documents to different partners within BizTalk. The problem is, only for one
organistaion, namely the BizTalk home organsitaion, a XLANG instance can be
created.

If I am wrong, please teach me.


Regards


Günther


Using a XLANG instance
for the inbound document
"Martin Rodriguez" <ricardor@beyondit.com.ar> wrote in message
news:uogtjdZ9DHA.3364@TK2MSFTNGP09.phx.gbl...
> There's no scripts or tools to resolve your needs. The best aproach to do
> what you need is to implement an orchestration, so you first receive the
> document and then evaluates the doc, if the result is ok, then you send

the
> mail, if not you need to send the doc to an AIC that resolve the error
> handling.
>
> Hope this helps.
>
> Regards,
>
> Martin Rodriguez.-
>
> "Günther Brach" <Guenther.Brach@koeln.sema.slb.com> wrote in message
> news:OmyaE5W9DHA.2856@TK2MSFTNGP10.phx.gbl...
to[color=blue]
which[color=blue]
> document
which[color=blue]
>
>



Günther Brach

2004-02-17, 8:34 pm

Hi,

I have not realy understand your solution.
Here a lots of question, I have:

Your AIC can only handle inbound XML-documents?
Have you built a preprocessor AIC?
What did you pass to your AIC, the inbound document data and the schema to
check against the data? How can you give the AIC the appropriate schema
input parameter?

If all my questions are to answer with yes, then I assume that your AIC
parsed the inbound XML data against the schema. But what can be done if the
input document is a NON-XML one and it must be validated with an EDIFACT
BizTalk schema? Then you should call the BizTalk parser for EDIFACT within
your AIC, but how can you do that?

Do you have sample code of your AIC? It would help me to understand your
solution.

Regards

Günther



"R.Balaji" <rbalaji007@hotmail.com> wrote in message
news:udsuyCf9DHA.2472@TK2MSFTNGP10.phx.gbl...
> Hi,
>
> We have done a similar work.
> When the inbound document is failed during parsing then it is sent to the
> suspended queue. Most of the time, the error message logged will not be
> sufficient.
>
> So we developed a component which takes the biztalk schema and the xml
> instance as inputs.
>
> It does the validation for mandatory checks, field length checks, field

type
> checks etc and give a consolidated error message.
>
> We created two sets of shema; one with validation(mandatory checks,field
> length checks etc) and one without any validation.
>
> We used the schema without validation for inbound document defn.
> Inside the AIC, we call the schema validation component passing the
> validation schema and the XML instance and we throw the error

appropriately.
> This error message can be send as a email attachment .
>
> Regards,
> R.Balaji
>
> "Günther Brach" <Guenther.Brach@koeln.sema.slb.com> wrote in message
> news:OmyaE5W9DHA.2856@TK2MSFTNGP10.phx.gbl...
to[color=blue]
which[color=blue]
> document
which[color=blue]
>
>



Jan Eliasen

2004-02-18, 2:35 am

On Tue, 17 Feb 2004 17:31:38 GMT, evyang@online.microsoft.com (Everett
Yang) wrote:

>You can utilize BizTalk's WMI events to monitor suspended queue. Once a
>document is sent to the suspended queue, use the
>MicrosoftBizTalkServer_SuspendedQueue class to retrieve the information you
>need.

Do you have an example of some code that listens to the appropriate
event and then does something? I have programmed this myself in
VB.NET, but I am not happy with my solution, since the "Listen for
events"-call seems to take a number of milliseconds as input, and the
call seems to be blocking, and hence no other code can continue to run
in that thread for the specified number of milliseconds and you have
to wait for this number of milliseconds to process the documents that
was sent to SuspendedQueue.


--
Jan Eliasen, representing himself and not the company he works for.
MCP in Microsoft BizTalk Server
Everett Yang

2004-02-18, 4:36 am

The code sample on MSDN may help.

http://msdn.microsoft.com/library/d...-us/dnbiz2k2/ht
ml/bts_wmiprogramming.asp


Sincerely,


Everett Yang
DSI - Microsoft BizTalk Server

This posting is provided “AS IS” with no warranties, and confers no rights.
Subscribe at
http://support.microsoft.com/defaul...msdn/nospam.asp
&SD=msdn

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com