Skip to Content

Problem in FCC

hi guys,

im having a problem using FCC in reciever file adapter.

in receive an XML like this:

header

....details

....details

....details

header

....details

....details

....details

header

....

....

taking reference of this blogs i traying to do my conversion

/people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion

/people/shabarish.vijayakumar/blog/2007/08/03/file-adapter-receiver--are-we-really-sure-about-the-concepts

the diference between the blogs and my case refer i don have field separator y use <xml>.fieldFixedLengths

my conversion is next:

Recordset Structure: Header,Details

Details.beginSeparator.........'nl'

Details.fieldFixedLengths........1,10,10,50,16,13,5,15,15,15,15

Details.fixedLengthTooShortHandling.......Cut

Details.endSeparator............'nl'

Header.fieldFixedLengths............1,4,10,4,8,35,16,18,5,5

Header.endSeparator...............'nl'

ussing this Conversion im getting next error:

Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: 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 '123456789 ')', probably configuration error in file adapter (XML parser error)': java.lang.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 '123456789 ')', probably configuration error in file adapter (XML parser error)'

now, ussing the same conversion but changging the result structure to

header

header

header

details

details

details

details

i dont have any error in conversion. my question is Why?? what wrong in first case??? the error say: more fields found in XML structure than specified in conversion parameters but the numbers of field defined is right because in the second case it works.

Thanks,

Rodrigo

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jun 18, 2008 at 12:54 PM

    Hi,

    Look at this forum

    comsapaiiaframsapirecoverableexception-received-ht

    Thanks

    Vikranth

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 18, 2008 at 12:58 PM

    please mention

    details.fieldNames=xx,yy,zz

    Header.fieldNames=xx,yy,xx

    too

    Add a comment
    10|10000 characters needed characters exceeded

    • i try ussing field names too but i get the same error. i cannot remove context the structure i must generate is:

      header

      ...detail

      ...detail

      header

      ...detail

      ...detail

      ...detail

      ...

      another thing i facing. if i repace the <xml>fieldFixedLengths for <xml>fieldSeparator no error and the result file is i am specting but with a field separator wich shouldnt be. i tryed use:

      header.fieldSeparator .......# '0x08' (backspace) but the result structure is

      field1#

      field2#

      field3#

      its putting and enter and no a backspace.

      Edited by: Rodrigo Pertierra on Jun 18, 2008 12:47 PM

  • author's profile photo Former Member
    Former Member
    Posted on Jun 18, 2008 at 12:59 PM

    Hi,

    If you use remove context it will solve the problem. It will take you to single context.

    Thanks,

    RamuV

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.