Skip to Content
avatar image
Former Member

Exception in XML Parser

Hi everybody!

I have one problem with the Receiver File Communication Channel configuration. I'll try to explain my scenario:

I have to write a file with a complex structure, tabulation indicates the line is inside previous and the numbers just the possible occurences of the line.

Lin1 (1)

Lin2 (1-10)

Lin3 (1-100)

Lin4 (1-99)

€ Lin5 (n)

Lin6 (n)

Lin7 (1-10)

Lin8 (1-9999)

Lin9 (1-5)

Lin10 (n)

Lin11 (n)

Lin12 (1-5)

When I send an Idoc, the adapter monitoring shows me this error:

"Error: Message processing failed: Exception: Exception in XML Parser (format problem?):'java.lang.Exception: Message processing failed in XML parser: 'java.lang.Exception: Consistency error: more fields found in XML structure than specified in conversion parameters! (Value 'Lin5')', probably configuration error in file adapter (XML parser error)'"

The thing is that in the xml payload is a node called Lin5 with 3 elements and in the conversion parameteres I have these lines:

E1EDKT2.fieldNames=ID,TDLINE,TDFORMAT

E1EDKT2.fieldFixedLengths=7,70,2

E1EDKT2.endSeparator='nl'

So I don't understand where the problem is. Any idea? Thankyou in advance!!

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Apr 24, 2006 at 11:01 AM

    Hi,

    i think in reciever file communication channel there is no need to specify the field names and fixedfield lengths since a XML struuture is gonno be converted into a flat file structure.

    just mention the endSeparator and the fieldSeperator in the file communication channel content conversion.

    regards

    jithesh

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      But I do need the fixedlength as long as the file that has to be generated is without separators, with fixed lengths.

  • avatar image
    Former Member
    Apr 24, 2006 at 11:03 AM

    Sorry, this was the real structure of the file. Each occurence of each line in a line.

    Lin1 (1)

    Lin2 (1-10)

    Lin3 (1-100)

    Lin4 (1-99)

    --- Lin5 (n)

    Lin6 (n)

    --- Lin7 (1-10)

    --- Lin8 (1-9999)

    --- Lin9 (1-5)

    --- Lin10 (n)

    -


    Lin11 (n)

    Lin12 (1-5)

    Add comment
    10|10000 characters needed characters exceeded