Hello
I am constructing a message in an orchestration.
I am trying to assign a value but it does not work. I do like this
xpath(Message_Response,"number(/*[local-name()='ProcessPayment' and namespace-uri()='http://SigmaCommon.ProcessPayment']/*[local-name()='IndbetalingsID' and namespace-uri()='']/text())") = tmp_indbetliangsID;
I get this error:
Exception: System.Xml.XPath.XPathException: Expression must evaluate to a node-set.
at System.Xml.XPath.XPathNavigator.Select(XPathExpression expr)
at System.Xml.XPath.XPathNavigator.Select(String xpath)
at System.Xml.XmlNode.SelectNodes(String xpath)
at Microsoft.XLANGs.Core.Part.XPathStore(Object rValue, String xpath)
at SigmaAutomation.Payments.ProcessPayments.segment3(StopConditions stopOn)
at Microsoft.XLANGs.Core.SegmentScheduler.RunASegment(Segment s, StopConditions stopCond, Exception& exp)
Before trying to assign the value I can read out the default value with this xPath
xpath(Message_Response,"number(/*[local-name()='ProcessPayment' and namespace-uri()='http://SigmaCommon.ProcessPayment']/*[local-name()='IndbetalingsID' and namespace-uri()='']/text())")
which makes me believe I got the path right.
I have tried without the /text() as well, does not work either.
The node i am trying to set is of type Long.
Anyone have an idea of what I am doing wrong?