Upload flat file (Content Conversion Parameters)
Hello,
I am still trying to upload a flat text file to XI. Its a non separator file.
Here the error message from the XI adaper engine:
Sender Adapter v1508 for Party '', Service 'IXI_FileSystem_CSV':
Configured at 15:36:12 2005-08-03
Initialization error: Conversion initialization failed with java.lang.Exception: java.lang.Exception: java.lang.Exception: Error(s) in XML conversion parameters found: <b>
Mandatory parameter 'CONTROL.keyFieldValue': no value found</b>
Here all my settings:
Message protocol: File Content Conversion
Document name: CMA_FILEINPUT1
Document namespace: http://www.xyz/ogsd
Recordset name: RECORD
Recordset structure: CONTROL,1,SEGMENT,*
<b>Key Field Name: SEGMENT.DUMMYKEY</b>
Key Field Type: String (cs) -> default
Fields:
CONTROL.fieldNames:TABNAM,MANDT,DOCNUM,DOCREL,....
CONTROL.fieldFixedLengths:10,3,16,4,2,1,1,...
SEGMENT.fieldNames:DUMMYKEY,DUMMY,LOCATIONID,...
SEGMENT.fieldFixedLengths:12,51,10,18,4,10,
SEGMENT.keyFieldValue:E2BPBULOCM03 (string that occurs in the first field DUMMYKEY of SEGMENT)
The message type looks like this:
CMA_MSGTYP1 1:1
RECORD 1:1
CONTROL 1:1
TABNAM
MANDT...
SEGMENT 0:unbounded
DUMMYKEY
DUMMY
LOCATIONID...
Why do i get that error message? How to fill Key field name correctly? In my opinion i dont need key fields for CONTROL because of the occurence of one.
Any idea?
Thanks to all. So "Key Field Name" is just symbolic?
Here are my new settings:
Message protocol: File Content Conversion
Document name: CMA_FILEINPUT1
Document namespace: http://www.xyz.de/ogsd
Recordset name: RECORD
Recordset structure: CONTROL,1,SEGMENT,*
<b>Key Field Name: KF</b>
Key Field Type: String (cs) -> default
Fields:
CONTROL.fieldNames:TABNAM,MANDT,DOCNUM,DOCREL,....
CONTROL.fieldFixedLengths:10,3,16,4,2,1,1,...
SEGMENT.fieldNames:DUMMYKEY,DUMMY,LOCATIONID,...
SEGMENT.fieldFixedLengths:12,51,10,18,4,10,
<b>SEGMENT.keyFieldValue:E2BPBULOCM03 (from DUMMYKEY)
CONTROL.keyFieldValue: HRETZU (from TABNAM) </b>
Both key fields are the first entries in the substructures.
Now this error is coming up:
Sender Adapter v1508 for Party '', Service 'IXI_FileSystem_CSV':
Configured at 16:41:24 2005-08-03
Last message processing started 16:41:24 2005-08-03, Error: Conversion of complete file content to XML format failed around position 0 with java.lang.Exception: ERROR converting document line no. 2 according to structure 'SEGMENT':java.lang.Exception: Consistency error: field(s) missing - specify 'lastFieldsOptional' parameter to allow this
last retry interval started 16:41:24 2005-08-03
length 30,000 secs
What is that for a new parameter(lastFieldsOptional)?
Similar Messages
-
File Content Conversion Parameters in FIle Adapter
Hi
I am doing a scenario - XML file to Text file using File content conversion parameters in Receiver File Adapter Channel.
I given FCC Parameters like:
DATA.addHeaderLine - '0'
DATA.fieldSeparator - ,
DATA.endSeparator - 'nl'
But im getting error in Receiver File Adapter as - fieldSeparator not specified.
i would be greatful if any one help me.
Regards
RajeshHi Rajesh,
There are lot of blogs which explain File Content Conversion in different scenarios:-
/people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1
/people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2
/people/venkat.donela/blog/2005/06/08/how-to-send-a-flat-file-with-various-field-lengths-and-variable-substructures-to-xi-30
/people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file
/people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
/people/shabarish.vijayakumar/blog/2005/08/17/nab-the-tab-file-adapter
/people/jeyakumar.muthu2/blog/2005/11/29/file-content-conversion-for-unequal-number-of-columns
/people/shabarish.vijayakumar/blog/2006/02/27/content-conversion-the-key-field-problem
/people/sap.user72/blog/2005/01/06/how-to-process-csv-data-with-xi-file-adapter
/people/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter
I hope this helps.
Regards.
Praveen -
J2SE XML to Flat File Content Conversion
Hi
I've currently got a scenario which sends a flat file to the integration server, it gets mapped and sent to a receiver adapter on a deployed j2se engine.
I'm now trying to convert the xi-xml structured file to a flat file again on the j2se side (the same flat file format it originally had).
My original flat file looks like this -
477
477=AA1
My xml file looks like this -
<?xml version="1.0" encoding="UTF-8"?>
<ns0:ResultMessage xmlns:ns0="urn:xxxx-com:a_test_j2se_filetofile">
<Item>
<field1>477</field1>
</Item>
<Item>
<field1>477</field1>
<field2>AA1</field2>
</Item>
</ns0:ResultMessage>
I am using these content conversion parameters:
xml.addHeaderLine=0
xml.fieldSeparator==
xml.endSeparator='nl'
I get this error on the integration engine (sxmb_moni):
Error while sending by HTTP (error code: 500, error text: Internal Server Error:java.lang.NullPointerException) (See attachment HTMLError for details)
and the j2se adpater log says this:
17:16:32 (4120): Message "13b9d644-54c9-4ffb-0c40-db4c14458d77" of type "application/xml", kind "B" received
17:16:32 (4124): Parsing XML message
17:16:32 (4131): ERROR: Message processing failed with "java.lang.NullPointerException"
What am i missing?So, now... I did a test configuration in XI and sent your test-payload...it worked.
The J2SE adapter configuration:
File adapter java class
classname=com.sap.aii.messaging.adapter.ModuleXMB2File
version=30
mode=XMB2FILEWITHCONVERSION
#Adress for XMB endpoint -
XI.httpPort=8111
XI.httpService=/file/receiver
#File Adapter specific parameters -
file.createDir=1
file.targetDir=c:/transfer/inbound
file.targetFilename=xmboutput.txt
#file.writeMode=append
#file.writeMode=overwrite
file.writeMode=addCounter
file.counterMode=immediately
#file.counterMode=afterFirst
file.counterSeparator=_
file.counterFormat=00000
file.counterStep=1
#File Content Conversion specific parameters -
xml.addHeaderLine=0
xml.fieldSeparator==
xml.endSeparator='nl'
And here the configuration of the receiver communication channel in the integration directory:
Adapter Type: XI
Receiver
Transport-Protocol: HTTP 1.0
Message-Protocol: XI 3.0
Adapter-Engine: Integration Server
Adressing-Type: URL Address
Target Host: <yourJ2SEip>
Service Number: 8111
Path Prefix:http://<yourJ2SEip>:8111/file/receiver
Authentication Data
Logon data for non-SAP systems
User
Password
That's it... sent your payload and got the wished result:
477
477=AA1
Regards,
Heinrich -
FILE CONTENT CONVERSION PARAMETERS
HI
my source file is text format.. and source struture is contain only two fields.. but the data was getting from source is large string.. like in the bellow format i'm getting the source files..
<b>FI 6E151/AN VT-IND
DT BKK MAA 250445 M14A
- 1001 OUTRP 0151/25 VOBG/VOCI .VT-IND</b>
like this three lines i'm getting for 2 fields.. i want to send entire the first line to first field. and the next two lines i want to send to next field..( the 2nd and 3 rd lines data both i want to send into a particular field only..
so, in file content conversion what are the paramenters i need to pass.. plz suggest me..
but if i use as normal parametrs the first line was not going completely to the first field of the source
insted of that where ever i'm getting space in the first line.. from that it was going to second field but the remaning 2 lines data it was not going to any fields...
thanks
babuhi babu,
File Content Parameters
Under Content Converstion Parameter:
DocumentName: Here give your OutBound MessageType name
Cocument NameSapace: give your namesapace
RecordsetName: Recordset
RecordsetStructure: Records1,*
Records1.fieldNames:Field1,Field2,Field3
Records1.endSeparator 'nl'
regards
Ramesh P
Message was edited by:
Ramesh P -
EDI Flat file Content Conversion
Hi Experts,
I have got a question on File Content Conversion, Please have look the following structure, is it possible with FCC or what is the best possible solution for this, which is very big favour to me.
Some information about this structure,
This is EDI message in flat file structure, each segment has got 700 characters as a row, LIN item is repeating many times,
ST ,XQ , N1 , DTM, LIN, P04, N9,ZA , ZA ,ZA , etc are segments, LIN item is repeating, at the end CTT is last segment. Again from ST segment to CTT segment comes 3 more times.
ST 0000001 4444444
XQ H 20100531
N1 xxxxxxxx u 00000
N4 aaaaaaaa, kk xx87654
DTM600 20100531
LIN CB224790 HH002720033676 PP00027200336760 ZZ0
P0400001000000000 000000000 000000000 000000000000000000000000
N9 VN0000000594
ZA QA238.00000000000CT LJXX
ZA QN1.0000000000000CT LJXX
ZA QO000000000000000CT LJXX
ZA QP210.00000000000CT LJXX
ZA QS61.000000000000CT LJXX
ZA QW208.00000000000CT LJXX
LIN CB320275 SS004330033052 PP00043300330521 ZZ0
P0400001000000000 000000000 000000000 000000000000000000000000
N9 VN0000000594
ZA QA36.000000000000CT LJXX
ZA QN1.0000000000000CT LJXX
ZA QO000000000000000CT LJXX
ZA QP120.00000000000CT LJXX
ZA QS8.0000000000000CT LJXX
ZA QW36.000000000000CT LJXX
CTT00005300000000000000000000 00000000
ST 0000001 4444444
XQ H 20100531
N1 xxxxxxxx u 00000
N4 aaaaaaaa, kk xx87654
DTM600 20100531
LIN CB224790 HH002720033676 PP00027200336760 ZZ0
P0400001000000000 000000000 000000000 000000000000000000000000
N9 VN0000000594
ZA QA238.00000000000CT LJXX
ZA QN1.0000000000000CT LJXX
ZA QO000000000000000CT LJXX
ZA QP210.00000000000CT LJXX
ZA QS61.000000000000CT LJXX
ZA QW208.00000000000CT LJXX
LIN CB320275 SS004330033052 PP00043300330521 ZZ0
P0400001000000000 000000000 000000000 000000000000000000000000
N9 VN0000000594
ZA QA36.000000000000CT LJXX
ZA QN1.0000000000000CT LJXX
ZA QO000000000000000CT LJXX
ZA QP120.00000000000CT LJXX
ZA QS8.0000000000000CT LJXX
ZA QW36.000000000000CT LJXX
CTT00005300000000000000000000 00000000
Please I am really requesting you get appropriate answer and quick response please
Thanks in Advance
Regards
SandyaHi Suresh, Raj,
Thanks for quick reply, but we haven't got Seeburger Adapter in our landscape. Please one small clarification please this message looks to me, we can do with FCC, but i need some experties from you guys.
1. ST segment comes in one line with 700 characters - has got 5 fields 1..1 cardinolity
2. XO segment comes in another line with same length 700 ch, but 8 fields different lengths 1..1 cardinality
10 LIN segment comes in another line 700 characters, but 0..n
Can't we take structure as follows:
Header -- 0..n
SegID --- 1..1
field 2 -
1..1
field 3 -
1..1
field 4 -
1..1
field 5 --- 1..1
Row2 -
1..1
SegID -
1..1
field2 -
1..1
Row6 -
1..n (for LIN segment)
SegID --- 1..1
field 2 --- 1...1
Please can you give me your experties please??
Regards
Sandya -
Problem with end seperator in file content conversion parameters
Hi All
I have a proxy to file scenario, and i am writing the file using file content conversion.
In my message type, there can be multiple object records in a single data record, as shown here:
<Data_Record>
<Field1>111</Field1>
<Field2>222</Field2>
<Object_Record>
<Field3>333</Field3>
<Field4>444</Field4>
</Object_Record>
</Data_Record>
Recordset Structure: Data_Record, Object_Record
Content conversion parameters:
Data_Record.fieldseperator: ,
Data_Record.end_seperator: 'nl'
Object_Record.fieldseperator: ,
Object_Record.end_seperator: 'nl'
My requirement is, every data record should be followed by new line character and every object record should be followed by new line character:
111,222(new line character)
333,444(new line character)
But, my current output is:
111,222,333,444(new line character)
The problem is, as the data record ends only after object record, i am getting new line character only after object record. (technically, the end tag of data record occurs only after the end tag of object record).
Now, how can i get a new line character after data record and after object record?
Thanks
ChandraHi Sekhar,
We know the input which you are trying to use(in XML ).
Can you please tell us the output which you are expecting here after using ContentConversion at receiver side.
Regards,
Prakash. -
Sender File Adapter: Flat file content conversion to "multileveled" XML
Hi all,
I would like to do following conversion with file adapter:
- Input flat file schema:
A...
B,,,
C:::
- Desired XML form:
<mesage>
<A>
<B>
<C>:::</C>
</B>
</A>
</message
>
All found examples (internet or XI documentation) do offer only "flat" XML option:
<mesage>
<A>...</A>
<B>,,,</B>
<C>:::</C>
</message>
Does anybody have an idea ?
Thanx and regards
JuricaFile Adapters content conversion does not supprot such a nested strucutre currently.
The only format supported is the one shown in ths link,
http://help.sap.com/saphelp_nw04/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/content.htm
Either write a module that will do this conversion or Change the datatye for the source to the format shown in help.sap.
Regards
Bhavesh -
Flat file content conversion repeating fields
Hello,
I have a flat file where the first three fields are fixed; the rest of the file line is made up of 1 .. n analysis characteristic results. The name of the field (Result) is always the same, but I never know how many results I will have on one line. Could anyone tell me how I might define this in content conversion ? Thanks in advance.
Peter DOUGHERTY.Sorry,
Of course ... here it is
10059514 22/09/08 8:29:02 20,2 0 0 0 0,30 0 133 0 0 0 0 0 0 0 0 0 0 0
The first field is the Id of the sample
Second field Date
Third field Time
The 4th ... 21st fields a (varying) number of results (here there are 18, but there could be any number from 1 upwards)
Hope it is clearer
Thanks
Peter -
File Content Conversion Problem
Hi
I have a flat file having 10 fileds with fixed length of field 7 characters
abc bcd dce cef ecf fgi
123 234 343 233 434 343
322 222 222 222 222 222
+++++++++++++++++++++++++++++++
XML CODE FOLLOWS
+++++++++++++++++++++++++++++++
<?xml version="1.0" encoding="UTF-8" ?>
- <ns0:MT_send xmlns:ns0="http://OTO-Continue.com">
-<SEND>
<abc>343</abc>
<bcd>343</bcd>
<dce>434</dce>
<cef>3434</cef>
<ecf>343</ecf>
<fgi>434</fgi>
</SEND>
</ns0:MT_send
As per the client req I'm going with FCC. The file is picking fine with the FILE. But not picking with the FCC.
The parameters which I gave are as follows.
SOURCE I feel it is fine since file is picking fine and keeping the same for FCC also.
PROCESSING
QOS -- Exactly Once
Poll Interval -- 10
Processing Mode -- Delete
Empty-File Handling -- Process empty files
CONTENT CONVERSION Parameters
Document Name -- (am giving sender data type name) DT_send
Document NSpace -- http://OTO-Continue.com
Recordset Name -- SEND
Recordset Structure -- SEND,*
Recordset Sequence -- Ascending
Recordset per Message -- 0
And in the table the parameters am settings are
SEND.fieldNames abc,bcd,cde,def,efg,ghk
SEND.fieldFixedLengths 7,7,7,7,7,7 (because each and every field has 7 characters)
SEND.keepIncompleteFields No
SEND.fieldFixedLengthType char
SEND.fieldContentFormatting trim
SEND.fieldEndSeparator 'nl'
This was the configuration. But this is not working I monitored the Communication Channel and file is not reading and not getting deleting.
What actually went wrong in above configuration. Why it is not working.
Thanks.Hi Swarna,
CONTENT CONVERSION Parameters
Document Name -- ?
DocumentNSpace -- ?
Recordset Name -- ?
Recordset Structure -- ?
Recordset Sequence -- Ascending
Recordset per Message -- ?
Document Name - <Message Type> eg:- (MT_ABC)
DocumentNSpace - Name space of your MT
Recordset Name - The root node( Which has one occurence)
Recordset Structure - The parent node of the fields(can have multiple occurences)
Recordset Sequence -- Ascending
Recordset per Message -- 1/* (No.of records per each record set)
In your structure
+++++++++++++++++++++++++++++++
XML CODE FOLLOWS
+++++++++++++++++++++++++++++++
<?xml version="1.0" encoding="UTF-8" ?>
- <ns0:MT_send xmlns:ns0="http://OTO-Continue.com">
-<SEND>
<abc>343</abc>
<bcd>343</bcd>
<dce>434</dce>
<cef>3434</cef>
<ecf>343</ecf>
<fgi>434</fgi>
</SEND>
</ns0:MT_send
There is no root node, so in your FCC you need to mention your RecordsetName and you can ignoreRecordSetName in result structure. Check the following blog simulates your requirement.
/people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file
Regards,
Prasanna -
File content conversion - sender adapter for Header and detail records
Hi Experts,
I am receiving a field of fixed length content format.(Header)The first line of the file will follow the structure X having some fields and (DetailRecord)subsequent lines in the file will follow structure Y having somes fields.There is no record identifier for Header and Detail records.In one file first line is Header records and remaining subsequent line is DetailRecord.What are the parameters we have to set for sender file content conversion parameters as i donot have any key field and key field value.And in one file we have only one header records ( first line) and n number of detail records from 2nd line onwards.
Thanks
DeepakHi
Refer the below fourm link,
Flat file whitout id
Regards
Ramg. -
Hi Question about Sender File Content Conversion
Hi All,
I have a flat file i need convert that flat file to the below XML format using File content Conversion, can anybody help me on this with example File content Convertion parameters
<?xml version="1.0" encoding="UTF-8"?>
<ns0:MT_FileSend xmlns:ns0="http://test">
<Recordset>
<Contact>
<Name>ABC</Name>
<Number>123</Number>
<Address>
<HouseNumber>246789</HouseNumber>
<StreetNumber>100</StreetNumber>
<Phone>
<Mobile>90000000</Mobile>
<LandLine>12345678</LandLine>
</Phone>
</Address>
<Email>
<Office></Office>
<Personal></Personal>
</Email>
</Contact>
</Recordset>
</ns0:MT_FileSend>Hi Sudheer reddy,
Good question.
File content conversion parameters are:
1) Doccument Name: Doccument name is nothing but message type name for file side: MT_FileSend
2) Doccument Namespace: mention the name space for the message type.
3) Doccument Offset: for which row and which coloumn doccument has to be write.
4) recordset name: mention the record set name: Recordset
5) Recordset Namespace: if the namespace is different for message type name space mention name space or otherwise it is blank.
6) Recordset Structure: Mention the structure name
7) Recordset Sequence: mention the sequence of the recordset Ascending or Decending
8) Recordset permessage: Would define no of record sets per message.
9) Key-field name: to query to the doccument
10) Key field type: string(Case-senstive)
fieldValues
fieldSeparator
endSeparator
Note: pls check in SDN about file content conversions it so many blogs are available, u can easily understand.
Regards,
Sateesh -
CONTENT CONVERSION PARAMETERS IN XI
Hello guyz,
im following a certain procedure in XI ,it said that i need to enter the content conversion parameters as follows:
document name :
document namespace and others
and the name: value
contact.record.fieldseparator ;
contact.record.endseparator nl
contact.record.fieldnames firstname,lastname
this is under integration directory, in business system in communication channel.
But i dont know where can I find it in that module.
Please help.
Thanks in advance
aVaDuDzHi,
file content conversion parameters change based on ur file data.
if its Fixed length then u have to use certain parameters and if its separated by some chatactor then u have u use certain parameters.
refer the below links to understand;
Converting File Content in a Sender Adapter:
http://help.sap.com/saphelp_nw04/helpdata/en/e3/94007075cae04f930cc4c034e411e1/frameset.htm
Converting File Content in the Receiver Adapter
http://help.sap.com/saphelp_nw04/helpdata/en/e3/94007075cae04f930cc4c034e411e1/frameset.htm
Sender -
Introduction to simple(File-XI-File)scenario and complete walk through for starters(Part1)
Key value:
How to send a flat file with various field lengths and variable substructures to XI 3.0
Content Conversion (Pattern/Random content in input file)
NAB the TAB (File Adapter) -
File Content Conversion for Unequal Number of Columns
Content Conversion ( The Key Field Problem )
The specified item was not found.
NAB the TAB (File Adapter)
NAB the TAB (File Adapter)
Receiver FCC no need of Endseparator
File Adapter (Receiver) - Are we "really" sure about the concepts?
Receiver-
File Receiver with Content Conversion
chirag -
Give me list of content conversion parameters in sap xi
Hello experts,
give me the list of file content conversion parameters (like <node>.fieldSeparator)
with their explination.
Thanks inadvance.
ArjunHi,
Did you checked help.sap....
Sender Side:
http://help.sap.com/saphelp_nw04/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/content.htm
Receiver Side:
http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm
also check these blogs
File Receiver with Content Conversion By Jeya Kumar
The specified item was not found. By Shabarish Vijayakumar
NAB the TAB (File Adapter) By Sukumarar
Introduction to simple(File-XI-File)scenario and complete walk through for starters(Part1) By Venkat Donela
Content conversion in Sender file adapter-- 2 new useful parameters By Sukumar Natrajan
Thanks
SaNv... -
Hello,
I have Async. File receiver scenario in which the following is the XML message structure. This is received by the file adpater.
<ns1:MT_Info_File xmlns:ns1="urn:http://freemanco.com/xi/info_list">
<TYPE>
<FileItem>
<FileName>DD11022007</FileName>
</FileItem>
</TYPE>
<DATA>
<LineItem> <LineEntry>234567891234567890123456789012345678901234567890</LineEntry>
</LineItem>
<LineItem>
<LineEntry>95473523647586969587265245437586979798376524253586</LineEntry>
</LineItem>
<DATA>
<LineItem</ns1:MT_Info_File>
<u><b>I want to write only folowiing DATA structure to file. I do not want to wite contents of TYPE structure</u>
<DATA>
<LineItem> <LineEntry>234567891234567890123456789012345678901234567890</LineEntry>
</LineItem>
<LineItem>
<LineEntry>95473523647586969587265245437586979798376524253586</LineEntry>
</LineItem>
<DATA></b>
In the receiver file adpater I have follwoing <u><b>File content conversion parameters</b></u>.
RecordSetStructure: DATA,LineItem,*
*.addHeaderLine 0
*.fieldFixedLengths 301
*.fixedLengthTooShortHandling Error
*.endSeparator nl
LineItem.fieldSeparator nl
DATA.fieldSeparator nl
While testing I got following error. Looks like it is expecting some values for FileItem element in the XML.
<b>Error</b> Attempt to process file failed with java.lang.Exception: Exception in XML Parser (format problem?):'java.lang.Exception: Message processing failed in XML parser: 'Conversion configuration error: Unknown structure 'FileItem' found in document', probably configuration error in file adapter (XML parser error)'
<b>Error</b> MP: exception caught with cause com.sap.aii.af.ra.ms.api.RecoverableException: Exception in XML Parser (format problem?):'java.lang.Exception: Message processing failed in XML parser: 'Conversion configuration error: Unknown structure 'FileItem' found in document', 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: 'Conversion configuration error: Unknown structure 'FileItem' found in document', probably configuration error in file adapter (XML parser error)'
<b>Error</b> Exception caught by adapter framework: Exception in XML Parser (format problem?):'java.lang.Exception: Message processing failed in XML parser: 'Conversion configuration error: Unknown structure 'FileItem' found in document', probably configuration error in file adapter (XML parser error)'
<b>Error</b> Delivery of the message to the application using connection File_http://sap.com/xi/XI/System failed, due to: com.sap.aii.af.ra.ms.api.RecoverableException: Exception in XML Parser (format problem?):'java.lang.Exception: Message processing failed in XML parser: 'Conversion configuration error: Unknown structure 'FileItem' found in document', 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: 'Conversion configuration error: Unknown structure 'FileItem' found in document', probably configuration error in file adapter (XML parser error)'.
How to resolve this issue? I appreciate your help.
Thank you,
BalajiBalaji,
I would suggest to remove FileItem and LineItem in your receiver datatype. They are increasing the hierarchy of your content conversion. If you do that then you will have
<ns1:MT_Info_File xmlns:ns1="urn:http://freemanco.com/xi/info_list">
<TYPE>
<FileName>DD11022007</FileName>
</TYPE>
<DATA><LineEntry>234567891234567890123456789012345678901234567890</LineEntry>
<LineEntry>95473523647586969587265245437586979798376524253586</LineEntry>
<DATA>
</ns1:MT_Info_File>
Then in content converstion give this parameters:
Record structure : TYPE,FileName,DATA,LineEntry
TYPE.fieldfixedlengths : 0
FileName.fieldfixedlenghts:0
DATA.fieldfixedlenghts:0
LineEntry.fieldfixedlengths:301
LineEntry.endSeparator:'nl'
Then it should work. Also you can use FileName in your variable substituition. Also please see this weblog on how to use FileName in variable substitution:
/people/sravya.talanki2/blog/2005/08/11/solution-to-the-problem-encountered-using-variable-substitution-with-xi-sp12
If you dont want to remove FileItem and LineItem then add these also in your content conversion. Then the parameters would be:
Recordset: TYPE,FileItem,FileName,DATA,LineItem,LineEntry
TYPE.fieldfixedlengths : 0
FileItem.fieldfixedlengths:0
FileName.fieldfixedlenghts:0
DATA.fieldfixedlenghts:0
LineItem.fieldfixedlengths : 0
LineEntry.fieldfixedlengths:301
LineEntry.endSeparator:'nl'
Regards,
---Satish -
Required help for Identifying diff. items in file content conversion.
Hi All,
I've to use a file content conversion parameters for a .txt file in which there are two objects. One is a header and the other is a item detail.
How do we get or mark the difference between both so that XI recognizes the particular line is a Header and the other is a Item detail
Thanks in Advance.
Regards,
Sree.Hi
Make use of a field which is common to header and item line which will always hold different values for header and item. Or otherwise if possible, add an extra field in the header and item lines, say 'Key' and use it in the 'Key Field Name' parameter in the adapter configuration. See this for details - [File Content Conversion for Complex Structures|http://www.riyaz.net/blog/index.php/2008/02/20/xipi-file-content-conversion-for-complex-structures/].
Regards,
Riyaz
Maybe you are looking for
-
Unable to create the test suite file
Hi, I imported a BPEL project to my JDeveloper ver 10.1.3.3.0. When I clicked on the <project name>.bpel, I got the "unable to create the test suite file" error and all the partnerlinks have a bang sign (!). None of the partner link works. Please hel
-
Vertical thin blue line on LCD
Is there an easy fix to get rid of this line on my screen? it's about 3 inches in from the left of the edge of the screen, running the full-length top-to-bottom. Any info would be appreciated. Thanks.
-
CSSD does not start during root.sh execution
hi, I am using oracle10gR2 on solaris 9 sparc. when i start root.sh script it stops at following point. Running Oracle10 root.sh script... The following environment variables are set as: ORACLE_OWNER= oracle ORACLE_HOME= /u01/app/oracle/product/10.2.
-
I have tag values that are steps or alarm codes in a process and I want to create a cross reference SQL table for these values. Using BLS, how do you link these tables to have an Xacute query that will return the cross referenced values from the tag
-
[SOLVED] Question about new pacman upgrade
The release notes ay that "Installing package with -U is now smart like -S - dependencies and conflicts are now handled" So, if I am understanding this correctly... when I am installing something from the AUR, I only need "makepkg -i", instead of "ma