cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot create target element /ns0 Values missing in queue context

former_member206439
Contributor
0 Kudos

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: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>

Accepted Solutions (0)

Answers (1)

Answers (1)

baskar_gopalakrishnan2
Active Contributor
0 Kudos

This is the problem. A mandatory element or node requires value that is missing at mapping run time. So the best way to analyze is copy the payload from the sxmb_moni and use that data in the mapping test tool and troubleshoot. Check every possible element in the structure and see the value where it is missing.

former_member206439
Contributor
0 Kudos

solved

Former Member
0 Kudos

Hi Naresh,

i have the similiar problem now.

how did u solve it?

Regards

Rene

former_member206439
Contributor
0 Kudos

Do you still have this error?

Former Member
0 Kudos

Hi Naresh,

thank u for your follow up!

i solved the problem. it is just the missing contexts during mapping.

i developed own UDF to create the missing contexts.

Regards

Rene