Hi I get this error when I make a custom pipeline component inserted in validate portion of a new (receive pipeline) and try to run it.
In event viewer i get these errors, please tell me what to do.
Thanks!
Errors:
The Messaging Engine encountered an error publishing a batch of "1" messages to the Message Box database for the transport adapter "FILE". Please refer to Health and Activity Tracking tool for more detailed information on this failure and check the endpoint bindings are correctly configured.
For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp.
The Messaging engine failed to process a message submitted by adapter:FILE Source URL:F:\bts projects\EAISolution\FileDrop\ReceiveRequest\*.xml . Details:Could not find a matching subscription for the message. . This error occurs if the subscribed orchestration schedule or send port has not been started, or if some of the message properties necessary for subscription evaluation have not been promoted. Please refer to Health and Activity Tracking tool for more detailed information on this failure
The "FILE" adapter is suspending a message coming from Source URL:"F:\bts projects\EAISolution\FileDrop\ReceiveRequest\*.xml ". Details:"Could not find a matching subscription for the message. ".
For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp.
The Messaging Engine has suspended "1" message(s) from adapter "FILE" due to failures in message processing. Please refer to Health and Activity Tracking tool for more detailed information on this failure.
For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp.
Hat error:
Routing failure report
Suspended (not resumable)
This service instance exists to help debug routing failures. The context of the message associated with this instance contains all the promoted properties at the time of the routing failure.
error code: -1
error category: -3
************************************************** ******
Here's sample code for the pipeline
//sample code for custom pipeline component
using System; //... etc
namespace CustomValidatePipeline
{
[ComponentCategory(CategoryTypes.CATID_PipelineComp onent)]
[ComponentCategory(CategoryTypes.CATID_Any)]
[ComponentCategory(CategoryTypes.CATID_Validate)]
[System.Runtime.InteropServices.Guid("BEADC7A6-2E73-4184-8984-F63372C03134")]
/// <summary>
/// Summary description for Component.
/// </summary>
public class Component:
IBaseComponent,
Microsoft.BizTalk.Component.Interop.IComponent,
IComponentUI,
IPersistPropertyBag //...etc
{
//Constant variables
#region "IComponent members (containing Execute method)"
public IBaseMessage Execute(IPipelineContext pContext, IBaseMessage pInMsg)
{
IBaseMessageContext context = pInMsg.Context;
object obj = context.Read("Quantity", "http://EISchemas.PropertySchema.PropertySchema" );
if (obj!=null)
{
Debug.WriteLine("*obj not null*");
try
{
Debug.WriteLine("** quantity**: " + obj.GetType());
Debug.WriteLine("** quantity**: " + obj.ToString());
// do some work with each value that was promoted
}
catch
{
Debug.WriteLine("** Error **");
}
}
Debug.WriteLine("*Goes in 3*");
Debug.WriteLine("In successful Component ExecuteEnd");
return pInMsg;
}
#endregion
#region "IComponentUI members (containing validation and icon)"
public System.Collections.IEnumerator Validate(object projectSystem)
{
//....
}
}