cancel
Showing results for 
Search instead for 
Did you mean: 

EXCEPTION_DURING_EXECUTE and Cannot create target element ?

Former Member
0 Kudos

hi experts

i got error in jdbc to idoc scenario (PI 7.1 sp7)

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>

- <!-- Request Message Mapping

-->

- <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">

<SAP:Category>Application</SAP:Category>

<SAP:Code area="MAPPING">EXCEPTION_DURING_EXECUTE</SAP:Code>

<SAP:P1>com/sap/xi/tf/_mm_avabtis_to_ps_</SAP:P1>

<SAP:P2>com.sap.aii.mappingtool.tf7.IllegalInstanceExcepti</SAP:P2>

<SAP:P3>on: Cannot create target element /ZENTITY. Values</SAP:P3>

<SAP:P4>missing in queue context. Target XSD requires a v~</SAP:P4>

<SAP:AdditionalText />

<SAP:Stack>Runtime exception occurred during application mapping com/sap/xi/tf/_mm_avabtis_to_ps_; com.sap.aii.mappingtool.tf7.IllegalInstanceException: Cannot create target element /ZENTITY. Valuesmissing in queue context. Target XSD requires a v~</SAP:Stack>

<SAP:Retry>M</SAP:Retry>

</SAP:Error>

jdbc struc

jdbcdt->

row -->

comp

plant

dept

entype

entity

endesc

glcode

Idoc struc

zentity root--> (mapped to jdbcdt)

idoc

begin -


>( constant value 1)

edi_dc40---->(Disabled Total segment)

z1entity -


>(Mapped to Row)

segment -


>(Constant value 1)

comp

plant

dept

entype

entity

endesc

glcode

please help me out.

Accepted Solutions (0)

Answers (6)

Answers (6)

Former Member
0 Kudos

Hi

Problably the error could be the structure need this Element.(ZENTITY)

So maybe you no generated the value for this segment, check the context o check if the value from the source exist.

former_member185881
Active Participant
0 Kudos

Hi Praveen

I believe no need to map ZENTITY, Just map row with IDOC. now i dont think you will get this error.

If any other error comes let me know i ll try to solve for that you would have to use some functions.

Regards

Dheeraj Kumar

former_member183908
Active Contributor
0 Kudos

Hi

-->In your IDOC do you have any other segments which are mandatory?Please do recheck your IDOC structure and check for the mandatory segments and assgin them with the constant value 1.

-->The error seems to be the mandatory segment value is not mapped.

Thanks

former_member200962
Active Contributor
0 Kudos

I think ZENTITY is the root node of your RFC.....which is having 1..1 occurence....if this is the case you do not need to map anything to the ZENTITY node......not even to jdbcdt.....if you want to confirm...in your MM remove the mapping for ZENTITY....even then you will see that the node has a green-symbol (as against the red symbol).....so in such cases no need to map it....

Regards,

Abhishek.

Former Member
0 Kudos

Hi,

Test Your Scenario in this style

/people/michal.krawczyk2/blog/2005/09/16/xi-how-to-test-your-mapping-in-real-life-scenarios

Regards

Seshagiri

Former Member
0 Kudos

Praveen,

It says Cannot create target element /ZENTITY. So in your idoc please see why this is not creating. Probably a mandatory segment or field is missing. Take the payload before message mapping from moni and check the mapping.

It will fail in your test also with the same issue. You need to fix it.

Regards,

---Satish