Upgraded from TFS 2013 RTM to TFS 2015.2.1 in a test environment. Noticed some errors in the warehouse in three projects. Followed the guidance from here: msdn . Microsoft . com /library/edbe689d-7863-4273-916f-b7e93b7f00b3 (sorry, I can't add links or images)
Added the missing shared parameters, test plan and test suite work items to the projects updated the categories accordingly. Then ran the TFSConfig TCM against them. Two of the three projects updated correctly, and one threw this error:
Test plan migration job failed with error: Cannot insert duplicate key row in object 'dbo.tbl_Plan' with unique index 'ixc_Plan'. The duplicate key value is (1, 178, 581472).
%error="550001";%DSMDTFSDB1.Tfs_DefaultCollection..prc_UpdateTcmArtificatsAfterMigrationOnWit: Generic error - %error="2601";% executing UPDATE statement for tbl_PlanData
The statement has been terminated.
Went back and revalidated that the new work items and category were uploaded and correct and reran the command and got the following when checking status:
Test plan migration job failed with error: TF246018: The database operation exceeded the timeout limit and has been cancelled. Verify that the parameters of the operation are correct.
Which causes the warehouse to fail on the Test Management Warehouse Sync job and lists the problem project.
What are my options on getting the test plans upgraded for this project?
I assume this issue is also the cause for analysis jobs to fail, both incremental and full with the following...I don't relish having to delete and rebuild the warehouse and analysis dbs from scratch:
<ResultMessage>[Full Analysis Database Sync]: ---> AnalysisDatabaseProcessingType=Full, needCubeSchemaUpdate=True. ---> Microsoft.TeamFoundation.Warehouse.WarehouseException: TF221122: An error occurred running job Full Analysis Database Sync for team project collection or Team Foundation server TEAM FOUNDATION. ---> Microsoft.TeamFoundation.Warehouse.WarehouseException: Failed to Process Analysis Database 'tfs_analysis'. ---> Microsoft.TeamFoundation.Warehouse.WarehouseException: File system error: The following error occurred during a file operation: . (\\?\F:\MSSQL\OLAP\Data\tfs_analysis.0.db\Dim Changeset.0.dim\27.ChangesetID.ahstore). Server: The current operation was cancelled because another operation in the transaction failed. Errors in the OLAP storage engine: An error occurred while the 'System_Id' attribute of the 'Work Item Tree' dimension from the 'tfs_analysis' database was being processed. Errors in the OLAP storage engine: An error occurred while the 'System_Id' attribute of the 'Test Case' dimension from the 'tfs_analysis' database was being processed. Errors in the OLAP storage engine: An error occurred while the 'System_Title' attribute of the 'Work Item' dimension from the 'tfs_analysis' database was being processed. Errors in the OLAP storage engine: An error occurred while the 'Drop Location' attribute of the 'Build' dimension from the 'tfs_analysis' database was being processed. Errors in the OLAP storage engine: An error occurred while the 'Changeset Title' attribute of the 'Version Control Changeset' dimension from the 'tfs_analysis' database was being processed. Errors in the OLAP storage engine: An error occurred while the 'Work Item' attribute of the 'Work Item Tree' dimension from the 'tfs_analysis' database was being processed. Errors in the OLAP storage engine: An error occurred while the 'Build BK' attribute of the 'Build' dimension from the 'tfs_analysis' database was being processed. Warning: Parser: Out of line object 'Binding', referring to ID(s) 'tfs_analysis, Team System, FactCurrentWorkItem', has been specified but has not been used. Warning: Parser: Out of line object 'Binding', referring to ID(s) 'tfs_analysis, Team System, FactWorkItemHistory', has been specified but has not been used. Warning: Parser: Out of line object 'Binding', referring to ID(s) 'tfs_analysis, Team System, v Fact WorkItem To Tree', has been specified but has not been used. Warning: Parser: Out of line object 'Binding', referring to ID(s) 'tfs_analysis, Team System, v Fact Linked Current WorkItem', has been specified but has not been used. Warning: Parser: Out of line object 'Binding', referring to ID(s) 'tfs_analysis, Team System, Fact WorkItem To Category', has been specified but has not been used. Warning: Parser: Out of line object 'Binding', referring to ID(s) 'tfs_analysis, Team System, v Fact WorkItem Changeset', has been specified but has not been used. Warning: Parser: Out of line object 'Binding', referring to ID(s) 'tfs_analysis, Team System, Fact Build Project', has been specified but has not been used. Warning: Parser: Out of line object 'Binding', referring to ID(s) 'tfs_analysis, Team System, Fact Build Details', has been specified but has not been used. Warning: Parser: Out of line object 'Binding', referring to ID(s) 'tfs_analysis, Team System, Fact Code Churn', has been specified but has not been used. Warning: Parser: Out of line object 'Binding', referring to ID(s) 'tfs_analysis, Team System, v Fact Test Result Overlay', has been specified but has not been used. Warning: Parser: Out of line object 'Binding', referring to ID(s) 'tfs_analysis, Team System, Fact Build Changeset', has been specified but has not been used. Warning: Parser: Out of line object 'Binding', referring to ID(s) 'tfs_analysis, Team System, Fact Build Coverage', has been specified but has not been used. Warning: Parser: Out of line object 'Binding', referring to ID(s) 'tfs_analysis, Team System, v Fact WorkItem Test Result', has been specified but has not been used. Warning: Parser: Out of line object 'Binding', referring to ID(s) 'tfs_analysis, Team System, v Fact Linked Current Work Item Test Case', has been specified but has not been used. Warning: Parser: Out of line object 'Binding', referring to ID(s) 'tfs_analysis, Team System, Fact Run Coverage', has been specified but has not been used. at Microsoft.TeamFoundation.Warehouse.TFSOlapProcessComponent.ExecuteXmla(String finalXmla) at Microsoft.TeamFoundation.Warehouse.TFSOlapProcessComponent.ProcessOlap(AnalysisDatabaseProcessingType processingType, WarehouseChanges warehouseChanges, Boolean lastProcessingFailed, Boolean cubeSchemaUpdateNeeded) --- End of inner exception stack trace --- at Microsoft.TeamFoundation.Warehouse.TFSOlapProcessComponent.ProcessOlap(AnalysisDatabaseProcessingType processingType, WarehouseChanges warehouseChanges, Boolean lastProcessingFailed, Boolean cubeSchemaUpdateNeeded) at Microsoft.TeamFoundation.Warehouse.AnalysisDatabaseSyncJobExtension.RunInternal(IVssRequestContext requestContext, TeamFoundationJobDefinition jobDefinition, DateTime queueTime, String& resultMessage) at Microsoft.TeamFoundation.Warehouse.WarehouseJobExtension.Run(IVssRequestContext requestContext, TeamFoundationJobDefinition jobDefinition, DateTime queueTime, String& resultMessage) --- End of inner exception stack trace ---</ResultMessage>