on 06-18-2008 1:40 PM
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
Hi,
If you use remove context it will solve the problem. It will take you to single context.
Thanks,
RamuV
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
please mention
details.fieldNames=xx,yy,zz
Header.fieldNames=xx,yy,xx
too
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.