Import mapping does not work, but no error either.

0
Using Mendix 8.8.0 I installed the amazon sqs connector. This works well and I store messages in a persistent object. The message body then needs to be interpreted and imported using a mapping. The body is an XML message for which I unfortunately have no XSD schema. I manually created non-persistent entities for the entire structure and mapped those using message defintions. When trying to import using mapping in a microflow I get no errors whatsoever, but the result object is always empty. When I set the log level to “Trace” for XML I do get the messages stating that the XML was being run (lots of “Added to XML path” and “End element found”) through but no result. Since there is no error, what could I do to fix this?  Example body:     <s:Body>         <Waybill             xmlns="urn:oasis:names:specification:ubl:schema:xsd:Waybill-2"             xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2"             xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2"             xmlns:eba="http://ns.tln.nl/eba/schemas/1-0/"             xmlns:ext="urn:oasis:names:specification:ubl:schema:xsd:CommonExtensionComponents-2"             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"             xsi:schemaLocation="urn:oasis:names:specification:ubl:schema:xsd:Waybill-2 http://docs.oasis-open.org/ubl/prd1-UBL-2.1/xsd/maindoc/UBL-Waybill-2.1.xsd http://ns.tln.nl/eba/schemas/1-0-1/EBA-Extensions.xsd">             <ext:UBLExtensions>                 <ext:UBLExtension>                     <ext:ExtensionContent>                         <eba:ReplyAddress>                             <eba:Webservice>                                 <eba:WebserviceEndPoint>                                 </eba:WebserviceEndPoint>                                 <eba:Username></eba:Username>                                 <eba:Password>                                 </eba:Password>                             </eba:Webservice>                         </eba:ReplyAddress>                     </ext:ExtensionContent>                 </ext:UBLExtension>                 <ext:UBLExtension>                     <ext:ExtensionContent>                         <eba:ReplyAddress>                             <eba:EmailAddress></eba:EmailAddress>                         </eba:ReplyAddress>                     </ext:ExtensionContent>                 </ext:UBLExtension>             </ext:UBLExtensions>             <cbc:ProfileID>             </cbc:ProfileID>             <cbc:ID></cbc:ID>             <cbc:UUID></cbc:UUID>             <cbc:Note></cbc:Note>             <cac:Shipment>                 <cbc:ID></cbc:ID>                 <cac:Consignment>                     <cbc:ID />                     <cbc:CarrierAssignedID />                     <cbc:ConsigneeAssignedID></cbc:ConsigneeAssignedID>                     <cbc:ConsignorAssignedID />                     <cbc:BrokerAssignedID />                     <cac:ConsigneeParty>                         <cac:PartyIdentification>                             <cbc:ID schemeAgencyName="xxx"></cbc:ID>                         </cac:PartyIdentification>                         <cac:PartyName>                             <cbc:Name></cbc:Name>                         </cac:PartyName>                         <cac:PostalAddress>                             <cbc:StreetName></cbc:StreetName>                             <cbc:BuildingNumber></cbc:BuildingNumber>                             <cbc:CityName></cbc:CityName>                             <cbc:PostalZone></cbc:PostalZone>                             <cac:Country>                                 <cbc:Name></cbc:Name>                             </cac:Country>                         </cac:PostalAddress>                     </cac:ConsigneeParty>                     <cac:ConsignorParty>                         <cbc:IndustryClassificationCode></cbc:IndustryClassificationCode>                         <cac:PartyIdentification>                             <cbc:ID schemeAgencyName="xxx"></cbc:ID>                         </cac:PartyIdentification>                         <cac:PartyName>                             <cbc:Name></cbc:Name>                         </cac:PartyName>                         <cac:PostalAddress>                             <cbc:StreetName></cbc:StreetName>                             <cbc:BuildingNumber></cbc:BuildingNumber>                             <cbc:CityName></cbc:CityName>                             <cbc:PostalZone></cbc:PostalZone>                             <cac:Country>                                 <cbc:Name></cbc:Name>                             </cac:Country>                         </cac:PostalAddress>                     </cac:ConsignorParty>                     <cac:CarrierParty>                         <cac:PartyIdentification>                             <cbc:ID schemeAgencyName="xxx"></cbc:ID>                         </cac:PartyIdentification>                         <cac:PartyName>                             <cbc:Name></cbc:Name>                         </cac:PartyName>                         <cac:PostalAddress>                             <cbc:StreetName></cbc:StreetName>                             <cbc:BuildingNumber></cbc:BuildingNumber>                             <cbc:CityName></cbc:CityName>                             <cbc:PostalZone></cbc:PostalZone>                             <cac:Country>                                 <cbc:Name></cbc:Name>                             </cac:Country>                         </cac:PostalAddress>                     </cac:CarrierParty>                 </cac:Consignment>                 <cac:GoodsItem>                     <cbc:ID></cbc:ID>                     <cbc:HazardousRiskIndicator></cbc:HazardousRiskIndicator>                     <cbc:NetNetWeightMeasure unitCode="xxx">                     </cbc:NetNetWeightMeasure>                     <cbc:Quantity></cbc:Quantity>                     <cac:Item>                         <cbc:Name></cbc:Name>                         <cac:CommodityClassification>                             <cbc:ItemClassificationCode></cbc:ItemClassificationCode>                         </cac:CommodityClassification>                         <cac:HazardousItem>                             <cbc:AdditionalInformation />                         </cac:HazardousItem>                         <cac:AdditionalItemProperty>                             <cbc:Name></cbc:Name>                             <cbc:Value></cbc:Value>                         </cac:AdditionalItemProperty>                         <cac:AdditionalItemProperty>                             <cbc:Name></cbc:Name>                             <cbc:Value></cbc:Value>                         </cac:AdditionalItemProperty>                         <cac:AdditionalItemProperty>                             <cbc:Name></cbc:Name>                             <cbc:Value></cbc:Value>                         </cac:AdditionalItemProperty>                         <cac:AdditionalItemProperty>                             <cbc:Name></cbc:Name>                             <cbc:Value></cbc:Value>                         </cac:AdditionalItemProperty>                     </cac:Item>                     <cac:GoodsItemContainer>                         <cbc:ID />                     </cac:GoodsItemContainer>                     <cac:Delivery>                         <cac:DeliveryLocation>                             <cbc:ID></cbc:ID>                             <cbc:Description></cbc:Description>                             <cbc:LocationTypeCode></cbc:LocationTypeCode>                             <cac:Address>                                 <cbc:StreetName></cbc:StreetName>                                 <cbc:BuildingName></cbc:BuildingName>                                 <cbc:BuildingNumber></cbc:BuildingNumber>                                 <cbc:InhouseMail />                                 <cbc:CityName></cbc:CityName>                                 <cbc:PostalZone></cbc:PostalZone>                             </cac:Address>                         </cac:DeliveryLocation>                         <cac:EstimatedDeliveryPeriod>                             <cbc:EndDate></cbc:EndDate>                             <cbc:EndTime></cbc:EndTime>                         </cac:EstimatedDeliveryPeriod>                     </cac:Delivery>                     <cac:Pickup>                         <cbc:ActualPickupDate></cbc:ActualPickupDate>                         <cbc:ActualPickupTime></cbc:ActualPickupTime>                         <cac:PickupLocation>                             <cbc:Description>                             </cbc:Description>                             <cbc:LocationTypeCode></cbc:LocationTypeCode>                             <cac:Address>                                 <cbc:StreetName></cbc:StreetName>                                 <cbc:BuildingName>                                 </cbc:BuildingName>                                 <cbc:BuildingNumber />                                 <cbc:InhouseMail />                                 <cbc:CityName></cbc:CityName>                                 <cbc:PostalZone></cbc:PostalZone>                             </cac:Address>                         </cac:PickupLocation>                         <cac:PickupParty>                             <cac:PartyIdentification>                                 <cbc:ID schemeAgencyName="xxxx"></cbc:ID>                             </cac:PartyIdentification>                             <cac:PartyName>                                 <cbc:Name></cbc:Name>                             </cac:PartyName>                             <cac:PostalAddress>                                 <cbc:StreetName></cbc:StreetName>                                 <cbc:BuildingNumber></cbc:BuildingNumber>                                 <cbc:CityName></cbc:CityName>                                 <cbc:PostalZone></cbc:PostalZone>                                 <cac:Country>                                     <cbc:Name></cbc:Name>                                 </cac:Country>                             </cac:PostalAddress>                         </cac:PickupParty>                     </cac:Pickup>                 </cac:GoodsItem>                 <cac:ShipmentStage>                     <cbc:PreCarriageIndicator></cbc:PreCarriageIndicator>                     <cbc:OnCarriageIndicator></cbc:OnCarriageIndicator>                     <cac:TransportMeans>                         <cac:RoadTransport>                             <cbc:LicensePlateID></cbc:LicensePlateID>                         </cac:RoadTransport>                     </cac:TransportMeans>                 </cac:ShipmentStage>             </cac:Shipment>         </Waybill>     </s:Body> Note that I have manually removed all the customer details for this form.
asked
2 answers
1

Yes, exactly the same issue. Difficult thing is that Mendix does not provide a convenient way to check why the import mapping-operation fails: it just returns an empty object.

Got it sort of working now. Mendix is really picky on the XSD file, if the structure there is incorrect, then it doesn't work. Tried many different XML to XSD converters online, and now found one of them that works sort of: https://xmlgrid.net/xml2xsd.html

But still a head ache to find out why certain values/attributes are not imported correctly.

answered
0

Did you ever find a solution for this problem?

answered