1
Vote

TFS 2012 and TFS Aggregator Issue

description

When trying to run the TFS aggregator on TFS 2012 I am getting the following in Debug View. The XML i am using is the same one that is currently working in our TFS 2010 setup. We just did an update to the databases so all the same work items are in both TFS installs:

[3808] TFSAggregator: Change detected to Task [39622]
[3808] TFSAggregator: Processing 22 AggregationItems
[3808] TFSAggregator: [Entry 0] Aggregation 'Name not set' does not apply to Task work items
[3808] TFSAggregator: [Entry 1] Aggregation 'Name not set' does not apply to Task work items
[3808] TFSAggregator: [Entry 2] Aggregation 'Name not set' does not apply to Task work items
[3808] TFSAggregator: [Entry 3] Aggregation 'Name not set' does not apply to Task work items
[3808] TFSAggregator: [Entry 4] Aggregation 'Name not set' does not apply to Task work items
[3808] TFSAggregator: [Entry 5] Aggregation 'Name not set' does not apply to Task work items
[3808] TFSAggregator: [Entry 6] Aggregation 'Name not set' does not apply to Task work items
[3808] TFSAggregator: [Entry 7] Aggregation 'Name not set' does not apply to Task work items
[3808] TFSAggregator: [Entry 8] Aggregation 'Name not set' does not apply to Task work items
[3808] TFSAggregator: [Entry 9] Aggregation 'Name not set' does not apply to Task work items
[3808] TFSAggregator: [Entry 10] Aggregation 'Name not set' does not apply to Task work items
[3808] TFSAggregator: [Entry 11] Aggregation 'Name not set' applies to Task work items
[3808] TFSAggregator: Found Work Request [39598] 1 level up from Task [39622]. Aggregation continues.
[3808] TFSAggregator: All conditions for parent aggregation are met
[3808] TFSAggregator: [Entry 12] Aggregation 'Name not set' applies to Task work items
[3808] TFSAggregator: Found Work Request [39598] 1 level up from Task [39622]. Aggregation continues.
[3808] TFSAggregator: All conditions for parent aggregation are met
[3808] TFSAggregator: [Entry 13] Aggregation 'Name not set' applies to Task work items
[3808] TFSAggregator: Found Work Request [39598] 1 level up from Task [39622]. Aggregation continues.
[3808] TFSAggregator: All conditions for parent aggregation are met
[3808] TFSAggregator: [Entry 14] Aggregation 'Name not set' does not apply to Task work items
[3808] TFSAggregator: [Entry 15] Aggregation 'Name not set' does not apply to Task work items
[3808] TFSAggregator: [Entry 16] Aggregation 'Name not set' does not apply to Task work items
[3808] TFSAggregator: [Entry 17] Aggregation 'Name not set' does not apply to Task work items
[3808] TFSAggregator: [Entry 18] Aggregation 'Name not set' does not apply to Task work items
[3808] TFSAggregator: [Entry 19] Aggregation 'Name not set' does not apply to Task work items
[3808] TFSAggregator: [Entry 20] Aggregation 'Name not set' does not apply to Task work items
[3808] TFSAggregator: [Entry 21] Aggregation 'Name not set' does not apply to Task work items
[3808] TFSAggregator: Exception encountered processing Work Item [39622]: Unable to cast object of type 'Microsoft.TeamFoundation.WorkItemTracking.Client.Field' to type 'System.String'.
[3808] TFSAggregator: Stack Trace: at TFSAggregator.MiscHelpers.GetInvalidWorkItemFieldsList(WorkItem wi)
[3808] TFSAggregator: at TFSAggregator.WorkItemChangedEventHandler.<ProcessEvent>b__3(WorkItem x)
[3808] TFSAggregator: at System.Collections.Generic.List1.ForEach(Action1 action)
[3808] TFSAggregator: at TFSAggregator.WorkItemChangedEventHandler.ProcessEvent(TeamFoundationRequestContext requestContext, NotificationType notificationType, Object notificationEventArgs, Int32& statusCode, String& statusMessage, ExceptionPropertyCollection& properties)


In the XML we have:
<!--Sum Task Original Estimate to Parent (US,WR,Defect)-->
<AggregatorItem operation="Sum" linkType="Parent" linkLevel="1" workItemType="Task">
    <TargetItem name="Original Estimate"/>
    <SourceItem name="Original Estimate"/>
    <Conditions>
        <Condition leftfield="Work Item Type" operator="EqualTo" rightValue="Work Request"/>
        <Condition leftfield="Work Item Type" operator="EqualTo" rightValue="User Story"/>
        <Condition leftfield="Work Item Type" operator="EqualTo" rightValue="Defect"/>
    </Conditions>
</AggregatorItem>

comments

kboudre wrote Jun 13, 2014 at 1:42 PM

Finally worked it out. It was permissions issue.

As a side note has anyone gotten Multiply to work?

wikkid_dev wrote Sep 9, 2014 at 8:32 PM

What was the permissions issue? And how did you resolve?

kboudre wrote Sep 24, 2014 at 11:19 AM

It had to do with with access the account had to the fields on the work request itself. Not sure if it had something to do with converting from 2010 to 2012, but had to reset some of the fields we were locking down and make sure the account had complete access