Team System Developer Center > Visual Studio Team System Forums > Team Foundation Server - Reporting & Warehouse > TFS 2008 SP1 Event log Error - Work Item tracking Adapter - KeyNotFoundException
Ask a questionAsk a question
 

QuestionTFS 2008 SP1 Event log Error - Work Item tracking Adapter - KeyNotFoundException

  • Wednesday, May 27, 2009 10:03 AMWill Crick Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi,

    We are running TFS 2008 SP1 on Windows 2003 server. Our event log is becoming cluttered with the following errors:

    Source: TFS Warehouse
    Event ID: 3000

    TF53010: The following error has occurred in a Team Foundation component or extension:

    Date (UTC): 27/05/2009 05:20:01

    Machine: AYL-TFS08-01

    Application Domain: /LM/W3SVC/1567259138/Root/Warehouse-4-128878499678342952

    Assembly: Microsoft.TeamFoundation.Warehouse, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a; v2.0.50727

    Process Details:

    Process Name: w3wp

    Process Id: 3516

    Thread Id: 9924

    Account name: DOMAIN\tfsservice_user

    Detailed Message: Microsoft.TeamFoundation.WorkItemTracking.Adapter: Exception during Run - System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.

    at System.ThrowHelper.ThrowKeyNotFoundException()

    at System.Collections.Generic.Dictionary`2.get_Item(TKey key)

    at Microsoft.TeamFoundation.WorkItemTracking.Adapter.Adapter.FindTreeNodeUriFromId(Object id, Int32 treeStructureType)

    The error seems to be some kind of Key lookup error - previous to this error, we had other errors about not being able to connect to the Analysis service on teh database server - we found it had not started after a reboot and started it. Since then, the previous error has gone and hase been replaced with this one!

    Any help apreciated.

    cheers

    W.

All Replies

  • Wednesday, June 03, 2009 2:33 PMbrthomas Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Has Code
    Will I have a very similar error to what you have I actually get two errors together every hour that it updates. I have rebuilt the warehouse and the cube and nothing new has happened still getting the same errors.
    Will if you find an answer please post it if not maybe we can get some other help here.

    I am getting the following errors they always come in pairs and they always hit every hour in the event viewer can anyone tell me what I need to do here. I am pretty sure that this error is causing my warehouse to not update correctly even though it is saying that it is. I can really tell this in my Conchango projects as the Sprints and Team names are not coming accross even though they have been entered. Thanks.

    TF53010: The following error has occurred in a Team Foundation component or extension:
    Date (UTC): 5/28/2009 7:17:55 PM
    Machine: 
    Application Domain: /LM/W3SVC/1114735704/Root/Warehouse-5-128879795265558917 Assembly: Microsoft.TeamFoundation.Warehouse, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a; v2.0.50727 Process Details: Process Name: w3wp Process Id: 30512 Thread Id: 30352 Account name: Detailed Message: TF51209: A run-time error System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary. at System.ThrowHelper.ThrowKeyNotFoundException() at System.Collections.Generic.Dictionary`2.get_Item(TKey key) at Microsoft.TeamFoundation.WorkItemTracking.Adapter.Adapter.FindTreeNodeUriFromId(Object id, Int32 treeStructureType) at Microsoft.TeamFoundation.WorkItemTracking.Adapter.Adapter.ProcessKeywordValue(FactEntry fact, PayloadRow fieldRow, PayloadRow dr) at Microsoft.TeamFoundation.WorkItemTracking.Adapter.Adapter.AddWorkItemFactEntry(PayloadRow dr, String projectUri, String previousState, DateTime dtChangedDate) at Microsoft.TeamFoundation.WorkItemTracking.Adapter.Adapter.PopulateFacts(PayloadRow dr) at Microsoft.TeamFoundation.WorkItemTracking.Adapter.Adapter.MakeDataChanges() at Microsoft.TeamFoundation.Warehouse.AdapterWrapper.RunTimerAdapter() occurred on adapter Microsoft.TeamFoundation.WorkItemTracking.Adapter.Adapter.
    TF53010: The following error has occurred in a Team Foundation component or extension:
    Date (UTC): 5/28/2009 7:17:55 PM
    Machine: 
    Application Domain: /LM/W3SVC/1114735704/Root/Warehouse-5-128879795265558917
    Assembly: Microsoft.TeamFoundation.Warehouse, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a; v2.0.50727
    Process Details:
      Process Name: w3wp
      Process Id: 30512
      Thread Id: 30352
      Account name: 
    
    Detailed Message: Microsoft.TeamFoundation.WorkItemTracking.Adapter: Exception during Run - System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
       at System.ThrowHelper.ThrowKeyNotFoundException()
       at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
       at Microsoft.TeamFoundation.WorkItemTracking.Adapter.Adapter.FindTreeNodeUriFromId(Object id, Int32 treeStructureType)
       at Microsoft.TeamFoundation.WorkItemTracking.Adapter.Adapter.ProcessKeywordValue(FactEntry fact, PayloadRow fieldRow, PayloadRow dr)
       at Microsoft.TeamFoundation.WorkItemTracking.Adapter.Adapter.AddWorkItemFactEntry(PayloadRow dr, String projectUri, String previousState, DateTime dtChangedDate)
       at Microsoft.TeamFoundation.WorkItemTracking.Adapter.Adapter.PopulateFacts(PayloadRow dr)
       at Microsoft.TeamFoundation.WorkItemTracking.Adapter.Adapter.MakeDataChanges().
    
    For more information, see Help and Support Center at 
  • Monday, June 15, 2009 2:24 PMWill Crick Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Yup thats exactly what i get - every hour = two error messages.
    Someone HELP!

    Have you found out any more info?

    cheers

    Will
  • Wednesday, October 21, 2009 1:56 PMDesiGUY Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    We are getting exactly the same two error message every hour.

    Will, brthomas - Did you guys found any solution/fix to this issue?

    Please help!
    -----------------------------------------------------------------------------------------------------------------------
    TF53010: The following error has occurred in a Team Foundation component or extension:
    Date (UTC): 10/20/2009 10:31:34 PM
    Machine: ORDITPAPPTFS1
    Application Domain: /LM/W3SVC/3/Root/Warehouse-5-129004513822272433
    Assembly: Microsoft.TeamFoundation.Warehouse, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a; v2.0.50727
    Process Details:
      Process Name: w3wp
      Process Id: 5984
      Thread Id: 6152
      Account name: CORPUSA\ENTTFSSERVICE

    Detailed Message: Microsoft.TeamFoundation.WorkItemTracking.Adapter: Exception during Run - System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
       at System.ThrowHelper.ThrowKeyNotFoundException()
       at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
       at Microsoft.TeamFoundation.WorkItemTracking.Adapter.Adapter.FindTreeNodeUriFromId(Object id, Int32 treeStructureType)
       at Microsoft.TeamFoundation.WorkItemTracking.Adapter.Adapter.ProcessKeywordValue(FactEntry fact, PayloadRow fieldRow, PayloadRow dr)
       at Microsoft.TeamFoundation.WorkItemTracking.Adapter.Adapter.AddWorkItemFactEntry(PayloadRow dr, String projectUri, String previousState, DateTime dtChangedDate)
       at Microsoft.TeamFoundation.WorkItemTracking.Adapter.Adapter.PopulateFacts(PayloadRow dr)
       at Microsoft.TeamFoundation.WorkItemTracking.Adapter.Adapter.MakeDataChanges().

    For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
    -----------------------------------------------------------------------------------------------------------------------
    TF53010: The following error has occurred in a Team Foundation component or extension:
    Date (UTC): 10/20/2009 10:31:34 PM
    Machine: ORDITPAPPTFS1
    Application Domain: /LM/W3SVC/3/Root/Warehouse-5-129004513822272433
    Assembly: Microsoft.TeamFoundation.Warehouse, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a; v2.0.50727
    Process Details:
      Process Name: w3wp
      Process Id: 5984
      Thread Id: 6152
      Account name: CORPUSA\ENTTFSSERVICE

    Detailed Message: TF51209: A run-time error System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
       at System.ThrowHelper.ThrowKeyNotFoundException()
       at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
       at Microsoft.TeamFoundation.WorkItemTracking.Adapter.Adapter.FindTreeNodeUriFromId(Object id, Int32 treeStructureType)
       at Microsoft.TeamFoundation.WorkItemTracking.Adapter.Adapter.ProcessKeywordValue(FactEntry fact, PayloadRow fieldRow, PayloadRow dr)
       at Microsoft.TeamFoundation.WorkItemTracking.Adapter.Adapter.AddWorkItemFactEntry(PayloadRow dr, String projectUri, String previousState, DateTime dtChangedDate)
       at Microsoft.TeamFoundation.WorkItemTracking.Adapter.Adapter.PopulateFacts(PayloadRow dr)
       at Microsoft.TeamFoundation.WorkItemTracking.Adapter.Adapter.MakeDataChanges()
       at Microsoft.TeamFoundation.Warehouse.AdapterWrapper.RunTimerAdapter() occurred on adapter Microsoft.TeamFoundation.WorkItemTracking.Adapter.Adapter.

    For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
    -----------------------------------------------------------------------------------------------------------------------
  • Thursday, October 29, 2009 2:49 PMNick Ericson - MSFTMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    Sorry for the very delayed replies.  Have you contacted product support and found a resolution for these issues?  If not:

    What version of TFS are you running (2008 SP1)?

    Are you getting any errors from other Adapters, or is this the only one?

    Have you recently deleted a Team Project, Area, or Iteration?

    Would you collect a Debug Trace while the adapter is running and post it back here?
      1. Start a debug trace listener (i.e. DbgView)
      2. Enable tracing
      3. Force an update of the Warehouse and Cube

        See Alan's blog http://blogs.msdn.com/alanh/archive/2008/05/12/some-helpful-administrative-operations.aspx for instructions on how to do these things.

  • Wednesday, November 04, 2009 2:12 PMDesiGUY Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Thanks for the reply...

    We are running TFS 2008 (not 2008 SP1). We cannot upgrade to 2008 SP1 until 2010 first quarter.

    We are getting errors only on the WorkItemTracking Adapter . Two errors every hour.

    Yes, we deleted Area and Iteration Path from a project recently. I checked the TFSWarehouse db for DeletedNodes (Area and Iteration tables) and i found some.

    I did force update on the Warehouse and Cube; that didnt help.
    Neither did rebuild of TFSWarehouse db and OLAP Cube.

    The automatic cube processing for the TFS OLAP Cube is FULL.
    I enabled the tracing for the TFS Adapter (without recycling the application pool). How do i check the trace output?

    Please Help!