Assigning Values to items in a message
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > BizTalk Server > BizTalk Server Orchestration > Assigning Values to items in a message




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Assigning Values to items in a message  
Eric


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-17-05 12:47 PM

I have a distinguished field in my document that I need to have overridden i
n the orchestration. The following is the rule that I have in the Expression
 Editor;
DatabaseInfoOut=DatabaseInfo;

DatabaseInfoOut.sync.after.ShipConfirmations.Status="C";



When I run through the orchestration, this is the following error I get in H
AT;

Microsoft.XLANGs.RuntimeTypes.XPathUpdateException: A failure occurred while
 evaluating the distinguished field sync.after.ShipConfirmations.Status agai
nst the message part data. The message part data does not contain at least o
ne of the nodes specified by the XPath expression (listed below) that corres
ponds to the distinguished field. The cause for this error may be that the m
essage 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 i
s initialized correctly.
XPath expression: /*[local-name()='sampleorderrequest' and namespace-uri
()='http://sampleorders']/*[local-name()='sync' and namespace-uri()='htt
p://sampleorders']/*[local-name()='after' and namespace-uri()='http://sa
mpleorders']/*[local-name()='ShipConfirmations' and namespace-uri()='htt
p://sampleorders']/@*[local-name()='Status' and namespace-uri()='']
at Microsoft.XLANGs.Core.XSDPart.SetDistinguishedField(String dottedPath, Ob
ject val)
at Test.TestOrchestration.segment1(StopConditions stopOn)
at Microsoft.XLANGs.Core.SegmentScheduler.RunASegment(Segment s, StopConditi
ons stopCond, Exception& exp)
Microsoft.XLANGs.RuntimeTypes.XPathUpdateException

Why would I be getting this message?








[ Post a follow-up to this message ]



    RE: Assigning Values to items in a message  
Neal Walters


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-17-05 10:51 PM

I think that error means you are trying to set the value of a distinguished
field, but the distinguished field does not even exist in your XML.

So when you construct the message with a map, use a "String Concat" functoid
(for example) to at least copy the value of an empty-string to the desired
distinguished field.  That will cause the distinguished field to be created
in the XML.  Or if you are using XML.LOAD("<xxxx>etc....</xxxx>"), then make
sure you also include the distinguished field in the XML.

So I don't know if you are constructing your message yourself or receiving
it.
If you are receiving it, you may have to add an extra map to map
DatabaseInfo to DatabaseInfoOut, and initialize the distinguished fields tha
t
may have been missing in your DatabaseInfo instance.

Neal Walters
http://Biztalk-Training.com - New SQL, FTP, HTTP, WebService Demos







[ Post a follow-up to this message ]



    Re: Assigning Values to items in a message  
Matt Milner


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-18-05 07:47 AM

Make sure that in your xml document, the node you are trying to set already 
exists or you will get this error.  In order to set the value, the node must
 exist.  WHen you construct the message, make sure you construct this node w
ith some default or placeholder value.  

Matt
"Eric" <ericstott.dnsme@hotmail.com> wrote in message news:OI7hYPPFFHA.3384@
tk2msftngp13.phx.gbl...
I have a distinguished field in my document that I need to have overridden i
n the orchestration. The following is the rule that I have in the Expression
 Editor;
DatabaseInfoOut=DatabaseInfo;

DatabaseInfoOut.sync.after.ShipConfirmations.Status="C";



When I run through the orchestration, this is the following error I get in H
AT;

Microsoft.XLANGs.RuntimeTypes.XPathUpdateException: A failure occurred while
 evaluating the distinguished field sync.after.ShipConfirmations.Status agai
nst the message part data. The message part data does not contain at least o
ne of the nodes specified by the XPath expression (listed below) that corres
ponds to the distinguished field. The cause for this error may be that the m
essage 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 i
s initialized correctly.
XPath expression: /*[local-name()='sampleorderrequest' and namespace-uri
()='http://sampleorders']/*[local-name()='sync' and namespace-uri()='htt
p://sampleorders']/*[local-name()='after' and namespace-uri()='http://sa
mpleorders']/*[local-name()='ShipConfirmations' and namespace-uri()='htt
p://sampleorders']/@*[local-name()='Status' and namespace-uri()='']
at Microsoft.XLANGs.Core.XSDPart.SetDistinguishedField(String dottedPath, Ob
ject val)
at Test.TestOrchestration.segment1(StopConditions stopOn)
at Microsoft.XLANGs.Core.SegmentScheduler.RunASegment(Segment s, StopConditi
ons stopCond, Exception& exp)
Microsoft.XLANGs.RuntimeTypes.XPathUpdateException

Why would I be getting this message? 








[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 05:59 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register