Geeks With Blogs

News View Michael Stephenson's profile on BizTalk Blog Doc View Michael Stephenson's profile on LinkedIn
Michael Stephenson keeping your feet on premise while your heads in the cloud

Just a note to self in case I bump into this one again.

 

I created a custom pipeline component and when adding it to the pipeline designer then clicking save you get the following error:

Failed to retrieve basic properties of the Pipeline Component: xxxxxxx

 

After a bit of digging I worked out the problem was my code interacting with IPropertyBag in the implementation of the Load and Save methods of the interface.

My problem was that the string I was using for the key of the property bag had spaced in it. See the below example

 

The below example doesn't work:

protected void WritePropertyBag(IPropertyBag pb, string propertyName, object propertyValue)

{

if (propertyValue != null)

PropertyBagHelper.Write(pb, " Property Name ", propertyValue);

}

The below example works:

protected void WritePropertyBag(IPropertyBag pb, string propertyName, object propertyValue)

{

if (propertyValue != null)

PropertyBagHelper.Write(pb, "PropertyName", propertyValue);

}

Posted on Wednesday, July 17, 2013 4:02 AM BizTalk | Back to top


Comments on this post: Failed to retrieve basic properties of pipeline component

No comments posted yet.
Your comment:
 (will show your gravatar)


Copyright © Michael Stephenson | Powered by: GeeksWithBlogs.net | Join free