BizTalk

Pipeline Component Load() and Save() error

Error:

Pipeline Component gives error “Pipeline componet Load() method failed on IPersistPropertyBag implementation: <name of the Pipeline component>”  while dragged on one of the stages for pipeline

LoadPipelineComponentError

Pipeline Component gives error “Pipeline componet Save() method failed on IPersistPropertyBag implementation: <name of the Pipeline component>”  while trying to save the pipeline

SavePipelineComponentError

Solution: Implement the Argument exception handling. Do not use third party dll in the argument exception handling

Microsoft.BizTalk.Component.Interop.IPropertyBag pb;
string propName;

object val = null;
try
{
pb.Read(propName, out val, 0);
}
catch (System.ArgumentException argEx)
{
//Do not use third pary dll logging
    return val;
}
catch (System.Exception e)
{
//Can use any third party dll logging
throw new System.ApplicationException(e.Message);
}
return val;

Leave a comment