System.NullReferenceException: Object reference not set to an instance of an object.
-
Friday, January 13, 2012 7:07 PM
Hi,
I am trying to migrate source code from av TFS2008 server to a TFS 2010 server in a rather large migration.
I get the following error:
[1/12/2012 4:21:25 AM] TfsMigrationShell.exe Warning: 0 : VersionControl: Object reference not set to an instance of an object.
[1/12/2012 4:21:25 AM] TfsMigrationShell.exe Information: 0 : VersionControl: System.NullReferenceException: Object reference not set to an instance of an object.
[1/12/2012 4:21:25 AM] at Microsoft.TeamFoundation.Migration.Tfs2010VCAdapter.TfsVCMigrationProvider.SingleItemError(Object sender, BatchedItemEventArgs e)
[1/12/2012 4:21:25 AM] at Microsoft.TeamFoundation.Migration.Tfs2010VCAdapter.BatchingContext.OnBatchedItemError(BatchedItem item, Exception exception)
[1/12/2012 4:21:25 AM] at Microsoft.TeamFoundation.Migration.Tfs2010VCAdapter.BatchingContext.pendEdits()
[1/12/2012 4:21:25 AM] at Microsoft.TeamFoundation.Migration.Tfs2010VCAdapter.BatchingContext.pendChanges()
[1/12/2012 4:21:25 AM] at Microsoft.TeamFoundation.Migration.Tfs2010VCAdapter.BatchingContext.Flush()
[1/12/2012 4:21:25 AM] at Microsoft.TeamFoundation.Migration.Tfs2010VCAdapter.TfsVCMigrationProvider.Flush(BatchingContext context)
[1/12/2012 4:21:25 AM] at Microsoft.TeamFoundation.Migration.Tfs2010VCAdapter.TfsVCMigrationProvider.ProcessChangeGroup(ChangeGroup group)
[1/12/2012 4:21:25 AM] TfsMigrationShell.exe Information: 0 : VersionControl: Unresolved conflict:
[1/12/2012 4:21:25 AM] Session: 8325b214-ab69-481c-b334-314f0ca4b875
[1/12/2012 4:21:25 AM] Source: 11e9d237-42a7-4b65-9d78-dcb731436984
[1/12/2012 4:21:25 AM] Message: Cannot find applicable resolution rule.
[1/12/2012 4:21:25 AM] Conflict Type: Runtime Error
[1/12/2012 4:21:25 AM] Conflict Type Reference Name: f6dab314-2792-40d9-86cc-b40f5b827d86
[1/12/2012 4:21:25 AM] Conflict Details: System.NullReferenceException: Object reference not set to an instance of an object.
[1/12/2012 4:21:25 AM] at Microsoft.TeamFoundation.Migration.Tfs2010VCAdapter.TfsVCMigrationProvider.SingleItemError(Object sender, BatchedItemEventArgs e)
[1/12/2012 4:21:25 AM] at Microsoft.TeamFoundation.Migration.Tfs2010VCAdapter.BatchingContext.OnBatchedItemError(BatchedItem item, Exception exception)
[1/12/2012 4:21:25 AM] at Microsoft.TeamFoundation.Migration.Tfs2010VCAdapter.BatchingContext.pendEdits()
[1/12/2012 4:21:25 AM] at Microsoft.TeamFoundation.Migration.Tfs2010VCAdapter.BatchingContext.pendChanges()
[1/12/2012 4:21:25 AM] at Microsoft.TeamFoundation.Migration.Tfs2010VCAdapter.BatchingContext.Flush()
[1/12/2012 4:21:25 AM] at Microsoft.TeamFoundation.Migration.Tfs2010VCAdapter.TfsVCMigrationProvider.Flush(BatchingContext context)
[1/12/2012 4:21:25 AM] at Microsoft.TeamFoundation.Migration.Tfs2010VCAdapter.TfsVCMigrationProvider.ProcessChangeGroup(ChangeGroup group)
[1/12/2012 4:21:25 AM]
[1/12/2012 4:21:25 AM]
[1/12/2012 4:21:25 AM] TfsMigrationShell.exe Information: 0 : VersionControl: Stopping current trip for session: 8325b214-ab69-481c-b334-314f0ca4b875
[1/12/2012 4:21:25 AM] TfsMigrationShell.exe Information: 0 : VersionControl: Recorded sync point for migration source d5468829-78f6-4d00-a1be-167f0456a8ad of session 8325b214-ab69-481c-b334-314f0ca4b875 with Source High Water Mark 'HWMDelta' value of '147257'
[1/12/2012 4:21:25 AM] TfsMigrationShell.exe Information: 0 : VersionControl: VersionControl: Session stopped!
[1/12/2012 4:21:25 AM] TfsMigrationShell.exe Information: 0 : VersionControl: Session worker thread [VersionControl] completed
[1/12/Any suggestions?
Magnus
All Replies
-
Monday, January 16, 2012 10:04 AMOwner
Hello Magnus,
What is the template you are using in the TFS Integration tool to migrate contents in TFS2008 to TFS2010? VersionControl.xml, WorkItemTracking.xml or VersionControlAndWorkItemTracking.xml. In addition, could you please offer me the complete error messages that will show us the detailed information which files or work items causes the migration failed?
And if your issue is caused by one source controlled file, please try executing the
USE TfsIntegration
GO
EXEC sp_updatestats
command in the SSMS to see if it helps you. Please see:
Thanks.
Vicky Song [MSFT]
MSDN Community Support | Feedback to us
- Marked As Answer by Vicky SongOwner Friday, February 03, 2012 8:45 AM
-
Wednesday, February 15, 2012 11:29 AM
Hi Vicky,
I still get the same error as above while migrating the source code:
[1/12/2012 4:21:25 AM] TfsMigrationShell.exe Information: 0 : VersionControl: Unresolved conflict:
[1/12/2012 4:21:25 AM] Session: 8325b214-ab69-481c-b334-314f0ca4b875
[1/12/2012 4:21:25 AM] Source: 11e9d237-42a7-4b65-9d78-dcb731436984
[1/12/2012 4:21:25 AM] Message: Cannot find applicable resolution rule.
[1/12/2012 4:21:25 AM] Conflict Type: Runtime Error
[1/12/2012 4:21:25 AM] Conflict Type Reference Name: f6dab314-2792-40d9-86cc-b40f5b827d86
[1/12/2012 4:21:25 AM] Conflict Details: System.NullReferenceException: Object reference not set to an instance of an object.
[1/12/2012 4:21:25 AM] at Microsoft.TeamFoundation.Migration.Tfs2010VCAdapter.TfsVCMigrationProvider.SingleItemError(Object sender, BatchedItemEventArgs e)Is there any way du bypass the error by adding a rule for this? How can I further analyze what is behind the problem?
Magnus

