In my workflow I call a service which returns me a List. The problem is that in my workflow i use a AddToCollection Activitie to add a new string to the collection, but i get an error right when i get to the activity.
Debugging and checking i got to theworkflow logs and now I see that the error is that "Collection was of a fixed size." Here's the complete log:
System.SZArrayHelper.Add[T](T value) System.Activities.Statements.AddToCollection`1.Execute(CodeActivityContext context) System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager) System.Activities.ActivityInstance.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager) System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)
What i don't get is why (and how this happened)? Is this a bug? I specifically return a List... why does it says it's fixed sized?!?
EDIT 1: There's something really weird... since my original workflow was quite big I created a new, smaller one, just to reproduce this error... and I can't!