on 08-29-2007 8:37 AM
Hello together,
I am trying to insert items from a csv-file into XI Value Mapping by using the XI adapter. Mapping and configuration is finished, the file is picked by file-adapter and comes through the mapping. In the SXMB_MONI the message is processed correctly, but in the RWB I get the following error:
"Runtime exception during XML parsing: Error parsing document. Exception: Generic Exception: com.sap.aii.proxy.xiruntime.core.XmlProxyRuntimeException: InvocationTargetException when calling method com.sap.xi.xI.system.ValueMappingReplicationItem_Type$Operation_Type.fromValue: insert is not among the enumerated values."
Do you have any idea, what the problem is?
Thank you very much in advance!
Kind regards,
Fred
I would run the XML through the mapping test, and see if you get a better error message. They are quite generic in SXMB_MONI.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What is the receving adapter?
It would be worth extending the trace file to get a better handle on the error.
Traces are used to analyze runtime errors. By setting a specific trace level for specific locations, you can analyze the behavior of individual code segments at class and method level. This is done with the help of the log configurator service:
 Services
 Log Configurator
 Locations
 Choose the location (Java package) and the tracing level (severity)
(for example, com.sap.aii.adapter.file)
 Root Location > com > sap > aii > File
 Set the severity and choose Copy Severity to Subtree.
Depending on what adapter you are using, determines the root location.
Do this then run the interface again. The trace file will provide the specific error causing the problem.
Actually, Dreamcatcher seems to be right.
The only enumeration I found in the <i>ValueMappingReplication</i> message type (available in the <i>SAP BASIS</i> SWCV, under <i>http://sap.com/xi/XI/System</i> namespace) is the one for the Operation field, and it is as below:
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="Insert" />
<xsd:enumeration value="Delete" />
<xsd:enumeration value="DeleteGroup" />
<xsd:enumeration value="DeleteContext" />
<xsd:enumeration value="DeleteContextGeneric" />
</xsd:restriction>
</xsd:simpleType>
Regards,
Henrique.
Perfecto!!! It works now.
Dreamcatcher was definitly right!
The "i" in insert has to be upper case.
The next error was because of a wrong GUID, it has to contain 32 digits and the context can be "http://sap.com/xi/XI" or "http://sap.com/xi/XI/System".
Thank you all for the very fast and professional help!
Best regards,
Fred Wetzinger (real name! Bhavesh, you see, I have read the thread "Talking about funny names ..." )
Hi,
I have a very similar scenario where my csv file has two fields key, value and I am not sure how to map that to the valuemappingreplicaiton standard interface. Can you pl tell me the steps you have done. How did you map the fields on the source to the fields on the target value mapping replication interface ?
M
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi !!
Try: "Insert" ("I" capital) and a GUID of exactly 32 digits. And "http://sap.com/xi/XI" as namespace.
Regards,
Matias.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Fred,
Somthing to do with the data.
The Valuemapping Interface expects the GUID ( or something similar in name .. dont rememebr exactly but one of the fields ) to be unique, i.e, they should be shared only between the KEY And the Value Pair.
Have you done this?
Regards
Bhavesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
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.