Hello,
I am running TFS 2015 to TFS 2018 migration process and getting following error.
[09:20:09.000] Executing step: Drop existing framework snapshot schema if it exists
[09:20:09.000] Executing step: 'Drop existing framework snapshot schema if it exists' Sql.ExecuteSql (1709 of 1721)
[09:20:09.000] Step Data: SqlResource => DeleteApplicationSnapshotData.sql;DropCollectionSnapshotSchema.sql;DropFrameworkJobSnapshotSchema.sql;DropFrameworkIdentitySnapshotSchema.sql;DropLicensingApplicationSnapshotSchema.sql
[09:20:09.000] Step Data: BatchTimeout => 0
[09:20:09.000] Step Data: Parameters =>
[09:20:09.000] Step Data: Database =>
[09:20:09.000] Step Data: ConnectionString =>
[09:20:09.000] Step Data: AcquireLock => False
[09:20:09.000] Step Data: Condition =>
[09:20:09.000] Step Data: Services =>
[09:20:09.000] Step Data: SnapshotOnly => False
[09:20:09.000] It took 0 ms to retrieve script(s)
[09:20:09.000] Database: Tfs_DefaultCollection, Sql Instance: .\DEVEDITION
[09:20:09.000] Maximum time allowed to running under servicing lock: 0 seconds
[09:20:09.000] Maximum time allowed for session blocking executing script: 0 seconds
[09:20:09.853] SQL Info: @SPID=106
[09:20:10.967] Execution of script "DeleteApplicationSnapshotData.sql" took 0:00:00.117.
[09:20:10.967] Execution of script "DropCollectionSnapshotSchema.sql" took 0:00:00.003.
[09:20:10.967] Execution of script "DropFrameworkJobSnapshotSchema.sql" took 0:00:00.04.
[09:20:10.967] Execution of script "DropFrameworkIdentitySnapshotSchema.sql" took 0:00:00.491.
[09:20:10.967] [Error] 1 error(s) occurred while executing DropFrameworkIdentitySnapshotSchema.sql script.
[09:20:10.967] Failed batch starts on line: 124.
[09:20:10.967] Error: 3732, Level: 16, State: 1, Batch Line: 18, Script Line: 141
[09:20:10.967] Message: Cannot drop type 'dbo.typ_GroupTable3' because it is being referenced by object 'prc_UpdateGroupAudit'. There may be other objects that reference this type.
[09:20:10.967] ================ Failed batch begin ==========================
[09:20:10.967] BEGIN TRAN
[09:20:10.967] IF TYPE_ID('MemO.typ_MembersOf2') IS NOT NULL DROP TYPE MemO.typ_MembersOf2
[09:20:10.967] IF TYPE_ID('MemO.typ_Members2') IS NOT NULL DROP TYPE MemO.typ_Members2
[09:20:10.967] IF TYPE_ID('dbo.typ_IdentityTable10') IS NOT NULL DROP TYPE dbo.typ_IdentityTable10
[09:20:10.967] IF TYPE_ID('dbo.typ_IdentityRepairChangeTable') IS NOT NULL DROP TYPE dbo.typ_IdentityRepairChangeTable
[09:20:10.967] IF TYPE_ID('dbo.typ_IdentityQueueTable') IS NOT NULL DROP TYPE dbo.typ_IdentityQueueTable
[09:20:10.967] IF TYPE_ID('dbo.typ_IdentityMembershipTable') IS NOT NULL DROP TYPE dbo.typ_IdentityMembershipTable
[09:20:10.967] IF TYPE_ID('dbo.typ_IdentityKeyMapAudit') IS NOT NULL DROP TYPE dbo.typ_IdentityKeyMapAudit
[09:20:10.967] IF TYPE_ID('dbo.typ_IdentityKeyMap') IS NOT NULL DROP TYPE dbo.typ_IdentityKeyMap
[09:20:10.967] IF TYPE_ID('dbo.typ_IdentityIdTranslationTable') IS NOT NULL DROP TYPE dbo.typ_IdentityIdTranslationTable
[09:20:10.967] IF TYPE_ID('dbo.typ_IdentityExtensionTable2') IS NOT NULL DROP TYPE dbo.typ_IdentityExtensionTable2
[09:20:10.967] IF TYPE_ID('dbo.typ_IdentityAuditTable') IS NOT NULL DROP TYPE dbo.typ_IdentityAuditTable
[09:20:10.967] IF TYPE_ID('dbo.typ_DescriptorTable3') IS NOT NULL DROP TYPE dbo.typ_DescriptorTable3
[09:20:10.967] IF TYPE_ID('dbo.typ_DescriptorTable2') IS NOT NULL DROP TYPE dbo.typ_DescriptorTable2
[09:20:10.967] IF TYPE_ID('MemO.typ_MembersOf') IS NOT NULL DROP TYPE MemO.typ_MembersOf
[09:20:10.967] IF TYPE_ID('MemO.typ_Members') IS NOT NULL DROP TYPE MemO.typ_Members
[09:20:10.967] IF TYPE_ID('dbo.typ_GroupUpdateTable') IS NOT NULL DROP TYPE dbo.typ_GroupUpdateTable
[09:20:10.967] IF TYPE_ID('dbo.typ_GroupTable3') IS NOT NULL DROP TYPE dbo.typ_GroupTable3
[09:20:10.967] IF TYPE_ID('dbo.typ_GroupScopeTable2') IS NOT NULL DROP TYPE dbo.typ_GroupScopeTable2
[09:20:10.967] IF TYPE_ID('dbo.typ_GroupMembershipTable2') IS NOT NULL DROP TYPE dbo.typ_GroupMembershipTable2
[09:20:10.967] IF TYPE_ID('dbo.typ_GroupMembershipTable') IS NOT NULL DROP TYPE dbo.typ_GroupMembershipTable
[09:20:10.967] COMMIT
[09:20:10.967] ================ Failed batch end ============================
[09:20:11.063] Microsoft.TeamFoundation.Framework.Server.SqlScriptException: 1 error(s) occurred while executing DropFrameworkIdentitySnapshotSchema.sql script.
[09:20:11.063] Failed batch starts on line: 124.
[09:20:11.063] Error: 3732, Level: 16, State: 1, Batch Line: 18, Script Line: 141
[09:20:11.063] Message: Cannot drop type 'dbo.typ_GroupTable3' because it is being referenced by object 'prc_UpdateGroupAudit'. There may be other objects that reference this type.
[09:20:11.063] ================ Failed batch begin ==========================
[09:20:11.063] BEGIN TRAN
[09:20:11.063] IF TYPE_ID('MemO.typ_MembersOf2') IS NOT NULL DROP TYPE MemO.typ_MembersOf2
[09:20:11.063] IF TYPE_ID('MemO.typ_Members2') IS NOT NULL DROP TYPE MemO.typ_Members2
[09:20:11.063] IF TYPE_ID('dbo.typ_IdentityTable10') IS NOT NULL DROP TYPE dbo.typ_IdentityTable10
[09:20:11.063] IF TYPE_ID('dbo.typ_IdentityRepairChangeTable') IS NOT NULL DROP TYPE dbo.typ_IdentityRepairChangeTable
[09:20:11.063] IF TYPE_ID('dbo.typ_IdentityQueueTable') IS NOT NULL DROP TYPE dbo.typ_IdentityQueueTable
[09:20:11.063] IF TYPE_ID('dbo.typ_IdentityMembershipTable') IS NOT NULL DROP TYPE dbo.typ_IdentityMembershipTable
[09:20:11.063] IF TYPE_ID('dbo.typ_IdentityKeyMapAudit') IS NOT NULL DROP TYPE dbo.typ_IdentityKeyMapAudit
[09:20:11.063] IF TYPE_ID('dbo.typ_IdentityKeyMap') IS NOT NULL DROP TYPE dbo.typ_IdentityKeyMap
[09:20:11.063] IF TYPE_ID('dbo.typ_IdentityIdTranslationTable') IS NOT NULL DROP TYPE dbo.typ_IdentityIdTranslationTable
[09:20:11.063] IF TYPE_ID('dbo.typ_IdentityExtensionTable2') IS NOT NULL DROP TYPE dbo.typ_IdentityExtensionTable2
[09:20:11.063] IF TYPE_ID('dbo.typ_IdentityAuditTable') IS NOT NULL DROP TYPE dbo.typ_IdentityAuditTable
[09:20:11.063] IF TYPE_ID('dbo.typ_DescriptorTable3') IS NOT NULL DROP TYPE dbo.typ_DescriptorTable3
[09:20:11.063] IF TYPE_ID('dbo.typ_DescriptorTable2') IS NOT NULL DROP TYPE dbo.typ_DescriptorTable2
[09:20:11.063] IF TYPE_ID('MemO.typ_MembersOf') IS NOT NULL DROP TYPE MemO.typ_MembersOf
[09:20:11.063] IF TYPE_ID('MemO.typ_Members') IS NOT NULL DROP TYPE MemO.typ_Members
[09:20:11.063] IF TYPE_ID('dbo.typ_GroupUpdateTable') IS NOT NULL DROP TYPE dbo.typ_GroupUpdateTable
[09:20:11.063] IF TYPE_ID('dbo.typ_GroupTable3') IS NOT NULL DROP TYPE dbo.typ_GroupTable3
[09:20:11.063] IF TYPE_ID('dbo.typ_GroupScopeTable2') IS NOT NULL DROP TYPE dbo.typ_GroupScopeTable2
[09:20:11.063] IF TYPE_ID('dbo.typ_GroupMembershipTable2') IS NOT NULL DROP TYPE dbo.typ_GroupMembershipTable2
[09:20:11.063] IF TYPE_ID('dbo.typ_GroupMembershipTable') IS NOT NULL DROP TYPE dbo.typ_GroupMembershipTable
[09:20:11.063] COMMIT
[09:20:11.063] ================ Failed batch end ============================
[09:20:11.063] at Microsoft.TeamFoundation.Framework.Server.SqlScriptResourceComponent.ExecuteScripts(List`1 scripts, SqlParameter[] sqlParameters, List`1 serviceVersions, Boolean acquireLock, TimeSpan maxServicingLockTime, TimeSpan maxBlockingSessionTime,
Int32 sqlCommandTimeout, Boolean testRerunnability, Boolean monitorBlocking, Boolean snapshotOnly)
[09:20:11.063] at Microsoft.VisualStudio.Services.Framework.SqlStepPerformer.ExecuteSql(ServicingContext servicingContext, ISqlConnectionInfo connectionInfo, SqlStepData sqlStepData)
[09:20:11.063] at Microsoft.TeamFoundation.Framework.Server.TeamFoundationStepPerformerBase.PerformHostStep(String servicingOperation, ServicingOperationTarget target, IServicingStep servicingStep, String stepData, ServicingContext servicingContext)
[09:20:11.063] at Microsoft.TeamFoundation.Framework.Server.TeamFoundationStepPerformerBase.PerformStep(String servicingOperation, ServicingOperationTarget target, String stepType, String stepData, ServicingContext servicingContext)
[09:20:11.063] at Microsoft.TeamFoundation.Framework.Server.ServicingStepDriver.PerformServicingStep(ServicingStep step, ServicingContext servicingContext, ServicingStepGroup group, ServicingOperation servicingOperation, Int32 stepNumber,
Int32 totalSteps)
[09:20:11.063] Step failed: Drop existing framework snapshot schema if it exists. Execution time: 2 seconds.
[09:20:11.063] [StepDuration] 2.064617
[09:20:11.100] [GroupDuration] 3.6761413
[09:20:11.100] [OperationDuration] 3.6761846
[09:20:11.283] Clearing dictionary, removing all items.