on 02-17-2012 5:54 PM
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>
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.