Cannot create target element(Runtime exception occurred during application

Hi ,
this is IDOC TO HTTP Scenario. in error description it is shoein g below error.
Runtime exception occurred during application
Cannot create target element (inbound)
please advice
thank you.

Copy the payload from sxmb_moni and test it in the mapping tool using debug mode. I suspect some mandatory elements in target structure requires value but it is missing during mapping. Sometime sender data structure due to values are not getting at runtime does not create target structure element. Check all the individual fields in the mapping tool.

Similar Messages

  • Reg: Runtime exception occurred during application mapping

    Dear SAP Gurus,
    This is Amar Srinivas Eli working currently on SOAP to SOAP Scenario on PI 7.1 Server.
    I Would like to inform you that I have done all steps regarding DESIGN and CONFIG and also regarding SERVICE REGISTRY part successfully.
    While Testing the data in the WS Navigator by giving the input parameters I am getting an error that
    *<?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="1">
      <SAP:Category>Application</SAP:Category>
      <SAP:Code area="MAPPING">EXCEPTION_DURING_EXECUTE</SAP:Code>
      <SAP:P1>com/sap/xi/tf/_HRS_LISTReferral_Response_MM_</SAP:P1>
      <SAP:P2>com.sap.aii.mappingtool.tf7.IllegalInstanceExcepti</SAP:P2>
      <SAP:P3>on: Cannot create target element /ns1:PI_ListRefer</SAP:P3>
      <SAP:P4>ral_Response_MT. Values missing in queue context.~</SAP:P4>
      <SAP:AdditionalText />
      <SAP:Stack>Runtime exception occurred during application mapping com/sap/xi/tf/_HRS_LISTReferral_Response_MM_; com.sap.aii.mappingtool.tf7.IllegalInstanceException: Cannot create target element /ns1:PI_ListReferral_Response_MT. Values missing in queue context.~</SAP:Stack>
      <SAP:Retry>N</SAP:Retry>
      </SAP:Error>
    These are the steps I did while implementing..
    1. Importing the XSD's successfully
    2. Developed the design and config part and also checked nearly 3-4 times regarding both REQ and
        RESPONSE Mappings.
    3. I already checked the link of WSDL once again...
    4. Even I found REsponse Interface once again...
    Still I am not getting where the error was ? Please guide me in detail in a right way in this issue.
    Regards:
    Amar Srinivas Eli
    Edited by: Amar Srinivas Eli on Jan 13, 2009 7:53 AM

    Hello,
    I already checked all those queues and context fields////
    Based on my Observation I found
    1) As I am unable to view the SOAP BODY I increased the RUN TIME Trace Level to 3 and LOG_VAlue to 3
    2) ANother most Important that I found later doing these settings are....
        I found Receiver Pay LOAD and I copied that entire pay load and pasted it in
        REceiver Message Mapping> Test Tab and Code->PASTED...and compared all those parameters
        in the TEST TAB and DEFINITION TAB in Tree View whether all the mandatory receiver mapped
        elements are  coming I mean passing from source or not...
    OBSERVATION::
    I found that for nearly 3 fields there is a difference when I compared on Tree View in DEFINITION TAB and also parallely in the TEST TAB Tree View which I got by copied from MONI,,,,
    see for example ::
    CENTRE <----
    > DISCHARGE DATE..
    For going to CENTRE..here I found that in DEfiniition TAB...
    Control Act Event-->Subject->document-->Component>Structured body> component> Section>Component>PatientCareProvisionEvent->EffectiveTime-->CENTRE
    But immediately I have gone to TEST TAB and TREE VIEW and I found that respective field CENTRE is posting I mean passing any value or parameter to Discharged Date or not...
    But I found that...
    Control Act Event-->Subject->document-->Component>Structured body> component> Section>Component-->_PatientCareProvisionEvent_
    This Implies that Effective Time and Centre are missing in the XML and I mean no values are passing to receiver right..
    In PI XSD 's it is there but in I think after Compiling REQUEST MAPPING and while in returning to RESPONSE MAPPING I mean whenever the Response is posting to SOAP WEBSERVICE it is unable to found those target elements and I think due to this...
    Am I Correct ?
    If that is the case...Let me know where the issue is whether in the data present in the WEBSERVICE created on target side or in PI Side..any issue...
    Regards:
    Amar Srinivas Eli
    Edited by: Amar Srinivas Eli on Jan 13, 2009 10:00 AM

  • Runtime exception occurred during application mapping

    Hi All,
    Please find the error message which we are getting:
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--
    Request Message Mapping
      -->
    - <SAP:Error SOAP:mustUnderstand="1" xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/"> 
      <SAP:Category>Application</SAP:Category> 
      <SAP:Code area="MAPPING">EXCEPTION_DURING_EXECUTE</SAP:Code> 
      <SAP:P1>com/sap/xi/tf/_CRM_COD_ProductCategoryHierarchy_R~</SAP:P1> 
      <SAP:P2>com.sap.aii.mappingtool.tf7.IllegalInstanceExcepti</SAP:P2> 
      <SAP:P3>on: Cannot create target element /ns0:ProductCateg</SAP:P3> 
      <SAP:P4>oryHierarchyMassReplicationRequest/ProductCategor~</SAP:P4> 
      <SAP:AdditionalText /> 
      <SAP:Stack>Runtime exception occurred during application mapping com/sap/xi/tf/_CRM_COD_ProductCategoryHierarchy_R~; com.sap.aii.mappingtool.tf7.IllegalInstanceException: Cannot create target element /ns0:ProductCategoryHierarchyMassReplicationRequest/ProductCategor~</SAP:Stack> 
      <SAP:Retry>M</SAP:Retry> 
      </SAP:Error>
    Please give your expert Advice on the same.
    Regards
    RK

    Dear Rableen,
    As Muniyappan and peter told about the mandatory field value is missing for the target element
    "/ns0:ProductCategoryHierarchyMassReplicationRequest/ProductCategor", I am able to see other fields are also not getting input data.
    as below
    "Cannot create target element /ns0:ProductCateg"
    Request you to test with the payload in message mapping and activate the message mapping first and then edit your operation mapping and call the same message mapping in your operation mapping and activate all your objects.
    Thank you!
    Regards
    Hanumantha Rao

  • Runtime exception occurred during application mapping in SAP PI

    Hi Team,
    Please help me regarding this issue is very urgent:
    Runtime Error in configuration part:
    Here i test the XML message in Receiver Determintion:
    Below i am getting error:
    Runtime exception occurred during application mapping com/sap/xi/tf/_MaterialStockUpdate_Multi_AllPlant~; com.sap.aii.utilxi.misc.api.BaseRuntimeException:The processing instruction target matching "[xX][mM][lL]" is not allowed
    SXMB_MONI:
    I am getting below error:
    Runtime exception occurred during application mapping

    Hi,
    Actually my problem is what i am getting,I am trying to test the data in runtime workbench and configuration part copied from inbound payload XML structure .
    I already sent the screenshots of above errors,
    Configuartion:
    Runtime workbench:
    This the error i am getting below in "Runtime Workbench"
    Error While Sending Message: Additional error text from response: com.sap.engine.interfaces.messaging.api.exception.ConfigException: ConfigException in XI protocol handler. Failed to determine a receiver agreement for the given message. Root cause: com.sap.aii.af.service.cpa.CPAObjectNotFoundException: Couldn't retrieve outbound binding for the given P/S/A values: FP=;TP=;FS=MHEPL_Sandbox_100;TS=;AN=MaterialStockUpdate_Multi_AllPlants_N;ANS=http://www.manipalhospitals.com/his/mm; in the current context [Unknown].

  • Runtime exception occurred during application mapping "EXCEPTION_DURING_EX"

    Hi Gurus,
    I am getting following error in MONI:
    SAP:Code area="MAPPING">EXCEPTION_DURING_EXECUTE</SAP:Code>
      <SAP:P1>com/sap/xi/tf/_MM_MDM_CMS_Backfeed_Group_</SAP:P1>
      <SAP:P2>com.sap.aii.mappingtool.tf7.MessageMappingExceptio</SAP:P2>
      <SAP:P3>n: Runtime exception when processing target-field</SAP:P3>
      <SAP:P4>mapping /ns0:BackfeedGroup/group/MasterId; root m~</SAP:P4>
      <SAP:AdditionalText />
      <SAP:Stack>Runtime exception occurred during application mapping com/sap/xi/tf/_MM_MDM_CMS_Backfeed_Group_; com.sap.aii.mappingtool.tf7.MessageMappingException: Runtime exception when processing target-fieldmapping /ns0:BackfeedGroup/group/MasterId; root m~</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    I have tried to refresh the mapping cache and restart the message but stil this message persists.
    For me it seems an issue with a wrong mapping or some wrong value in the inbound scenario.
    Please suggest if any one of you had come across this error before.
    With Reg,
    Vikash

    Hi Vikash
    Whenever you have a problem in your mapping you will get this kind of error in monitoring
    According to your log the problem is in parameter  /ns0:BackfeedGroup/group/MasterId
    First of all check your mapping. If it is fine than check the value of this parameter from your payload.
    Also try to copy your xml and test the mapping in IR. Check wether you are getting same error there .
    If same error comes than try to manipulate the value of that field and try the same test again
    Regards,
    Shradha

  • Cannot create target element /Invoice. Values missing in queue context.

    Hi Experts,
    I am working on Idoc to File scenario using SAP PI 7.1. In this scenario I am mapping Invoic02 Idoc with Invoice xsd. I am able to test the mapping in ESR with status as success.
    In ID Tools --> Test Configuration I used the same payload and tried testing the configuration step by step. while executing I am getting an error at Operation Mapping saying "Runtime exception occurred during application mapping com/sap/xi/tf/_MM_SRM_Hubwoo_Invoice_; com.sap.aii.mappingtool.tf7.IllegalInstanceException: Cannot create target element /Invoice. Valuesmissing in queue context. Target XSD requires a v~"
    Even though the mapping is getting executed successfully in ESR, I am not able to fix this issue. Need your inputs in resolving the same.
    Regards,
    Saurabh
    Edited by: saurabh mathure on Oct 16, 2010 8:14 AM

    Hi ,
    issue"Can not create the target element   value missing the queue context'.
    reason for this issue:
    Target field expecting some value from sender field. so in testing your not getting  any data from source field  for this reason your getting that issue.
    Solution:
    In mapping use node function:Mapwith deafault between source and taget fileds.
    Then activate mapping . now excute the scenario it  will properly without that issue.
    Cheers,
    Meera

  • EXCEPTION_DURING_EXECUTE and Cannot create target element ?

    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.

    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

  • Cannot create target element/ns1:MT_CONTRACT.Value missing in queue context

    Hi Friends,
    AgrmntID,Company_Code,Vendor_No,PurDoc_Type,ValidPeriod_Start,ValidPeriod_End,Pur_Group,Currency,Incoterms,Item_Cat,Tax_Code,Part_No,Document_Desc,Net_Price,Tgt_Qty,Price_Unit,Plant,Price_Revision
    002,UBUK,1568956,LP,16.02.2011,16.02.2012,3P,GBP,FOB ,D,V1,5100000102515,CARD-Twiglets Original 45g x 12,0,1,10,AM04,N
    002,UBUK,1568956,LP,16.02.2011,16.02.2012,3P,GBP,FOB ,D,V1,5100000102515,CARD-Twiglets Original 45g x 12,0,1,10,AM04,N
    002,UBUK,1568956,LP,16.02.2011,16.02.2012,3P,GBP,FOB ,D,V1,6000005,CARD-Twiglets Original 45g x 12,0,125.00,145,AN03,N
    002,UBUK,1568956,LP,16.02.2011,16.02.2012,3P,GBP,FOB ,D,V1,5100000102515,CARD-Twiglets Original 45g x 12,0,1,10,AM04,N
    002,UBUK,1568956,LP,16.02.2011,16.02.2012,3P,GBP,FOB ,D,V1,6000005,CARD-Twiglets Original 45g x 12,0,125.00,145,AN03,N
    that is csv file am trying to convert to xml. but am getting error "Cannot create target element /ns1:MT_CONTRACT. Value missing in queue context."
    my data types is:    MT_CONTRACT_SNDR                                                            MT_CONTRACT
    SUB_ELEMENT:              Recordset                                                                            Recordset
    SUB_ELEMENT:                   Item                                                                                Item
      SUB_ELEMENTS:                    AgrmntID                                                                              AgrmntID
                                                     Company_Code                                                                    Company_Code
                                                     Vendor_No                                                                            Vendor_No
    like this all the 18 elements under Item node. I kept Recordset occurance 0-1 and Item 0-Unbound and all 18subelements as 0-1 in both sender and receiver. And in content conversion:
    Document Name: MT_CONTRACT_SNDR
    Document Offset: 1
    Recordset Structure: Item,*
    Record Sequence: Asending
    Recordsets per Massage: 1
    Key Field Type: String (Case-Sensitive)
    Item.fieldSeperator : ,
    Item.endSeperator: 'nl'
    Item.fieldNames: AgrmntID,Company_Code,Vendor_No,PurDoc_Type,ValidPeriod_Start,ValidPeriod_End,Pur_Group,Currency,Incoterms,Item_Cat,Tax_Code,Part_No,Document_Desc,Net_Price,Tgt_Qty,Price_Unit,Plant,Price_Revision
    KINDLY SUGGEST ME WHAT MISTAKE AM DOING. AM NEW TO SAP PI

    I have this error in audit log. On searching I read that the error is connectivity problem between abap stack and java stack. but I made restart the server but error not cleared. can anyone of you suggest me to solve?
    Audit Log for Message: 7c06ee0d-d70b-406f-07bc-f56228cc1d6a
    Time Stamp Type Description
    10.08.2011 18:05:07 Information RfcAdapter received a asynchronous message. Trying to send tRFC for ZFM_SRM_CONTRACT_CREATE with TID XIV0Rk3TSBG6y7lFLYACmTQW.
    10.08.2011 18:05:07 Information RfcAdapter received a asynchronous message. Trying to send tRFC for J2EE_GUEST with TID XIV0Rk3TSBG6y7lFLYACmTQW.
    10.08.2011 18:05:07 Error Adapter Framework caught exception: error while processing message to remote system:com.sap.aii.adapter.rfc.core.client.RfcClientException: JCO.Exception while calling ZFM_SRM_CONTRACT_CREATE in remote system (RfcClient[CC_Contrct_Recivr]):com.sap.mw.jco.JCO$Exception: (104) RFC_ERROR_SYSTEM_FAILURE: An exception occurred that was not caught.
    10.08.2011 18:05:07 Error Delivering the message to the application using connection RFC_http://sap.com/xi/XI/System failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: com.sap.aii.adapter.rfc.afcommunication.RfcAFWException: error while processing message to remote system:com.sap.aii.adapter.rfc.core.client.RfcClientException: JCO.Exception while calling ZFM_SRM_CONTRACT_CREATE in remote system (RfcClient[CC_Contrct_Recivr]):com.sap.mw.jco.JCO$Exception: (104) RFC_ERROR_SYSTEM_FAILURE: An exception occurred that was not caught..
    10.08.2011 18:05:07 Information The message status was set to WAIT.
    10.08.2011 18:05:07 Information The asynchronous message was successfully scheduled to be delivered at Wed Aug 10 18:10:07 IST 2011.
    10.08.2011 18:10:07 Information The message status was set to TBDL.
    10.08.2011 18:10:07 Information Retrying to deliver message to the application. Retry: 1
    10.08.2011 18:10:07 Information The message was successfully retrieved from the receive queue.
    10.08.2011 18:10:07 Information The message status was set to DLNG.
    Time Stamp Type Description
    10.08.2011 18:10:07 Information Delivering to channel: CC_Contrct_Recivr
    10.08.2011 18:10:07 Information RfcAdapter received a asynchronous message. Trying to send tRFC for ZFM_SRM_CONTRACT_CREATE with TID XIV0Rk3TSBG6y7lFLYACmTQW.
    10.08.2011 18:10:07 Information RfcAdapter received a asynchronous message. Trying to send tRFC for J2EE_GUEST with TID XIV0Rk3TSBG6y7lFLYACmTQW.
    10.08.2011 18:10:08 Error Adapter Framework caught exception: error while processing message to remote system:com.sap.aii.adapter.rfc.core.client.RfcClientException: JCO.Exception while calling ZFM_SRM_CONTRACT_CREATE in remote system (RfcClient[CC_Contrct_Recivr]):com.sap.mw.jco.JCO$Exception: (104) RFC_ERROR_SYSTEM_FAILURE: An exception occurred that was not caught.
    10.08.2011 18:10:08 Error Delivering the message to the application using connection RFC_http://sap.com/xi/XI/System failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: com.sap.aii.adapter.rfc.afcommunication.RfcAFWException: error while processing message to remote system:com.sap.aii.adapter.rfc.core.client.RfcClientException: JCO.Exception while calling ZFM_SRM_CONTRACT_CREATE in remote system (RfcClient[CC_Contrct_Recivr]):com.sap.mw.jco.JCO$Exception: (104) RFC_ERROR_SYSTEM_FAILURE: An exception occurred that was not caught..
    10.08.2011 18:10:08 Information The message status was set to WAIT.
    10.08.2011 18:10:08 Information The asynchronous message was successfully scheduled to be delivered at Wed Aug 10 18:15:08 IST 2011.

  • UDF required !! Cannot create target element Values missing in queue context

    Dear Experts,
    I am getting the cannot create target element error with acknowledgement payload in response message mapping  in synchronous interface. I have shared the response payload2. Please suggest do I need write any UDF.
    Message mapping successful with below payload1:
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:updateOppResponse xmlns:ns0="http://soap.sforce.com/schemas/class/clientUpdateInqWebService">
       <ns0:result>
          <ns0:Description>Record Updated</ns0:Description>
          <ns0:SFDCId>006M0000007xjTrIAI</ns0:SFDCId>
          <ns0:Status>true</ns0:Status>
       </ns0:result>
    </ns0:updateOppResponse>
    With the below target system response message, Mapping failing with Cannot create target element /ns1:MT_InquiryUpdate_ECC_Ack. 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 com.sap.aii.mappingtool.tf7.IllegalInstanceException:
    Actual acknowledgement reply from target system payload2:
    <?xml version="1.0" encoding="UTF-8"?>
    <soapenv:Envelope xmlns="http://soap.sforce.com/schemas/class/clientUpdateInqWebService" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
       <soapenv:Body>
          <updateOppResponse>
             <result>
                <Description>Record Updated</Description>
                <SFDCId>006M0000007xjTrIAI</SFDCId>
                <Status>true</Status>
             </result>
          </updateOppResponse>
       </soapenv:Body>
    </soapenv:Envelope>
    Regards
    RKN

    Hi
    The easiest solution will be , write an simple java map for your response mapping.
    Please provide your target structure , if you need any help on the java mapping.
    Sample code:
    Response message from web service
    target msg:
    java code:
    package com.sap;
    import javax.xml.parsers.DocumentBuilder;
    import javax.xml.parsers.DocumentBuilderFactory;
    import javax.xml.transform.Result;
    import javax.xml.transform.Source;
    import javax.xml.transform.Transformer;
    import javax.xml.transform.TransformerFactory;
    import javax.xml.transform.dom.DOMSource;
    import javax.xml.transform.stream.StreamResult;
    import org.w3c.dom.Document;
    import org.w3c.dom.Element;
    import org.w3c.dom.Node;
    import org.w3c.dom.NodeList;
    import com.sap.aii.mapping.api.AbstractTransformation;
    import com.sap.aii.mapping.api.StreamTransformationException;
    import com.sap.aii.mapping.api.TransformationInput;
    import com.sap.aii.mapping.api.TransformationOutput;
    public class populateResponseMessage extends AbstractTransformation {
          public void transform(TransformationInput arg0, TransformationOutput arg1)
                      throws StreamTransformationException {
                try {
                      DocumentBuilderFactory tfactory = DocumentBuilderFactory
                                  .newInstance();
                      DocumentBuilder tbuilder = tfactory.newDocumentBuilder();
                      Document doc = tbuilder.parse(arg0.getInputPayload()
                                  .getInputStream());
                      Document newdoc = tbuilder.newDocument();
                      Element root = (Element) newdoc.createElementNS(
                                  "urn:sap-com:document:sap:rfc:functions",
                                  "ns1:ZTEST_FAULT_MESSAGE_DATA.Response");
                      newdoc.appendChild(root);
                      NodeList nlList = doc.getElementsByTagName("ConversionRateResult");
                      if (nlList.getLength() != 0 && nlList != null) {
                            Node data = nlList.item(0);
                            String sourceval = data.getTextContent();
                            Element rate = (Element) newdoc.createElement("RATE");
                            rate.setTextContent(sourceval);
                            root.appendChild(rate);
                      Transformer transformer = TransformerFactory.newInstance()
                                  .newTransformer();
                      Source source = new DOMSource(newdoc);
                      Result output = new StreamResult(arg1.getOutputPayload().getOutputStream());
                      transformer.transform(source, output);
                } catch (Exception e) {
                      e.printStackTrace();
          }// end of transform

  • How did i solve "Cannot create target element" but still having problems.

    Hi Experts,
    I solved my problem of "Cannot create target element" by removing of the data type structure the following fields :
    DT_AS400_1 -> Complex Type
    Payroll      1..1   (Should i put 0..0?)
       ->  Row  0..Unbounded And then Fields to be passed.
    I can't figure how pi can't detect the fields, i use them pretty often.
    Any Suggestions,
    Thanks for your help,
    Regards,
    Steve.

    Hi Steve,
    Check if input message, has the field that is producing the output.
    Therefore, if you don't have any input to fill the structure root, you can fill it with an empty constant.
    Best regards,
    Pedro M. D. Pereira
    Edited by: Pedro Pereira on Jun 10, 2010 1:26 AM

  • Cannot create target element /ns0 Values missing in queue context

    Hi Sdn,
    When I am testing the Message mapping in PI i am getting the below error message .
    Cannot create target element /ns0:TechObjChange. 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 See error logs for details
    Could you please tel me what would be the wrong.
    below is the XML file data .
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:TechObjChange xmlns:ns0="http://schemas.xxxxx.com/iiiii/xxxxxx">
       <TechObjChangeFLEQ>
          <FormType/>
          <FunctionalLocation/>
          <Descoffunctionalloc/>
          <Equipment/>
          <DescofEquipment/>
          <StartupDateofTechObj/>
          <Manufacturer/>
          <Manufacturermodelnumber/>
          <Manufacturerpartnumber/>
          <Manufacturerserialnumbe/>
          <Countryofmanufacture/>
          <Yearofconstruction/>
          <Monthofconstruction/>
          <TypeofTechObject/>
          <PlannerGroup/>
          <MainWorkCenter/>
          <CatalogProfile/>
          <NameofUserchangingtheobject/>
          <Characteristic>
             <CharacteristicName/>
             <Characteristicvalue/>
          </Characteristic>
          <MeasuringPoint>
             <MeasurementPosition/>
             <Characteristic/>
             <MeasurementPoint/>
             <MeasuringPointAsIs/>
             <MeasuringPointAsLeft/>
             <PCTCodeGroupMP/>
             <PCTCodeMP/>
          </MeasuringPoint>
       </TechObjChangeFLEQ>
    </ns0:TechObjChange>

    WSDL structure
    WSDL structure
    <wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://schemas.xxxxxxxx">
       <wsdl:types>
          <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:p0="http://schemas.xxxxxxxxx" targetNamespace="http://schemas.xxxxxxxxxx">
             <xsd:element name="TechObjChange">
                <xsd:complexType>
                   <xsd:sequence>
                      <xsd:element name="TechObjChangeFLEQ">
                         <xsd:complexType>
                            <xsd:sequence>
                               <xsd:element name="FormType" type="xsd:string" minOccurs="0" />
                               <xsd:element name="FunctionalLocation" type="xsd:string" minOccurs="0" />
                               <xsd:element name="Descoffunctionalloc" type="xsd:string" minOccurs="0" />
                               <xsd:element name="Equipment" type="xsd:string" minOccurs="0" />
                               <xsd:element name="DescofEquipment" type="xsd:string" minOccurs="0" />
                               <xsd:element name="StartupDateofTechObj" type="xsd:string" minOccurs="0" />
                               <xsd:element name="Manufacturer" type="xsd:string" minOccurs="0" />
                               <xsd:element name="Manufacturermodelnumber" type="xsd:string" minOccurs="0" />
                               <xsd:element name="Manufacturerpartnumber" type="xsd:string" minOccurs="0" />
                               <xsd:element name="Manufacturerserialnumbe" type="xsd:string" minOccurs="0" />
                               <xsd:element name="Countryofmanufacture" type="xsd:string" minOccurs="0" />
                               <xsd:element name="Yearofconstruction" type="xsd:string" minOccurs="0" />
                               <xsd:element name="Monthofconstruction" type="xsd:string" minOccurs="0" />
                               <xsd:element name="TypeofTechObject" type="xsd:string" minOccurs="0" />
                               <xsd:element name="PlannerGroup" type="xsd:string" minOccurs="0" />
                               <xsd:element name="MainWorkCenter" type="xsd:string" minOccurs="0" />
                               <xsd:element name="CatalogProfile" type="xsd:string" minOccurs="0" />
                               <xsd:element name="NameofUserchangingtheobject" type="xsd:string" minOccurs="0" />
                               <xsd:element name="Characteristic" minOccurs="0" maxOccurs="unbounded">
                                  <xsd:complexType>
                                     <xsd:sequence>
                                        <xsd:element name="CharacteristicName" type="xsd:string" minOccurs="0" />
                                        <xsd:element name="Characteristicvalue" type="xsd:string" minOccurs="0" />
                                     </xsd:sequence>
                                  </xsd:complexType>
                               </xsd:element>
                               <xsd:element name="MeasuringPoint" minOccurs="0" maxOccurs="unbounded">
                                  <xsd:complexType>
                                     <xsd:sequence>
                                        <xsd:element name="MeasurementPosition" type="xsd:string" minOccurs="0" />
                                        <xsd:element name="Characteristic" type="xsd:string" minOccurs="0" />
                                        <xsd:element name="MeasurementPoint" type="xsd:string" minOccurs="0" />
                                        <xsd:element name="MeasuringPointAsIs" type="xsd:string" minOccurs="0" />
                                        <xsd:element name="MeasuringPointAsLeft" type="xsd:string" minOccurs="0" />
                                        <xsd:element name="PCTCodeGroupMP" type="xsd:string" minOccurs="0" />
                                        <xsd:element name="PCTCodeMP" type="xsd:string" minOccurs="0" />
                                     </xsd:sequence>
                                  </xsd:complexType>
                               </xsd:element>
                            </xsd:sequence>
                         </xsd:complexType>
                      </xsd:element>
                   </xsd:sequence>
                </xsd:complexType>
             </xsd:element>
          </xsd:schema>
       </wsdl:types>
       <wsdl:message name="TechObjChange">
          <wsdl:part xmlns:p4="http://schemas.xxxxxxx" name="TechObjChange" element="p4:TechObjChange" />
       </wsdl:message>
    </wsdl:definitions>

  • Runtime exception occurred during execution of application mapping program

    Hi all
    while testing intergase mapping i am getting this error----->
    com/sap/xi/tf/_XI_FI_BAPI_CC_DOCUMENT_POST_REQ_MM:
    com.sap.aii.utilxi.misc.api.BaseRuntimeException;RuntimeException in Message-Mapping transgormation:Runtime exception during processing target field mapping
    /ns1:BAPI_ACC_DOCUMENT_POST/DOCUMENTHEADER/HEADER_TXT. THE message is:Exception:[java.lang.NullPointerException] in class com.sap.aii.mappingtool.flib3.TextFunction s method substring [null,com.sap.aii.mappingtool.tf3.rt.Context@2388897239]
    I had used  in the message mapping two user defined function scan you please look into the user defined functions, getPriviousMounthLastDate and  FileName in the mapping for the target DocDate field
    ihave used even this getPriviousMounthLastDate user defined function before using FileName
    this is  the code of  userdefined function  getPriviousMounthLastDate
    Calendar cal = Calendar.getInstance();
    SimpleDateFormat output = new SimpleDateFormat("yyyyMMdd");
    cal.add(Calendar.MONTH,1);
    cal.set(Calendar.DAY_OF_MONTH,1);
    cal.add(Calendar.MONTH,-1);
    cal.add(Calendar.DATE,-1);
    StringBuffer dateBuffer = new StringBuffer();
    output.format(cal.getTime(),dateBuffer,new FieldPosition(0));
    return dateBuffer;
    this is the code of  userdefined function FileName
    DynamicConfiguration conf = (DynamicConfiguration) container
    .getTransformationParameters()
    .get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create(
    "http://sap.com/xi/XI/System/File",
    "FileName");
    String valueOld = conf.get(key);
    return valueOld;
    thanks sandep
    Edited by: sandeep pendyala on Feb 6, 2008 6:52 AM

    Hi Sandeep,
                     please check the trace file in SXMB_MONI,
                     which is avialble in response node.
                      if you analyze the trace, u can find-out....
                     error happend because of ehich field.
                    first copy the inbound xml from MONI and test it at message mapping.
                     then also, u can find-out the error.
    regards
    mahesh.

  • Exception occuring during Application exit.Help needed fast

    The Error attached is printed on the console when I exit my Application.My Application is Swing application which reads two or more xml schemas at a time from a local directory and displays the schemas in Tree like structure using JTree,so that mapping can be done using java drag-n-drop apis.
    But during System.exit(1) (on Application Close) the exception Attached gets printed.I have invoked Syste.gc() to enforce garbage collection but to no effect.Please help to solve this problem.
    Thanks
    Pallav
    --ERROR printed on console
    An unexpected exception has been detected in native code outside the VM.
    Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x0
    Function name=(N/A)
    Library=(N/A)
    NOTE: We are unable to locate the function name symbol for the error
    just occurred. Please refer to release documentation for possible
    reason and solutions.
    Current Java thread:
         at sun.awt.windows.WToolkit.eventLoop(Native Method)
         at sun.awt.windows.WToolkit.run(WToolkit.java:183)
         at java.lang.Thread.run(Thread.java:479)
    Dynamic libraries:
    0x00400000 - 0x00405000      S:\software\jdk1.3.1_06\bin\java.exe
    0x77F80000 - 0x77FF9000      C:\WINNT\System32\ntdll.dll
    0x77DB0000 - 0x77E0A000      C:\WINNT\system32\ADVAPI32.dll
    0x77E80000 - 0x77F36000      C:\WINNT\system32\KERNEL32.DLL
    0x77D40000 - 0x77DAF000      C:\WINNT\system32\RPCRT4.DLL
    0x78000000 - 0x78046000      C:\WINNT\system32\MSVCRT.dll
    0x6D420000 - 0x6D4F9000      S:\software\jdk1.3.1_06\jre\bin\hotspot\jvm.dll
    0x77E10000 - 0x77E75000      C:\WINNT\system32\USER32.dll
    0x77F40000 - 0x77F7C000      C:\WINNT\system32\GDI32.DLL
    0x77570000 - 0x775A0000      C:\WINNT\System32\WINMM.dll
    0x6D220000 - 0x6D227000      S:\software\jdk1.3.1_06\jre\bin\hpi.dll
    0x6D3B0000 - 0x6D3BD000      S:\software\jdk1.3.1_06\jre\bin\verify.dll
    0x6D250000 - 0x6D266000      S:\software\jdk1.3.1_06\jre\bin\java.dll
    0x6D3C0000 - 0x6D3CD000      S:\software\jdk1.3.1_06\jre\bin\zip.dll
    0x6D020000 - 0x6D12A000      S:\software\jdk1.3.1_06\jre\bin\awt.dll
    0x77800000 - 0x7781D000      C:\WINNT\System32\WINSPOOL.DRV
    0x75E60000 - 0x75E7A000      C:\WINNT\System32\IMM32.dll
    0x77A50000 - 0x77B45000      C:\WINNT\system32\ole32.dll
    0x6D1E0000 - 0x6D21B000      S:\software\jdk1.3.1_06\jre\bin\fontmanager.dll
    0x10000000 - 0x10007000      D:\Program Files\Yahoo!\Messenger\idle.dll
    0x72800000 - 0x72846000      C:\WINNT\System32\ddraw.dll
    0x728A0000 - 0x728A6000      C:\WINNT\System32\DCIMAN32.dll
    0x0D4F0000 - 0x0D503000      D:\PROGRA~1\INCRED~1\bin\ImHook.dll
    0x779B0000 - 0x77A45000      C:\WINNT\system32\OLEAUT32.dll
    0x6D340000 - 0x6D348000      S:\software\jdk1.3.1_06\jre\bin\net.dll
    0x75050000 - 0x75058000      C:\WINNT\System32\WSOCK32.dll
    0x75030000 - 0x75044000      C:\WINNT\System32\WS2_32.DLL
    0x75020000 - 0x75028000      C:\WINNT\System32\WS2HELP.DLL
    0x77840000 - 0x7784C000      C:\WINNT\System32\rnr20.dll
    0x77980000 - 0x779A4000      C:\WINNT\System32\DNSAPI.DLL
    0x777E0000 - 0x777E8000      C:\WINNT\System32\winrnr.dll
    0x77950000 - 0x77979000      C:\WINNT\system32\WLDAP32.DLL
    0x777F0000 - 0x777F5000      C:\WINNT\System32\rasadhlp.dll
    0x77830000 - 0x7783E000      C:\WINNT\System32\RTUTILS.DLL
    0x74FD0000 - 0x74FE1000      C:\WINNT\system32\msafd.dll
    0x75010000 - 0x75017000      C:\WINNT\System32\wshtcpip.dll
    0x6D2C0000 - 0x6D2DB000      S:\software\jdk1.3.1_06\jre\bin\jpeg.dll
    0x77920000 - 0x77942000      C:\WINNT\system32\imagehlp.dll
    0x72A00000 - 0x72A2D000      C:\WINNT\system32\DBGHELP.dll
    0x690A0000 - 0x690AB000      C:\WINNT\System32\PSAPI.DLL
    Local Time = Thu May 29 17:43:20 2003
    Elapsed Time = 396
    # The exception above was detected in native code outside the VM
    # Java VM: Java HotSpot(TM) Client VM (1.3.1_06-b01 mixed mode)

    to bbritta,
    Sorry it did not help.By the way i am using windows 2000 Server.Application Server is Weblogic 7.0.No exception is shown in the Weblogic console also.
    There is no problem in drawing of maps.Drag-n-Drop is working perfectly.But during application exit this errors occuring.
    Thanks for your attempt.
    Pallav

  • ERROR Cannot create target (optional) element - SUPPRESS value

    HI, XI/PI experts!
    I am new in PI 7.1 (Ehp1 SP 7), previously work with PI 7.0.
    I faced with problem of mapping optional target element, when queue has just SUPPRESS element. I expected to suppressing mapping of the target element, but mapping program raise exception:
    Cannot create target element
    /ns0:Messages/ns0:Message1/MT_DiadocMethods/ConnectInfo/TraceInfo/Folder.
    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
    XSD Folder declaration:
    <xsd:element name="Folder" type="xsd:string" minOccurs="0">
                <xsd:annotation>
                   <xsd:documentation>
                   u043Au0430u0442u0430u043Bu043Eu0433 u0434u043Bu044F u0442u0440u0430u0441u0438u0440u043Eu0432u043Au0438 u0447u0435u0440u0435u0437 u0444u0430u0439u043Bu044B
                   </xsd:documentation>
                </xsd:annotation>
             </xsd:element>
    [http://imagepost.ru/?v=queue_for_optional_element_fol.PNG|http://imagepost.ru/?v=queue_for_optional_element_fol.PNG]
    If put mapWithDeffault with value "hello" between ifWithoutElse and target element Folder, then exceptions not raised, but target element also not created
    15:53:03 Start of test
    Compilation of MM_Diadoc_DownloadNewEvents__DiadocMethods_q successful
    Document start
    Start tag [ns0:Messages]
    Add raw attribute [ xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge"]
    Start tag [ns0:Message1]
    Start tag [MT_DiadocMethods]
    Start tag [ConnectInfo]
    Start tag [trace_level]
    Put value [4]
    Close tag [trace_level]
    Start tag [TraceInfo]
    Start tag [TraceViaMail]
    Close tag [TraceViaMail]
    Close tag [TraceInfo]
    Close tag [ConnectInfo]
    Close tag [MT_DiadocMethods]
    Close tag [ns0:Message1]
    Close tag [ns0:Messages]
    Document end
    Execution of mapping on server took 1160 milliseconds Executed successfully
    15:53:05 End of test
    <Display Queue> show that queue after mapWithDeffault has <null> value:
    [http://imagepost.ru/?v=mapwithdeffault.PNG|http://imagepost.ru/?v=mapwithdeffault.PNG]
    Inserting mapWithDeffault is workaround for this situation, but I am interesting to understand principle of SUPPRESS in 7.1
    Thanks in advance and sorry for my English !

    Hi,
    To understand the Suppress you can refer the below blog
    /people/stefan.grube/blog/2006/01/09/the-use-of-suppress-in-the-xi-30-graphical-mapping-tool

  • Unable to create Target Element error

    Hi Experts,
    I have Source and taget messages as below:
    Target Structure
    MT_Table----
                1:1
    Row--
    0..unbound
    -Field1--
    1.1
    -Field2--
    1.1
    -Field3--
    1.1
    -Field4--
    1.1
    Source is IDOC
    ZMaterial----
    1.1
    IDOC--
    1.1
    -Begin--
    Req
    ---EDIDC40
    Segement---1.1
    Table----
    1.1
    -E1MARAM-1.999
    -SEGMENNT--0..999
    Field1-------0..1
    Field2-------0..1
    I will have multiple IDOCs where I need to generate Multiple rows in a file:
    I am getting an error as below:
    Start of test
    Cannot create target element /ns0:MT_Table/Row[2]/Field1. 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
    I have a condition if SEGMENT-Field1 equals A then substring of SEGMENT-Field2 (first 16 characters).
    Many Thanks
    Rajeev

    I see the Source Message is as below:
    <?xml version="1.0" encoding="UTF-8" ?>
    <ZMaterial>
    +<IDOC BEGIN = "1">
    +<IDOC BEGIN = "1">
    +<IDOC BEGIN = "1">
    </ZMaterial>
    Dont know how to get multiple rows in a file with multiple IDOCs.
    Any Light please?
    Thanks
    Rajeev

Maybe you are looking for

  • Problem in parsing XML using DOM Parser.

    Hi, I am parsing an XML using DOM Parser. When i try to get attributes of a node, i dont get in the order it is written. For Eg. This the node: <Level0 label="News" link="/website/ing_news.nsf/ViewNewsForm?OpenForm&All" level="202" uid="COGN-4MNMT3"

  • Disappearing Mouse Problem

    When surfing in Safari I will occasionally have an issue where the mouse will disappear on me. The circumstances around this are odd. When I bring the mouse up to the toolbar and it hovers over any of my bookmark buttons, the mouse will disappear. It

  • FTP: Want to check if the file is completely being written in the server or

    Hi, I am very much new to this FTP, I am using the apache API (commons-net.jar) in my ftp client. I have a problem here, I want to find out whether the remote file (in the server) is completely written or not. Is there anyway in which the mode (writi

  • Oracle 10g OLAP option

    Hi all Do we support creating a universe against an Oracle 10g OLAP database and how do we do this to report against OLAP data? I notice that there isn't an OLAP universe option for this, so I presume that if we can then we do this via OLAP SQL expre

  • Windows 7 doesn't awaken with Ipod Nano 5G connected

    Brand new HP computer w/Windows 7 and brand new Ipod Nano 5G. Left ipod connected to computer to charge. After computer powered down it would not restart. HP figured out that the Ipod was blocking the restart. If I unplug Ipod computer restarts fine.