29 July 2009

secret lengths of OnBehalfReason

As I was setting up a custom SharePoint workflow to work with an external user outside of the domain, I noticed some quirky behavior and error messaging from SharePoint.

e.g. it works if its a short piece of text like the MOSS 2007 SDK:

createPartnerReviewTask_TaskProperties1.OnBehalfEmail = "null@void.com";
createPartnerReviewTask_TaskProperties1.OnBehalfReason = "This user does not have access to this Windows SharePoint Server site.";

but dies like this when its too long:
WinWF Internal Error, terminating workflow Id# 7c4d...
System.ArgumentException: Value does not fall within the expected range.
at Microsoft.SharePoint.Workflow.SPWorkflowTaskProperties.set_OnBehalfReason(String value)

what range is specified in the reference? undocumented.

No comments:

Post a Comment

firstly, thanks in advance for your comment - I don't get very many, so I'm sure to follow up if you leave me a way - secondly, come again.