Reading variable inside of a Catch Block

Home Page Forums BizTalk 2004 – BizTalk 2010 Reading variable inside of a Catch Block

Viewing 1 reply thread
  • Author
    Posts
    • #13239

      Hey guys,
      I put my entire orchestration inside of a scope with a catch block set to trap a \”system.exception\”. Within this scope I make calls to a number of web services. These web service calls are contained in a scope of their own that catch soap exceptions and throws them to the main catch block. I have a string variable that holds custom error info that I try to access within the main catch block. I keep getting \”use of unassigned variable\”. But, if I take the receive shape outside of the main scope, I don’t get this error.

      Any ideas why taking the receive shape out of the main scope will fix this?

    • #13240

      I remember having the same problem and we just put the Receive outside the Scope.

      The act of Receiving a message in BizTalk is not a persistence point – thus if it fails on the Receive Shape or any shape before a persistence point it will be like the Orchestration never happened in the first place.

      Make sense?

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