Sunday, December 14, 2008

CRM 4.0: Workflow error on wait condition for custom activity

Symptoms

  • You wrote a custom Workflow Activity
  • You created a Workflow that contains your custom activity and a wait condition
  • You deployed and published the workflow and it "kind of" works, but when you try to open a running workflow you get the generic "An error has occurred. Try this action again." message.
  • You enable tracing and see that there are some exceptions that vaguely mention serialization.

Probable Cause

  • You have properties in your Workflow Activity class and the Workflow Process doesn't know how to serialize them. This seems to be a problem for all properties that are not persisted using the Dependency Property mechanism.

Solution

  • Remove the properties, unregister and re-register the assembly and off you go.

Saturday, May 17, 2008

Tera? No, Peta.

All right, so we all know that Vista contains some bugs, but I love this one. I was trying to unzip an archive of about 5 GB into an external USB drive. As you see, my drive had more than 44GB free, but Vista didn't let me unzip the archive (which would have amounted to 8GB uncompressed) because my external disk happened to have less than 6PB free. Can't wait for the first 10PB drive. I then used WinZip and everything worked.

Tuesday, April 8, 2008

BizTalk Fails Configuring the Group

If the message looks like this:

[WARN] AdminLib GetBTSMessage: hrErr=80070002; Msg=The system cannot find the file specified.;

Then most probably DTC is not configured/not running (you beast!). Look here for a step-by-step solution.

Monday, March 31, 2008

Customize Navigation

Use this .xsd file to verify schema of customizations, ISV and Site Map .xml files.