on 04-27-2007 12:19 PM
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.
HI,
please change your structure,sender and receiver also,
it should be under one root , but in your structure , please check in data type
is it similar to below
Root -
0..unbound
record set.....................(Optional)
PONUM...0.1
POQTY ...0..1
POAMT..0.1
here may not be the root , you can use any name... but under one strucure
Regards
chilla
recordset.fieldNames PONUM,POQTY,POAMT
recordset.fieldSeperator ,
recordset.processConfiguration FromConfiguration
if you are not using recordset , then replace it root in above parameters
Regards
Chilla
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ok Here is my source structure which I have copied directly sxmb_moni
- <ns:mt_sender xmlns:ns="http://xml2xml">
- <Recordset>
- <Row>
<PONO>"25"</PONO>
<POQTY>"12"</POQTY>
<POAMT>"35.67"</POAMT>
</Row>
</Recordset>
</ns:mt_sender>
Now tell me what is the DocumentName and what is the RecordSetName and RecordSet Structure I need to give in order to make it work. Hopefully this will end the thread.
Hi,
All you mentioned parameters are correct , and add the below
ignoreRecordsetName : true to above given parameters
Please check the structure also with above given parameters .
http://help.sap.com/saphelp_nw2004s/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/content.htm
Regards
Chilla
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ,
Now the fiel is getting picked up but SXMB_MONI I see a red flag and this is the error message.
Any ideas.
During the application mapping
com/sap/xi/tf/_mm_Sender_Receiver_ a
com.sap.aii.utilxi.misc.api.BaseRuntimeException
was thrown: RuntimeException in Message-Mapping
transformatio~
The input is
25,12,35.67. So why is it throwing a mapping error.
Sonia,
The error states that there is an error in your message mapping. What you can do is test your mapping by taking your source payload. Check this weblog for some help on how to use this:
/people/michal.krawczyk2/blog/2005/09/16/xi-how-to-test-your-mapping-in-real-life-scenarios
Also as pointed by other posts there may be a wrong target structure. Also can you tell us the message type structure of your target and your parameters for receiver communicaiton channel.
---Satish
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
Hey
>>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
This means ur XML is not valid,ur givin some wrong values for PO_NUM,also check the occurence of PO_NUM,can u paste the XML ur getting in MONI,so that we can have a look at it
thanx
ahmad
Message was edited by:
Ahmad
These are parameters I have given. Now tell me what is wrong.
DocumentName FILEINPUT
Document NameSpace http://www.xmlsw
RecordSetName Row
Recordset Structure Substr,*
Recordsets per message *
Key Field Type String(Case Sensitive)
Substr.FieldNames PONUM,POQTY,POAMT
Substr.FieldSeperator ,
Substr.ProcessConfiguration FromConfiguration
Substr.endSeperator 'nl'
Correct me if I wrong. I suppose Document Name and Document Namespace doesn't matter.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
>>Substr.<b>F</b>ieldNames PONUM,POQTY,POAMT
Substr.<b>F</b>ieldSeperator ,
Substr.<b>P</b>rocessConfiguration FromConfiguration
Substr.endSeperator 'nl'
This has to be in the correct case. First change this.
>>I suppose Document Name and Document Namespace doesn't matter
It has to be the Message Type Name and namespace respectively. If not the msg will be errored during mapping.
Regards,
Jai Shankar
Can someone point me to the sap help link. This will give me an idea of what each parameter means. I don't have access to SAP Service Marketplace.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
>>Format error in 'xml.recordset' argument: incomplete structure (name,number) pair.
You have provided a wrong value in recrdset arguement.
It should be some thing like <b>header,1</b> or <b>dettail,*</b>
Regards,
Jai Shankar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Check your Conversion paramters correctly.
/people/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
11 | |
10 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.