BizTalk Server General - BTS2004 does not validate document structure

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server General > May 2005 > BTS2004 does not validate document structure





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 BTS2004 does not validate document structure
John Leyva

2005-05-23, 8:48 pm

Hi

I am trying to validate a flat file document structure with a document
specification, but biztalk just generate the output xml with the valid data
before the error, and do not log any error message.

for example

i have the next valid sample

RegType1|fieldreg1_1|fieldreg1_2
RegType2|A|fieldreg2_2|fieldreg2_3
RegType3|fieldreg3_1|fieldreg3_2|fieldre
g3_3
RegType2|B|fieldreg2_2|fieldreg2_3
RegType2|C|fieldreg2_2|fieldreg2_3

the constraint is that just can be a RegType3 after RegType2

so I generate a schema like the next

RegType1
- RegType2
- RegType3 (Minoccurs 0, Maxoccurs 1)

then I probe with an invalid document with 2 RegType3 after RegType2, so i
expect and message error.

RegType1|fieldreg1_1|fieldreg1_2
RegType2|A|fieldreg2_2|fieldreg2_3
RegType3|fieldreg3_1|fieldreg3_2|fieldre
g3_3
RegType3|fieldreg3_1|fieldreg3_2|fieldre
g3_3
RegType2|B|fieldreg2_2|fieldreg2_3
RegType2|C|fieldreg2_2|fieldreg2_3

but when i validate the schema in visual studio, or I proccess through
Biztalk, it return a xml message with the records and fields before the
error, but it do not show any error in the event viewer ir in the HAT.

Please, show me what i am doing wrong, or this is the expected behavior? (I
dont think so)

Or it is a Bug.

I am using BTS2004 with SP1

--
John Leyva
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com