onlyutkarsh / ExportImportBuildDefinition

Export and Import your build definitions. Useful for recreating all the build steps, variables, schedules, etc in a different team project/account.
http://bit.ly/exportimportbuild
Other
17 stars 8 forks source link

Import Error: TFS.WebApi.Exception: The collection must contain at least one element. #26

Closed zerosnap closed 7 years ago

zerosnap commented 7 years ago

Installed product versions

Description

When importing a build definition, I receive the following error: TFS.WebApi.Exception: The collection must contain at least one element.

Parameter name: BranchFilters

Steps to recreate

  1. Import definition.

Current behavior

Throws above error and fails

Expected behavior

Should import definition without error

zerosnap commented 7 years ago

Note: I imported another definition that contained BranchFilters from the triggers tab, but it completed successfully.

zerosnap commented 7 years ago

Deleting the existing triggers solved the issue. Those are easy enough to create manually.