cancel
Showing results for 
Search instead for 
Did you mean: 

Problem in FCC

rodrigoalejandro_pertierr
Active Contributor
0 Kudos

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

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

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

Thanks,

RamuV

GabrielSagaya
Active Contributor
0 Kudos

please mention

details.fieldNames=xx,yy,zz

Header.fieldNames=xx,yy,xx

too

rodrigoalejandro_pertierr
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Hi,

Look at this forum

Thanks

Vikranth