cancel
Showing results for 
Search instead for 
Did you mean: 

Mapping Issues for EDI to Message Type

nidhi_srivastava22
Active Contributor
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Muniyappan
Active Contributor
0 Kudos

can you please paste the error description here?

nidhi_srivastava22
Active Contributor
0 Kudos

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

Muniyappan
Active Contributor
0 Kudos

This error should not come as From is optional.

have you made it mandatory before?

can you check the cache notification in ESR by selecting environment menu

nidhi_srivastava22
Active Contributor
0 Kudos

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

yeeloon-khoo
Explorer
0 Kudos

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