Home Page › Forums › BizTalk 2004 – BizTalk 2010 › Send Port in Orchestration a must?
- This topic has 6 replies, 1 voice, and was last updated 9 years, 2 months ago by
community-content.
-
AuthorPosts
-
-
August 26, 2010 at 1:39 AM #25754
Hi.
A short question to orchestrations.
Do I always have to use a send port in an orchestration?
Because if I don’t use a send port in an orchestration I get always an error message like this:
“
xlang/s engine event log entry: Uncaught exception (see the ‘inner exception’ below) has suspended an instance of service ‘MPDB2PB.MPDB2COM_Assembly(99b80d62-c27d-be09-86d8-ce55ccc7c9df)’.The service instance will remain suspended until administratively resumed or terminated.
If resumed the instance will continue from its last persisted state and may re-throw the same unexpected exception.
InstanceId: 0a934683-2d8c-4e67-ac02-24f58156124f
Shape name: Send_1
ShapeId: 36f773bc-d1cf-4de1-84c1-10b70f3994fc
Exception thrown from: segment 1, progress 11
Inner exception: Failed while attempting to send message ‘RcvDataFromMPDB’.
Exception type: SendFailedException
Source: Microsoft.XLANGs.BizTalk.Engine
Target Site: Void WriteMessageState(Microsoft.BizTalk.Interop.IBTPEPInfoLookup, System.Guid, Microsoft.XLANGs.BaseTypes.XLANGMessage, Microsoft.XLANGs.Core.Segment, System.String, System.String, System.Collections.IList, Boolean, System.Collections.IList)
The following is a stack trace that identifies the location where the exception occured”In the orchestration I have a receive port and an expression shape only.
I’m a little bit confused because I heared that it shouldn’t be a problem for BizTalk if I don’t use a send port in an orchestration.
If included a send port the orchestration is running fine without any issues.
So I think I have to use a send port within an orhcestration, or am I wrong?
What are your experiences in this or does this depends on the shapes in an orchestration?
Thanks in advanced.
Wolfgang
-
August 26, 2010 at 2:14 AM #25755
You do not need to have a send port in your orchestration.
What do you do in your expression shape?
-
August 26, 2010 at 2:37 AM #25756
Hi.
I just use an receive port and an expression shape. In the expression shape I fill a variable with a System.GUID and call a assembly withe two parameters. One parameter is the message from the receive port and the other parameter is the GUID.
After this the orchestration is finished.
Could this be, in case the assembly is thrown an exception that BizTalk can’t handle it because the orchestration is finished and everything is deleted out of the messageBox?
Thanks
Wolfgang
-
August 26, 2010 at 3:39 AM #25757
The orchestration will block on the method call to your assembly i.e. will not progress until the method call has completed.
Does your method initiate another thread and then return?-
August 26, 2010 at 4:00 AM #25759
The assembly which will be called within the orchestration consume further web services and store datas in a database.
But the assembly has no return value.
cheers
Wolfgang
-
August 26, 2010 at 7:26 AM #25760
The error message states the exception was thrown on shape Send_1
The orchestration that is suspending must have a Send shape in it. Is it possible you are running an older version of the orchestration? Did you restart your host instances after you redeployed?-
August 27, 2010 at 2:03 AM #25765
Hi Greg.
Yes I restartet it and I refreshed the application in BizTalk. So I was wondering. I deleted the orchestration in my project in VS and added a new one from scratch – same error message!
Wolfgang
-
-
-
-
-
-
-
AuthorPosts
- The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.