none
Migrating Test Cases using TFS Integration Platform

    Question

  • I am getting the following Runtime Conflict when migrating a certain test case work item (with attachment):

    Microsoft.TeamFoundation.Migration.Toolkit.ErrorManagement.MissingErrorRouterException: Runtime error does not meet the error routine policy and there is no conflict manager to log a conflict. ---> System.IndexOutOfRangeException: Index was outside the bounds of the array.
       at Microsoft.TeamFoundation.WorkItemTracking.Client.RevisionCollection.get_Item(Int32 index)
       at Microsoft.TeamFoundation.Migration.Tfs2010WitAdapter.TfsMigrationWorkItem.TryEstablishFieldValueBaseline(Dictionary`2 fieldValueBaseline, List`1 revsToBeSynced)
       at Microsoft.TeamFoundation.Migration.Tfs2010WitAdapter.TfsMigrationWorkItem.ComputeFieldDelta(ChangeGroupService changeGroupService, DateTime waterMarkChangeStartTime, FieldValueComparer tfsValueComparer, ITranslationService translationService, ConfigurationService configService, List`1 groups, IsWorkItemRevisionProcessed processedRevCallBack)
       at Microsoft.TeamFoundation.Migration.Tfs2010WitAdapter.TfsWITAnalysisProvider.ComputeFieldDelta(TfsMigrationWorkItem item, DateTime waterMarkChangeStartTime, List`1 groups)
       at Microsoft.TeamFoundation.Migration.Tfs2010WitAdapter.TfsWITAnalysisProvider.GenerateNextDeltaSlice(Int32 maxDeltaSliceSize)
       at Microsoft.TeamFoundation.Migration.Tfs2010WitAdapter.TfsWITAnalysisProvider.GenerateDeltaTable()
       --- End of inner exception stack trace ---
       at Microsoft.TeamFoundation.Migration.Toolkit.ErrorManagement.ErrorRoutingAlgorithm.TryHandleException(Exception e, ConflictManager conflictManager)
       at Microsoft.TeamFoundation.Migration.Toolkit.ErrorManagement.ErrorManager.TryHandleException(Exception e, ConflictManager conflictManager)
       at Microsoft.TeamFoundation.Migration.Toolkit.ErrorManagement.ErrorManager.TryHandleException(Exception e)
       at Microsoft.TeamFoundation.Migration.Tfs2010WitAdapter.TfsWITAnalysisProvider.GenerateDeltaTable()
       at Microsoft.TeamFoundation.Migration.Toolkit.AnalysisEngine.GenerateDeltaTables(Guid sourceId)

    Log File:

    [2/24/2012 2:05:26 PM] TfsIntegrationService.exe Information: 0 : WorkItemTracking: TFS Query: SELECT [System.Id], [System.Rev] FROM WorkItems WHERE ([System.TeamProject]=@project AND ([System.TeamProject] = 'SkyPay' and [System.WorkItemType] = 'Test Case' and [System.AttachedFileCount] > 0)) ORDER BY [System.Id]
    [2/24/2012 2:05:30 PM] TfsIntegrationService.exe Information: 0 : WorkItemTracking: TFS Query: returned 12 item(s)
    [2/24/2012 2:05:30 PM] TfsIntegrationService.exe Information: 0 : WorkItemTracking: Received modified items from 'a4d9b9aa-aaea-486a-bc97-70f2e82bdd82!nvitpmmtf100\TFSCollection (SkyPay)'
    [2/24/2012 2:05:31 PM] TfsIntegrationService.exe Information: 0 : WorkItemTracking: Starting computing the delta table
    [2/24/2012 2:05:31 PM] TfsIntegrationService.exe Information: 0 : WorkItemTracking: Start generating revision delta information for Work Item #63029 at 2012-02-24T14:05:30.5936955-06:00
    [2/24/2012 2:05:31 PM] TfsIntegrationService.exe Information: 0 : WorkItemTracking: Unresolved conflict: 
    [2/24/2012 2:05:31 PM]   Session: 952ae6f0-61ae-4402-b80c-8e58f9b1f0cb
    [2/24/2012 2:05:31 PM]   Source: a4d9b9aa-aaea-486a-bc97-70f2e82bdd82
    [2/24/2012 2:05:31 PM]   Message: Cannot find applicable resolution rule.
    [2/24/2012 2:05:31 PM]   Conflict Type: Runtime Error
    [2/24/2012 2:05:31 PM]   Conflict Type Reference Name: f6dab314-2792-40d9-86cc-b40f5b827d86
    [2/24/2012 2:05:31 PM]   Conflict Details: Microsoft.TeamFoundation.Migration.Toolkit.ErrorManagement.MissingErrorRouterException: Runtime error does not meet the error routine policy and there is no conflict manager to log a conflict. ---> System.IndexOutOfRangeException: Index was outside the bounds of the array.
    [2/24/2012 2:05:31 PM]    at Microsoft.TeamFoundation.WorkItemTracking.Client.RevisionCollection.get_Item(Int32 index)
    [2/24/2012 2:05:31 PM]    at Microsoft.TeamFoundation.Migration.Tfs2010WitAdapter.TfsMigrationWorkItem.TryEstablishFieldValueBaseline(Dictionary`2 fieldValueBaseline, List`1 revsToBeSynced)
    [2/24/2012 2:05:31 PM]    at Microsoft.TeamFoundation.Migration.Tfs2010WitAdapter.TfsMigrationWorkItem.ComputeFieldDelta(ChangeGroupService changeGroupService, DateTime waterMarkChangeStartTime, FieldValueComparer tfsValueComparer, ITranslationService translationService, ConfigurationService configService, List`1 groups, IsWorkItemRevisionProcessed processedRevCallBack)
    [2/24/2012 2:05:31 PM]    at Microsoft.TeamFoundation.Migration.Tfs2010WitAdapter.TfsWITAnalysisProvider.ComputeFieldDelta(TfsMigrationWorkItem item, DateTime waterMarkChangeStartTime, List`1 groups)
    [2/24/2012 2:05:31 PM]    at Microsoft.TeamFoundation.Migration.Tfs2010WitAdapter.TfsWITAnalysisProvider.GenerateNextDeltaSlice(Int32 maxDeltaSliceSize)
    [2/24/2012 2:05:31 PM]    at Microsoft.TeamFoundation.Migration.Tfs2010WitAdapter.TfsWITAnalysisProvider.GenerateDeltaTable()
    [2/24/2012 2:05:31 PM]    --- End of inner exception stack trace ---
    [2/24/2012 2:05:31 PM]    at Microsoft.TeamFoundation.Migration.Toolkit.ErrorManagement.ErrorRoutingAlgorithm.TryHandleException(Exception e, ConflictManager conflictManager)
    [2/24/2012 2:05:31 PM]    at Microsoft.TeamFoundation.Migration.Toolkit.ErrorManagement.ErrorManager.TryHandleException(Exception e, ConflictManager conflictManager)
    [2/24/2012 2:05:31 PM]    at Microsoft.TeamFoundation.Migration.Toolkit.ErrorManagement.ErrorManager.TryHandleException(Exception e)
    [2/24/2012 2:05:31 PM]    at Microsoft.TeamFoundation.Migration.Tfs2010WitAdapter.TfsWITAnalysisProvider.GenerateDeltaTable()
    [2/24/2012 2:05:31 PM]    at Microsoft.TeamFoundation.Migration.Toolkit.AnalysisEngine.GenerateDeltaTables(Guid sourceId)
    [2/24/2012 2:05:31 PM] 
    [2/24/2012 2:05:31 PM] 
    [2/24/2012 2:05:31 PM] TfsIntegrationService.exe Information: 0 : WorkItemTracking: Stopping current trip for session: 952ae6f0-61ae-4402-b80c-8e58f9b1f0cb
    [2/24/2012 2:05:31 PM] TfsIntegrationService.exe Warning: 0 : WorkItemTracking: Unable to record sync point for migration source a4d9b9aa-aaea-486a-bc97-70f2e82bdd82 of session 952ae6f0-61ae-4402-b80c-8e58f9b1f0cb because lastMigratedTargetItem.ItemId is null or empty
    [2/24/2012 2:05:31 PM] TfsIntegrationService.exe Information: 0 : WorkItemTracking: WorkItemTracking: Session stopped!
    [2/24/2012 2:05:31 PM] TfsIntegrationService.exe Information: 0 : WorkItemTracking: Session worker thread [WorkItemTracking] completed

    This isn't happening with all Test Case work items, but I can't figure out what the issue with this one is.  Is there a way around this issue?


    Tim Mellor



    • Edited by UtahTim2 Monday, February 27, 2012 11:34 PM
    Monday, February 27, 2012 9:11 PM

All replies