Home Page › Forums › BizTalk 2004 – BizTalk 2010 › Problem with exception handling
- This topic has 5 replies, 1 voice, and was last updated 9 years, 2 months ago by
community-content.
-
AuthorPosts
-
-
December 16, 2005 at 4:04 AM #12541
Hi,
I am using longrunning transaction, in this there is call to database, I wanted to put these send receive shapes in other scope so that I can catch exception but Iam facing problem when iam keeping these shapes in scope the response from database iam unable to use outside this scope it is giving error unconstructed message.
can ayone explain how to solve this issue
-
December 16, 2005 at 5:28 AM #12542
No it is not working , how to set global variables
-
December 16, 2005 at 9:52 AM #12543
should we not use nested scope with exception shape in long running transaction
-
December 16, 2005 at 4:15 AM #12544
BizTalk will not let you send a message if at some path it might not be constructed. So, you need to add logic to make sure you don’t hit the Send.
You could try setting your response to a global variable or global xml document.
Later on, if you want to use it you can use a decision shape outside of all the scopes.
Hope this helps.
-
December 16, 2005 at 6:43 AM #12545
You could try just setting a variable at the Orchestration level and not the scope level. You might be doing that already though.
Long and short of it, you need to change your logic so you don’t send a message that might not be constructed.
I’d start by adding a Boolean = true when you want to send a message and set the response text to send to an Xml Document. Then, construct a message from the Xml Document inside the decision shape when the Boolean is true. Make sense?
Might be some other ways to do it too. This is just what I can think of off the top of my head.
-
December 20, 2005 at 5:07 AM #12546
Yep, I guess that would be another way to go about it.
Probably the easer way based on what you have said before. Just make sure your Send shape is inside the exception handling.
This would not really help you if you needed to react to different exception types.
-
-
-
-
-
-
AuthorPosts
- The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.