on 02-11-2009 4:17 AM
Hi,
I have got following error in my mapping and the payload is very huge (real time data)
When I try to copy this payload to IR test space it hangs. It seems there is a data error for company code but I can't figure out which Details company code has error.
It is a night mare to look at each record, there are around 20,000 recrods in this payload.
Is there any way I can find out the errorneous record?
RuntimeException during appliction Java mapping com/sap/xi/tf/_HREmpolyeeDetails_To_HREmpolyeeDetails_MM_</Trace>
<Trace level="1" type="T">com.sap.aii.utilxi.misc.api.BaseRuntimeException: RuntimeException in Message-Mapping transformation: Cannot produce target element /ns1:HR_EmpDetails_MT/Record[1474]/Company. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd at
Regards
Hema
Hi,
Kindly check the Occurrences of the nodes.
If you are still getting any Mapping error, Copy the Payload in XML Format in a Notepad File and save it as xml file from SXMB_MONI.Then Go to message mapping and In the test tab Try to Import the file ......If there are any error During runtime You can Figure out the error very easily.
Best regards,
Sainath
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
it seems field Company have occurence 1-1.Go to Change mode.Use map with default function Temporary and test the mapping.Check the target and find where the Company value is not populated.
So u can easily fix the source for that.
Regards,
Prakasu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Hema,
I normally open the source message in XML Spy (another XML editor might work as well) and try to find records that look different than expected (missing fields, incorrect qualifiers, ...). You can also try to created a simple xslt that extracts the company from the source XML in the same way the mapping in PI does, and run that in an external tool to find the record that's causing the problems.
Kind regards,
Koen
Ria,
I mean that you can create an XSLT to extract the data that you use to populate your customer field from the XML file. This can sometimes help to spot the problem.
You can also use the different views available in XML spy to just look through the source XML and see if you can find one (or more) records that look different from the rest.
Kind regards,
Koen
Hi Ria,
There is no other way, there is some problem with the payload. Use bianry search technique i.e copy the payload into word or notepad. Take first of & test if there is no error then take another half & test it in the message mapping. In this way within 10 or 20 attempts you will come to know where exactly is the error in the payload.
Regards,
Santhosh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
In that case, check the mapping logic for the node /ns1:HR_EmpDetails_MT/Record1474/Company, it may be getting a SUPPRESSED value that is why it is throwing an error.
Hope this helps,
Regards,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.