RE: Optional Field essue.



Thank you for your help.
I fixed the issue now. I had to set the complexity and allow early
termination, allow optional nodes in the root level. It works fine now.

I have another issue. Is it possible to have duplicate tags in the Flat file
Schema?
In my case I have D02 ( Detail 02) line in the header level and the detail
level. Both of them have different information.
I tried to avoid the tag for one of the D02 but it didnt work. My tag can
not be more then 3 charactors since customer name start at 4th position in
D02. I have other lines starting with D01 and D03 so I dont think I can use
"D" or "D0" as tag. Is there any way to solve my problem?
I can not make any changes in input flat files. So I have to handle this
case in schema level.
Thank you

--
Thank you,

Siva



"micvos" wrote:

When you left out the optional records, did you remove the field delimiters
as wel?

"Siva" wrote:

Hi,
I have Flat file schema. It has some record fields as optional.
When i use the input flat file with all those optional records, my schema
works fine.
When I use input with missing one or two of those optional records then the
schema creating xml file for the records above the missing optional field.
For example, If my flat file have following struct,
H01
H02
H03 (Optional)
D01(Optional)
D02
D03

If i miss H03 or D01 in my input flat file, then my xml out put is created
with out D02 and D03. How can I fix this?
I changed the,
allow_terminate_optional_fields="true"
allow_early_termination="true"
parser_optimization="complexity"

Still no luck.

Any help please?
--
Thank you,

Siva

.



Relevant Pages

  • RE: root element missing
    ... I get this error when trying to test my schema with an input flat file ... schema and edit it slightly and then test this as input and no problems. ... Can you shed some light on how BizTalk identifies the root element ...
    (microsoft.public.biztalk.general)
  • Flat File Schema Custom Date/Time Property
    ... Can somebody tell me if the Custom Date/Time Format property of a flat file ... schema is only used when parsing an input flat file? ... I have tried adding the property to a schema used in a flat file assembler ...
    (microsoft.public.biztalk.general)
  • RE: Creating Schema for Flat File Disassembler
    ... I restructured you schema a bit and it will now parse your input data. ... main problem with your original schema was setting the positional offset ... Creating Schema for Flat File Disassembler ...
    (microsoft.public.biztalk.general)
  • RE: Flat File Issue with Multiple Line Flat File
    ... I restructured you schema a bit and it will now parse your input data. ... main problem with your original schema was setting the positional offset ... Flat File Issue with Multiple Line Flat File ...
    (microsoft.public.biztalk.general)
  • RE: Schema for output flat file
    ... It's difficult to know exactly how to describe your schema without being ... Schema for output flat file ... Each record type have 64 byte. ... >>>>My flat file has layout as below:>>FHeader a b c d SMHeader e f g h SMDetail i j k l SMDetail m n o p>>SMDetail q r s t SMTrailer u x y w SMHeader a b c d SMDetail e f g h>>SMDetail k q r sh SMDetail q r s w SMTrailer o p w s FTrailer h g w s>>>>I know know how to define send schema to output flat file as above. ...
    (microsoft.public.biztalk.general)