Error: Ensure that the message part data is initialized correctly. XPath expression
Error:
Microsoft.XLANGs.RuntimeTypes.XPathUpdateException: A failure occurred while evaluating the property Order.Common.Schemas.PropertySchema.FileName against the message part data. The message part data does not contain at least one of the nodes specified by the XPath expression (listed below) that corresponds to the property. The cause for this error may be that the message part data has not been initialized or that the message part data does not conform to the message part schema. Ensure that the message part data is initialized correctly. XPath expression: /*[local-name()='SalesOrderCanonical' and namespace-uri()='http://Order.Common.Schemas.SalesOrderCanonical']/*[local-name()='SalesOrder' and namespace-uri()='']/*[local-name()='Header' and namespace-uri()='']/*[local-name()='FileName' and namespace-uri()='']
at Microsoft.XLANGs.Core.XSDPart.SetPayloadProperty(PropertyDefinition pd, Object val)
at EDI.GordonFoods.Orchs.ReceiveEDI850ProcessGordonFoods.segment2(StopConditions stopOn)
at Microsoft.XLANGs.Core.SegmentScheduler.RunASegment(Segment s, StopConditions stopCond, Exception& exp)
Root cause:
This is because the promoted property field called FileName was not initialized with a value before being assigned a value. A map was being run and no value was being mapped to the field. We can just map a value such as 'placeholder' and later on assign some real values using a message assignment shape.
Initialize a placeholder value as shown below
Followed by value assignment using message assignment shape
Comments
Post a Comment