on 01-24-2007 10:52 AM
Hi,
well i am sending an IDoc as i did some times before via XI to the client.
Funny thing is that now it's the first time the MM is not able to handle empty fields from sender.
I configured the target DT and the field 'co' from IDoc for occurrence with 0..1 but when i test the MM with the given XML-Structure from SXMB_MONI i am getting following ERROR:
<b>Cannot produce target element /ns0:MT_Certificate/recordType2A/co. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd</b>
This field is the first one which is empty in the sent IDoc - but i have no clue why the is a problem because i did this some times before and it all works and i havn't done anything wrong - i hope.
So do u have an idea?!
br, Jens
Hi,
Looks like there is some mandatory field which is dependent on this field.
When the Idoc does not populate a field, the field does not reach XI .
When you test the same with the mapping editor, the field will be <fieldname> </fieldname> and so , maybe it gets mapped to a blank.
Use MAPWITHDEFAULT to handle 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.
Jese,
I explained it above, but let me try to put it better.
MAPWITHDEFAULT is used to check if a the source field exists. if it exists then it maps the source with the field else it maps the default value to the target field.
When a field is not populated by an idoc, the field is not a part of your XML strucuture itself. In your mapping, the field for which you have used MAPWITHDEFAULT I guess has a occurence of 1..1 and so, as the source field does not come in the Idoc, the mapping fails and this is now handled with mapwithdefault.
Hope this helps,
Regards
Bhavesh
Hi,
First reactivate the mapping , then test .
Check the mapping in runtime environment or take the source from SXMB_MONI and place in mapping , test.
Here if any manadatory field is depended on this empty field existed, then also this type errors come.
Check that,did you configured co field with any mapping functions,if you used any functions then check with Display queue for each one.
if possible please provide the structure.
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 Jen,
In the message mapping check the mapping for source and target Node level mapping..
This error comes because of node level mapping is not done properly...
and also test the mapping with test data..
thanks
sridhar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jens,
plz check the message mapping at repository with test function and full trace. Copy the source message from SXMB_MONI. Do you get same result? May be some confusion, with refered Msg Type or versions of the mapping? Plz control the MONI trace: Is the right mapping executed? Plz check the referred Msg Types at Repository: Is that the right type, where the field is optional?
Regards,
Udo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
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.