Problems deploying process with notifications

rated by 0 users
This post has 5 Replies | 1 Follower

Top 150 Contributor
Posts 41
Points 149
Faccenda Posted: Thu, Feb 28 2008 4:42 AM

Hi,

 I am having problems deploying my process and it seems to be something to with the notifications I have put in place.
We have 2 environments (development & production) and these are both set up exactly the same (Blackpearl server on one machine and SQL server on another).
I have been making changes to the development workflow, copying the project to the production environment and deploying for the last few weeks, with no problems at all. However, yesterday this suddenly stopped being the case and the deployment fails on the production environment only, with the following errors:

Error 1 Notification Service: Task Error: System.Exception: System.ArgumentOutOfRangeException: Length cannot be less than zero.
Parameter name: length
   at System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy)
   at SourceCode.EventBus.Server.ClientServerImplimentation.getNotificationTemplate(String& notificationPart1, String& notificationPart2)
   at SourceCode.EventBus.Server.ClientServerImplimentation.GetPolicyMappingForNotification()
   at SourceCode.EventBus.Server.ClientServerImplimentation.GetPolicyMappingForNotification()
   at SourceCode.EventBus.Server.ClientServerImplimentation.UpdateWorklistItemNotification(List`1 worklistItemIdentifiers)
 C:\Visual Studio 2005 Projects\Fusion II - Workflow\Source\FFF.FusionII.ProductMgmt.WF\obj\Debug\Deployment\FFF.FusionII.ProductMgmt.WF.msbuild 71 6 FFF.FusionII.ProductMgmt.WF
 

Error 2 The "SourceCode.DeploymentTasks.NotificationService.NotificationTask" task failed unexpectedly.
System.Exception: System.Exception: System.ArgumentOutOfRangeException: Length cannot be less than zero.
Parameter name: length
   at System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy)
   at SourceCode.EventBus.Server.ClientServerImplimentation.getNotificationTemplate(String& notificationPart1, String& notificationPart2)
   at SourceCode.EventBus.Server.ClientServerImplimentation.GetPolicyMappingForNotification()
   at SourceCode.EventBus.Server.ClientServerImplimentation.GetPolicyMappingForNotification()
   at SourceCode.EventBus.Server.ClientServerImplimentation.UpdateWorklistItemNotification(List`1 worklistItemIdentifiers)
   at SourceCode.DeploymentTasks.NotificationService.NotificationTask.Execute()
   at Microsoft.Build.BuildEngine.TaskEngine.ExecuteTask(ExecutionMode howToExecuteTask, Hashtable projectItemsAvailableToTask, BuildPropertyGroup projectPropertiesAvailableToTask, Boolean& taskClassWasFound)
 C:\Visual Studio 2005 Projects\Fusion II - Workflow\Source\FFF.FusionII.ProductMgmt.WF\obj\Debug\Deployment\FFF.FusionII.ProductMgmt.WF.msbuild 71 6 FFF.FusionII.ProductMgmt.WF

I have also tried creating a new much smaller workflow with one Default Client Event with the built in email notification, but this fails with the same error. However, removing the Default Client Event and deploying with only a Mail Event works no problem.

If anyone has any idea what this might be, I would be very grateful. I've only got so much hair left to pull out :)

Many thanks,

 Kevin.

  • | Post Points: 4
Top 150 Contributor
Posts 41
Points 149
Faccenda replied on Thu, Feb 28 2008 6:35 AM

Very strange. Despite the 'Deploy Failed' message, it does seem to actually deploy.

 Moral of the story - don't believe everything you read. ;)

  • | Post Points: 4
Top 50 Contributor
Posts 130
Points 433
mgallen replied on Thu, Feb 28 2008 7:22 AM
It does however indicate the the MS Message Queue might not be configured quite right.. perhaps ... Martin
Martin Allen Visit my blog: SpittingCAML blog
  • | Post Points: 1
Top 50 Contributor
Posts 104
Points 237
jey replied on Tue, Feb 3 2009 5:55 AM

If the notification event message body didn't include the [UrlWithSN] field you will get this error. This requirement sort of makes sense but the exception message could have been more helpful.


blogs regularly at http://jeylabs.com
  • | Post Points: 4
Top 100 Contributor
Posts 51
Points 188
Top 500 Contributor
Posts 20
Points 55
bluevolume replied on Wed, Dec 30 2009 12:11 PM

I'm working with this as well.  I need to include the folio somewhere on the message, is there any way to modify the template to do that?  I know you can do it in the notification designer, but that is not practical if you have to do it for every single message individually.

Also, can the style of the activity URL be changed from that green?  It looks like the tag is being generated in code at runtime.

  • | Post Points: 1
Page 1 of 1 (6 items) | RSS