Error whil doing File Content Conversion
Hi all,
I had configured a sender for File Content Conversion and I am getting the follwoing error.
Sender Adapter v1014 for Party '', Service 'bs_xml_sender':
Configured at 05:39:05 2007-04-27
Initialization error: Conversion initialization failed with java.lang.Exception: java.lang.Exception: java.lang.Exception: Error(s) in XML conversion parameters found:
Format error in 'xml.recordset' argument: incomplete structure (name,number) pair.
Any ideas why I am getting this error.
Here is the detailed error message.
"Messages:16:40:41 Start of test
- Cannot produce target element /ns:mt_receiver/PO_NUM. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd
16:45:01 End of test
16:45:10 Start of test
- Creating Java mapping com/sap/xi/tf/_mm_Sender_Receiver_
- Loaded class com.sap.xi.tf._mm_Sender_Receiver_
- Call method execute of the application Java mapping com.sap.xi.tf._mm_Sender_Receiver_
- *** START APPLICATION TRACE ***
- Document start
- Start tag [ns:mt_receiver]
- Add raw attribute [ xmlns:ns="http://xml2xml"]
- Cannot produce target element /ns:mt_receiver/PO_NUM. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd
16:45:12 End of test
Similar Messages
-
Error in reciever file content conversion
Hi
I have the following error in the file content conversion
Could not process due to error: java.lang.Exception: Exception in XML Parser (format problem?):'java.lang.Exception: Message processing failed in XML parser: 'Conversion configuration error: Unknown structure '' found in document', probably configuration error in file adapter (XML parser error)'
my content conversion is :
Recordset Structure : FI_Banks_Header_MT,Line
FI_Banks_Header_MT.fieldSeparator = 'nl'
FI_Banks_Header_MT.fieldSeparator = ;
my xml is :
<FI_Banks_Lines_MT>
****<Line>
<FIELD1>12799</FIELD1>
<FIELD2>721042</FIELD2>
<FIELD3>0620</FIELD3>
<FIELD4>20.06.06</FIELD4>
<FIELD5>5575688</FIELD5>
****</LINE>
</FI_Banks_Lines_MT>
The file gets ok !!! but I still get this error in adapter monitor after the file is converted all the time
any1 managed to solve it ? thx , ShaiHey sorry for the previous one...
try out this...
Recordset Structure : FI_Banks_Lines_MT
FI_Banks_Lines_MT.endSeparator = 'nl'
FI_Banks_Lines_MT.fieldSeparator = ;
hope this helps !!!...
Cheers.,
Esha -
Error while doing File to File Scenario
All,
I am trying a simple file to file scenario - where xi picks up the file from a location and maps the message and dumps it in another location.
I am Getting the below error while doing the same .........
Time Stamp Status Description
2009-03-30 14:30:24 Success Channel Test_send_cc: Send binary file "d:\input\input.xml". Size 203 with QoS EO
2009-03-30 14:30:24 Success Application attempting to send an XI message asynchronously using connection AFW.
2009-03-30 14:30:24 Success Trying to put the message into the send queue.
2009-03-30 14:30:24 Success Message successfully put into the queue.
2009-03-30 14:30:24 Success The application sent the message asynchronously using connection AFW. Returning to application.
2009-03-30 14:30:24 Error Attempt to delete file "d:\input\input.xml" after processing failed. Retry
2009-03-30 14:30:24 Success The message was successfully retrieved from the send queue.
2009-03-30 14:30:24 Success The message status set to DLNG.
*+2009-03-30 14:30:24 Error Transmitting the message to endpoint http://filip:8000/sap/xi/engine?type=entry using connection AFW failed, due to: com.sap.aii.af.ra.ms.api.RecoverableException: Received HTTP response code 401 : Unauthorized.*
2009-03-30 14:30:24 Success The asynchronous message was successfully scheduled to be delivered at Mon Mar 30 14:35:24 GMT+05:30 2009.
And i cant see the meesages using the SXMB_MONI trasaction
please help me resolve ths issue
Regards,
Mahesh.
Edited by: mahesh uma on May 3, 2008 2:12 PMHi Uma,
Go through this links::
Hope these links are useful to you..
Urgent: Message not transmitted from AFW to Integration server
Error with huge file
File to JDBC error
Thanks,
Satya Kumar.. -
Error in Sender File content Conversion - how to ignore keyfieldName
Dear Frndz,
I'm new to SAP PI. I want to post a flat file to ECC.
The Souce Structure is:
Record(1-unbounded)
|_Header(1.1)
field1
field2
field3
|_Detail(1.unbounded0
field4
field5
field6
Sample File:
first header - xx,yy,zz
Detail 1 - 1,b,c
Detail 2 - 2,e,f
second header - aa,bb,cc
Detail 1 - 1,g,d
I wrote the file content conversion as follows
Recordset name - Record
Recordset Structure - Header,1,Detail,*
Header.fieldNames field1,field2,field3
Header.feldseparator ,
Header.endseparator 'nl'
Detail.fieldNames field4,field5,field6
Detail.fieldseparator ,
Detail.endseparator 'nl'
Conversion initialization failed: java.lang.Exception: java.lang.Exception: java.lang.Exception: Error(s) in XML conversion parameters found: Mandatory parameter 'xml.keyfieldName': no value found
It's asking me to give the input to keyfieldname. But I dont have such field in my record. Ther's no common field . no field is repeating like record type or doc_type as in other cases.
So, Coud you please guide me to proceed with this.
Thanks in advance.....Hi,
Please, take a look to these Blogs related to FCC
Troubleshooting the File Adapter (Last Updated on 02 July'10)
Content Conversion (Pattern/Random content in input file)
File Content Conversion for Unequal Number of Columns
The specified item was not found.
Content Conversion ( The Key Field Problem )
NAB the TAB (File Adapter)
Rgds
RP-. -
Error while doing file to mail scenario
Hai All,
I am getting the following errors while doing the file to mail scenario.
Error:Exception caught by adapter framework: Failed to call the endpoint
Error:Delivery of the message to the application using connection AFW failed, due to: Failed to call the endpoint.
Can anyone please give me solution...Try this:
Re: "Could not determine code page" inbound side error
and this
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/d19fe210-0d01-0010-4094-a6fba344e098
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/cdded790-0201-0010-6db8-beb9bb2b2660 -
ERR: EXCEPTION_DURING_EXECUTE while using FILE CONTENT CONVERSION
Hi,
I'm trying a file to file scenario with File Content Conversion for Sender communication channel. But am getting the following error in SXMB_MONI
<SAP:Category>Application</SAP:Category>
<SAP:Code area=<b>"MAPPING">EXCEPTION_DURING_EXECUTE</SAP:Code> </b>
<SAP:P1>com/sap/xi/tf/_MM_ContentBased_</SAP:P1>
<SAP:P2>com.sap.aii.utilxi.misc.api.BaseRuntimeException</SAP:P2>
<SAP:P3>RuntimeException in Message-Mapping transformatio~</SAP:P3>
<SAP:P4 />
<SAP:AdditionalText />
<SAP:ApplicationFaultMessage namespace="" />
<SAP:Stack>During the application mapping com/sap/xi/tf/_MM_ContentBased_ a com.sap.aii.utilxi.misc.api.BaseRuntimeException was thrown: RuntimeException in Message-Mapping transformatio~</SAP:Stack>
<SAP:Retry>M</SAP:Retry>
</SAP:Error>
I tried the same message mapping for normal file to file scenario without using File Content Conversion. It went through fine.
<b>Our file structure follows</b>
<Header>
<Sysnum>01</Sysnum>
</Header>
<Body>
<Name>ABCDE</Name>
<Age>25</Age>
<Stream>XYZ</Stream>
</Body>
<b>The Sender Communication Channel Parameters follows:
</b>
Recordset Str: Header,1,Body,1
Header.fieldFixedLengths : 2
Header.fieldNames : Sysnum
Body.fieldFixedLengths : 5,2,3
Body.fieldNames : Name,Age,Stream
ignoreRecordsetName : true
Looking for a solution
Thanks,
Ajay.Hi Ajay,
your message mapping failed.
Copy the XML message from monitoring and exectute the mapping in Integration Builder with maximal trace to get the reason.
Regards,
Udo -
Consistency check error in sender file content conversion
Dear Experts,
I am trying one simple File to File scenario in which i have only fields 1>salesorder_number 2>Description
I created a txt file with line items "100,crudeoil" with file name as salesorder.txt
In the sender file adapter i have configured the file convertion paramenters as follows:
Document name : mt_salesorder_sender
Document namespace : http://se.com.sa/sec-sa-qax "Namespace of message type
Recordset Structure : document,*
document.endSeparator : 'nl'
document.fieldSeparator: ,
document.fieldNames : salesorder_number,Description
So after this if i run the scenario In file adapter i am getting the error like "Conversion initialization failed: java.lang.Exception: java.lang.Exception: java.lang.Exception: Error(s) in XML conversion parameters found: Parameter 'document.fieldFixedLengths' or 'document.fieldSeparator' is missing Consistency check: no. of arguments in 'document.fieldFixedLength' does not match 'document.fieldNames' (0 <> 2) "
Please let me know where i am going wrong.
Regards,
SanthoshHi,
please maintain the order as
Recordset Structure : document,*
document.fieldNames : salesorder_number,Description
document.fieldSeparator: ,
document.endSeparator : 'nl'
Rgds
joel -
Error handling in File content conversion
In our project , we are converting Flat file to XML by adapter modules ...
File is like this :
HEADER 123 567
DETAIL UWERU AASD fftk
DETAIL UWERU AASD fftk
DETAIL UWERU AASD fftk
DETAIL UWERU AASD fftk
FOOTER
File has been succesfully converted to XML.HEADER, DETAIL and FOOTER are the key field
values.
Now in some scenario file is like this
HEADER 123 567
DETAIL1 UWERU AASD fftk
DETAIL UWERU AASD fftk
DETAIL UWERU AASD fftk
DETAIL UWERU AASD fftk
FOOTER
As there is one DETAIL1( different from DETAIL, it can be anything other tha DETAIL ) we need to throw the error.Client wants to do it in the Integration engine level not in Adpater engine...
Any suggestions will be great ....Bhavesh ,
Input
HEADER 123 567
DETAIL UWERU AASD fftk
DETAIL UWERU AASD fftk
DETAIL UWERU AASD fftk
DETAIL UWERU AASD fftk
FOOTER
The output is like this
<root>
<header>
<f1>123</f1>
<f2>567</f2>
<detail>
<f3>UWERU</f3>
<f4>AASD</f4>
<f5>fftk</f5>
</detail>
<footer>
</footer>
Now regarding the module , we are using all standard modules , can we set the flag using SAP standard module ???
Another question is , is ot possible to make the key field values (HEADER, DETAIL and FOOTER ) is part of the output ???
Regards
Goutam -
File Content Conversion - Error in keyfield Value
Hello experts,
I am doing file content conversion for a file to file scenario. The input file is a csv file which is converted to xml using the file content conversion. The key field of input file is used for implementing conversion.
While testing the FCC, I noticed that if the keyfield value is wrong for a record in the file, the record is ignored altogether without throwing any errors or warnings. Is there any way to notify if any records have been ignored as a result of incorrect keyfield value??
Thanks in advance!
RRThere seems to be NO way to handle it in FCC.
File Content Conversion - Key Field Value
u can think of work arounds by handling it in mapping....
-santosh. -
Error in mapping and in file content conversion
Dear All,
I am configuring one file-xi-rfc scenario in which the structure of the input file is as follows:
EDI_DC40 2 DELVRY03 SHPCON
E1EDL20 020 <b>0083710164</b>
E1EDL18 020 PIC
E1EDL18 020 PGI
E1EDL18 020 GWT
I want to pick only VBELN from the segment E1EDL20 and post ot to the RFC. In the input file, the above structure is getting repeated for different VBELN.
Please help in configuring the sender DT, MM and in doing File Content Conversion.
Waiting for your reply.
Warm Regards,
N.JainHi,
Check Below Links which will help u to do content convertion at Sender side and Receiver side.
/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/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
/people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file
/people/shabarish.vijayakumar/blog/2005/08/17/nab-the-tab-file-adapter
/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/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/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter
/people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm
Regards,
Phani
Reward Points if Helpful -
File content conversion scenario-empty file
Hi all,
I am doing file content conversion for my sender flat file. And I want to generate XML file in my receiver location.When I check with test tab in my message map in IR , no structure gets generated in RESULT.Overalls cenario is working fine and message is processed successfully but empty file is getting generated in target directory.When I check the payload in message content in RWB communication channel monitoring,it's picking data correctly from the file.I am not getting what might have gone wrong with my message mapping in IR. It's not showing any syntax error.Even it's not generating target message structure in Results window of test Messsage mapping.Could you suggest what mistake might be there in message mapping.Hi all,
I am getting this message in message monitor(SXMB_MONI).
com.sap.aii.utilxi.misc.api.BaseRuntimeException
thrown during application mapping
com/sap/xi/tf/_MM_Flat_content_conv_:
RuntimeException in Message-Mapping transformatio~
I am able to see the output structure in test window of message mapping in IR and communication channel monitoring is also showing successful message.
fcc parameters used are:
Header.fieldNames KEY,EMPID,NAME,COMPANY,PHONE
Header.fieldFixedLengths 1,4,20,15,12
Header.processConfiguration FromConfiguratiion
Header.keyFieldValue H
Detail.fieldNames KEY,COMPANY,LOCATION
Detail.fieldFixedLengths 1,15,10
Detail.processConfiguration FromConfiguratiion
Detail.keyFieldValue D
Please suggest the mistake in mapping
Edited by: Jaya on Mar 3, 2010 12:45 PM
Edited by: Jaya on Mar 3, 2010 12:47 PM -
File Content Conversion ( avoid fields in conversion)
Hi all
An IDoc to File scenario , I am doing file content conversion in receiver File adapter.
my message type for file 2 HEADER each having its own substructure
Like 1header
fieldA
2header
fieldC
fieldD
I want the "<b>1header and its 1 subelement not be converted in file content conversion" </b>
because its used for dynamic file name configuration, so i do'nt want it to be written on file.
Regards
Ashutosh.rRawat,
Yes I know you will get that error. That is the reason why I have told you to add another parameter fixedLengthTooShortHandling as Cut. So add one more parameter in your file receiver communicaion channel: Also I hope ASFD0101 is your strcuture not the field in the strcuture.
ASFD0101.fixedLengthTooShortHandling : Cut
Then I think it should work like a boom.
---Satish -
File Content Conversion doesn't pull file
Hi all,
I have a Comm Channel using File Content Conversion - it does not pick up the file (no message in msg monitor). If I copy the Comm Channel, turn off File Content Conversion, and change the Sender Agreement to use the copied Comm Channel, the file is picked up and a message appears in the message monitor.
Any ideas? Does File Content Conversion expect certain file names/types/etc...?
Also, side question - when I change the sender agreement (or anything else in the CD), SXI_CACHE shows "Unable to refresh cache contents" with various errors, one of them being "LCR_GET_OWN_BUSINESS_SYSTEM - NO_BUSINESS_SYSTEM"; another said something about IF_HTTP_.. HTTP Communication error or something.
I'll do more searching on this on and post a new topic if necessary...
Thanks,
BrianI'll try setting those logging settings (don't have access).
In the meantime, here is my content conversion:
Content Conversion info - converting a 3 line type flat file to XML
Example of file layout:
H060412
IC11030416 Example yada yada EA 110137
IC11030417 Example yada yada EA 131206
T000002
>First letter is key field RecType (H=header, I=detail, T=trailer)
Doc name: Material <--msg type
Doc ns: urn:......
Doc offset: <blank>
RS name: Material <--data type
RS ns: <blank>
RS struc: Hdr,1,Dtl,*,Trl,1
RS seq: ascending
RS/msg: 1
Key field: RecType
Key type: String case-sensitive
Hdr.fieldFixedLengths 1,6
Hdr.endSeparator 'nl'
Hdr.fieldNames RecType,GteamsDate
Hdr.keyFieldValue H
Dtl.fieldFixedLengths 1,1,18,20,4,6
Dtl.endSeparator 'nl'
Dtl.fieldNames RecType,ActivityInd,CatalogNum,Description,UOM,ProductClass
Dtl.keyFieldValue I
Trl.fieldFixedLengths 1,6
Trl.endSeparator 'nl'
Trl.fieldNames RecType,RecCount
Trl.keyFieldValue T
Brian -
File content conversion on Sender Side
Hi,
I am doing file content conversion on sender side.when i am executing the scenario,i am getting the following error in sxmb_moni:
Invalid at the top level of the document. Error processing resource 'file:///D:/Documents and Settings/...............
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?><!-- Inbound Message --> DOC_HEADER ...
when i right click on the pyaload and select view source
its displaying the whole flat file with the following line at the beginning:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?><!-- Inbound Message -->
i have given all the parameters correctly....
in sxmb_moni.....the error category is Mapping and the error id id EXCEPTION_DURING_EXECUTE
Please help me with this error.
thanks n regards,
anuradhaHi !!
The best way to debug would be to add TRACE statements in your mappigs. In both Graphical and java Mapping.
Trace out the entire output of java mapping and see if this is the input that the next mapping expects.
For trace , http://help.sap.com/saphelp_nw04/helpdata/en/c8/98e7d5c1620642973565ea3dd319d1/content.htm
refr this links also
Fatal Error: com.sap.engine.lib.xml.parser.ParserException: Name expected
unsported character error in message mapping
Re: HTTP to RFC Mapping error:com.sap.aii.utilxi.misc.api.BaseRuntimeException:
Exception com.sap.aii.utilxi.misc.api.BaseRuntimeException
Re: Outbound error
Re: mapping error
error in file to file
have a look at this weblog on how to test your mapping
/people/michal.krawczyk2/blog/2005/09/16/xi-how-to-test-your-mapping-in-real-life-scenarios
Thanks !!! -
Send a file without File Content Conversion
Hi,
I need to send an IDOC flat file that I pick from File system to a FTP server through XI. I was just wondering if there was a way by which I could avoid doing File Content Conversion on both the send and receiver file adapters?
In my scenario, I am just passing this file through XI. I am not making any changes to it but to send it thru XI, I will have to convert from flat IDOC file ( file generated from File port in ECC) to XML and then from XML to Flat file.
Can anyone guide??Hi William,
<i>As a matter of fact, <b>no IR object is needed</b>. You can make up any interface name and namespace in the ID.</i>
This sounds interesting..!!
Can I just note down the steps in this case and can you validate the same..
1. No IR objectd needed.
2. File adapters ~~ Both sender and reciver , make the protocol as FILE
3. Receievr Determination , Interface determination , Sender Agreement , Receiver Agreement ~~~ Give dummy Interface as well as Namespace values?
Regards,
Bhavesh
Maybe you are looking for
-
How can i get adobe flashplayer onto my powerbook g4?
So i have the powebok g4 and i would like to watch youtube videos and other videos and online sites that require an upgrade of adobe flash player. However I cant seem to find out how to do it. I went to Adobe.com it didnt help. Problem i am getting i
-
Effects of PARALLEL hint in different parts of SQL script
I have a fairly large data warehouse with most of the Child tables having more than 5 billion rows. They are partitioned by a DATE column. I have several local B-tree and bitmap indexes on the appropriate columns. The DEGREE on most of the large tabl
-
CREATE MV ON PREBUILT TABLE uses up all UNDO; why?
Hi, We have a DW application with star schemas and a few MVs. Our MVs are on top of prebuilt tables as we "manually" manage the aggregations. Creation of most of the MV definitions over the prebuilt tables is OK: they take just a few hundred millisec
-
Consolidate Masters - what exactly does this do?
Hi all I am a relativity new aperture user. every time i import images from my camera, they have the little arrow in the bottom corner to show they are referenced files. I can fix this by clicking file>consolidate masters and choose to move or copy t
-
Huge performances issues after EHP5 upgrade
Hi All, we are running on DB29.7 FP4 and had recently upgadedfrom ehp4 to EHP5 , we have huge performance issues, for example see below DB time difference for LP12 transactions i have done onleline roerg of table and indexes , but no luck, from 23-29