Problem assigning a taskID to a message in a MessageAssignment shape

Home Page Forums BizTalk 2004 – BizTalk 2010 Problem assigning a taskID to a message in a MessageAssignment shape

Viewing 8 reply threads
  • Author
    Posts
    • #18935

      Hi,

      I am new to Orchestration designing. I have to send a specific task through an SQL Adapter, so, within my Orchestration, I created a message which I connected to a Task schema of my own.

      Then, I used a MessageAssignment shape to create a new taskId and assign to the instance of message used within the following Send step. This is the code I wrote into my MessageAssignment:

      ——————– 

      taskID = System.Guid.NewGuid();

      RequestCheckMessage(Microsoft.BizTalk.Hws.HwsPromotedProperties.TaskID) = taskID.ToString();

       ——————– 

      Even if I just took this code from an example I found online, it does not work: my action instance remains suspended after I receive this exception:

      <<Microsoft.XLANGs.RuntimeTypes.XPathUpdateException: A failure occurred while evaluating the property Microsoft.BizTalk.Hws.HwsPromotedProperties.TaskID 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()=’HwsMessage’ and namespace-uri()=’http://tempuri.org/Hws_RequestCheck’%5D/*%5Blocal-name()=’HwsSection&#8217; and namespace-uri()=”]/*[local-name()=’TaskID’ and namespace-uri()=”]…>> in Microsoft.XLANGs.Core.XSDPart.SetPayloadProperty(PropertyDefinition pd, Object val)…

       Please, can you help me to get through this error?

      Thank you in advance,

      Emiliano.

    • #51462
      Alexa85

        After many weeks of term papers, and other academic tasks, it is time to begin explaining for exams. This period of student life is very tough, especially for those who are not serious enough with school assignments. Students who do not receive notes during lectures have a lot of trouble preparing for the exams. He had uk writings for me. As a rule, their memory is not sharp enough to remember all the details of their teacher. Students work hard before their exams.

      • #53350
        Ella Johnson

          To move from either a node to the destination node message, you could have used a Turn shape. When your SP request is data is collected from a request data, this could be the direction to go – particularly if that incoming message has a large amount of data to bring to the SP. Source: reliable essay writing service UK

        • #54320
          Adam
          • #54328
            Claus
            • #54329
              Claus
              • #54331
                Miles

                  maybe the problem is not in the code, but in the site. But you obviously did not need to contact here, but rather to the programmers

                • #54333
                  Miles

                    like me, for example, I needed help writing an essay, I turned to writers. https://pro-papers.com

                  • #54973
                    NillONill

                      Using ccomputer science homework service has never been easier. Just place an order and get a perfectly written paper before the deadline.

                  Viewing 8 reply threads
                  • The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.