Integrating Integrators – BizTalk, Windows Azure, Windows Workflow, and Beyond

Re: Error: An activatable receive must be the first executable statement in a service

BizTalk 2006 R2

This group is for all content related to BizTalk Server 2006 R2. This includes a forum, samples, and videos. Most of the content here also applies to other versions of BizTalk beyond 2006 R2.

Error: An activatable receive must be the first executable statement in a service

Answered (Verified) This question is answered

Hi,

I Have a Expression on top of my Orchestration which uses a helper class. After the expression i placed a Receive and a Send Shape which connects to the Receive and Send ports. When i try to compile i get this error:  an activatable receive must be the first executable statement in a service.

The Receive shape is Activated.

I need to execute the helper class functionality before it comes to the Receive shape. How is this possible ?

 

Thanks in Adance.

Verified Answer
  • Unfortunately, I'm afraid this is not possible (if anyone else shares another opinion about this, let me know!).

     

    Your process gets triggered by a subscribtion on a file that's published on the messagebox. So, the first statement that MUST happen is a receive of a message inside your orchestration. I see no possibility to execute something in an orchestration, ever before the orchestration itself is started...

    Maybe, try looking into creating a custom pipeline or so, to do your processing, before firing up the orchestration..

     

    Andrew 

    • Not Ranked
All Replies
Page 1 of 1 (4 items)