简体   繁体   中英

VS403250: The dacpac or source database is not a detached TFS Collection database

I am working on migrating the projects from on premise TFS Server to VSTS, for that I followed this link .

But when I run this command TfsMigrator import /importFile:C:\TFSDataImportFiles\import.json , I got the error like VS403250: The dacpac or source database is not a detached TFS Collection database even though I detached the collection from my on premise TFS server.

在此处输入图像描述

Can you please tell me how to resolve the above error as soon as possible?

I got confused with the difference between detaching the database and detaching the collection. You have to detach he collection from either the TFS admin console or the tfsconfig command line utility on the application tier. I prefer the command line. FYI: My first attempt to re-attach the collection using the admin console got hung up and appeared to run for six hours before I restarted the app tier and it finally errored out. Attaching a 160 GB collection with 48 projects only took a few minutes when it worked correctly using tfsconfig.

You create your dacpac or backup the collection after detaching the collection. Then if it is a dry run, re- attach the collection.

According to the troubleshooting document you need to detach the collection database, then generate the DACPAC again.

VS403250: The dacpac is not a detached TFS Collection database.

The DACPAC is not built off a detached collection. The collection database will need to be detached and the DACPAC generated again.

I am having the exact same issue and I have already detach the collection and have also create the DACPAC file.

[Info   @11:26:21.170] Import couldn't be started due to an error!
[Error  @11:26:21.171] + [Error] VS403250: The dacpac or source database is not a detached Azure DevOps Server Collection database. Please refer to the troubleshooting documentation for more details; https://aka.ms/AzureDevOpsImportTroubleshooting
[Info   @11:26:21.172] See our documentation for assistance: https://aka.ms/AzureDevOpsImportTroubleshooting
[Error  @11:26:21.180] Microsoft.VisualStudio.Services.WebApi.SourceIsNotADetachedDatabaseException: VS403250: The dacpac or source database is not a detached Azure DevOps Server Collection database. Please refer to the troubleshooting documentation for more details; https://aka.ms/AzureDevOpsImportTroubleshooting
                          at Microsoft.VisualStudio.Services.WebApi.VssHttpClientBase.<HandleResponseAsync>d__53.MoveNext()

I followed all the steps mentioned in https://learn.microsoft.com/en-us/azure/devops/migrate/migration-import-large-collections?view=azure-devops as my DB is huge.

For dryrun, i create a collection on a new server and restore the DB and that was successful but if I do from the actual server (on-perm) where I have Azure server i get this error.

Screenshot of the server

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM