on 12-22-2015 3:27 PM
Hi Experts,
I am working on AS2 to Mail scenario. I am trying to do mapping as mentioned below -
Source - 864_5010
Target - General Message Type(manually created)
***When I am trying to map the root node to each other and all other fields to constant, the mapping is working fine at runtime.
***When I am trying to map the target fields in the message type to source fields(not constant) , then it is failing in runtime. Testing through ESR is working fine but end to end it is failing in mapping.
I am not sure why it is failing at runtime when it is working fine in ESR?
Can you please suggest what could be the issue?
Thanks,
Nidhi Srivastava
can you please paste the error description here?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Muni,
PFB the error description -
Mapping "http://olympusamerica.com/B2B/ANSIX12/864/OM_864_MAIL" failed to execute: MappingException: Mapping failed in runtimeRuntime Exception when executing application mapping program com/sap/xi/tf/_mm_864_mail_XXX_; Details: com.sap.aii.mappingtool.tf7.IllegalInstanceException; Cannot create target element /ns1:mt_mail/From. Values missing in queue context. Target XSD requires a value for this element, but the target-field mapping does not create one. Check whether the XML instance is valid for the source XSD, and whether the target-field mapping fulfils the requirement of the target XSD, ApplicationRuntimeException: Runtime Exception when executing application mapping program com/sap/xi/tf/_mm_864_mail_XXX_; Details: com.sap.aii.mappingtool.tf7.IllegalInstanceException; Cannot create target element /ns1:mt_mail/From. Values missing in queue context. Target XSD requires a value for this element, but the target-field mapping does not create one. Check whether the XML instance is valid for the source XSD, and whether the target-field mapping fulfils the requirement of the target XSD, IllegalInstanceException: Cannot create target element /ns1:mt_mail/From. Values missing in queue context. Target XSD requires a value for this element, but the target-field mapping does not create one. Check whether the XML instance is valid for the source XSD, and whether the target-field mapping fulfils the requirement of the target XSD
When I am taking the same payload and testing in ESR Mapping, it is working perfectly fine and I am getting output as well. But, at runtime it is failing.
Please suggest.
Thanks,
Nidhi Srivastava
Yes, But I am mapping it to one of the field which is coming in the source payload.Also, it is working perfectly fine in Test Tab of ESR mapping, but failing at runtime.
It is working fine at runtime when I am mapping it to CONSTANT or making it an optional field.
But, I am not sure what could be the reason of this issue?
Please suggest.
Thanks,
Nidhi Srivastava
Failed in runtime mean the X12 msg pickup by b2b edi separator adapter, converted to XML payload at runtime, then fail with this error? then you take the same converted xml payload manually test in MM is working fine?
Try run in OM level, not MM, and try run in ID "Test Configuration", see any different.
Regards,
Yee Loon
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
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.