Duplicate Project Names

I am running TFS Beta 3. I have a situation where I have cancelled the creation of a new project (during the phase of it downloading the templates) and now I can't re-create the project with the same name. It says it already exists, although its not available as an Add Existing Project either.

Is there anything I can run on the server that will  validate all existing project data in the database

Regards

Graham


Answer this question

Duplicate Project Names

  • WhPonds

    And the solution is......

    TFSDeleteProject REQUIRES Sql Reporting Services to have a folder with the name of the project in it to be able to delete the project.

    I created an empty folder called "Reusable Code" then ran TFSDeleteProject and it ran through correctly.

  • FranklinIssac

    Hi Adam,

    I tried the TFSDeleteProject with and without the /force option and both times it reported:

    The item '/<projectname>' cannot be found ---> The item '/<projectname' cannot be found.

    If I peek in to the db then there is a project named <projectname> in  TFSIntegration.tbl_projects!!

    Graham

  • EricJ

    Thanks for the info Michael.

    Unfortunately in the end I needed this server working as planned so I simple uninstalled TFS and STS, removed their databases and reinstalled.

    All is working now ;-)

    Graham

  • vivek23

    If Graham's suggestion doesn't work, try just "/server:TFSSERVER" instead of "/TeamFoundationServer:TFSSERVER".

    Best of luck!

  • Protean

     Adam Singer MSFT wrote:

    Do you recall at what point in the project creation you cancelled Are you able to create projects with other names


    Is was during the download of the template. It said that it had cancelled the project creation, but then I was unable to re-create a project with the same name. I can create Projects with different names ok.

    Graham

  • Kevinacci

    Graham,

    Do you recall at what point in the project creation you cancelled Are you able to create projects with other names

    Cheers,
    Adam

  • perfect_alcon

    Spot on guys. Thanks for that. Smile

  • Jody Byrd

    One option is to try to force deletion of the old project. You'll want to use the TFSDeleteProject executable (used to be "DeleteTeamProject"), and might find the following post helpful:

    http://forums.microsoft.com/msdn/ShowPost.aspx PostID=4677

    Best of luck!

  • L Nut

    Joe,

    try preceeding your server name with /TeamFoundationServer:. So your command line should be:

    TFSDeleteProject /q /TeamFoundationServer:TFSSERVER TeamProject1

    HTH

    Graham

  • gary.ruan

    I've got a similar problem where project creation failed due to not having Sharepoint permissions.

    Now I've got a source control folder for a project, and an entry in tbl_Projects but the project won't show up in Team Explorer, or be deleted using TFSDeleteProject.

    My command line is:

    TFSDeleteProject.exe /force /q /server:vsts "Reusable Code"

    The item '/Reusable Code' cannot be found. ---> The item '/Reusable Code' cannot be found.

  • Xin Guo

    Hi Adam,
    I was going to mention TFSDeleteProject.exe but I wasn't able to run it successfully. The help states that:
    Usage: DeleteTeamProject [/q] [/force] </TeamFoundationServer:<server name>> <team project name>
    (Help message still shows old exe name)
    So by that, the command I tried goes like this:
    TFSDeleteProject /q TFSSERVER TeamProject1
    where TFSSERVER is my Team Foundation Server and TeamProject1 is a cancelled team project. The /force switch doesnt help either.
    All I get when I execute this is the help text recurring and no deletion.

    Have the arguments and/or syntax changed from the DeleteTeamProject.exe to the TFSDeleteProject.exe It's weird because I know the DeleteTeamProject exe worked.



  • Duplicate Project Names