Popular Posts

Saturday, June 11, 2011

TF14098: Access Denied creating branch

When creating a branch from main to release you may get an error like this:
Branch from Main
TF14098: Access Denied: User CTAC\dgarner needs Read permissions(s)
for $/RxInfoInquiry/Main/*.
 
Even though you're able to get latest on main & build/run the app, there is some random file/folder underneath the main branch that you don't have permissions to. This is causing you to not be able to make a new release branch.
 
You'll need to find the file & add read permissions to [DefaultCollection]\Contributors (assuming you're a developer & in that group).
 
There is a command-line utility called "TF" that you can use to interact with TFS. You can access it through the
"Visual Studio Command Prompt" found on your start menu.
To find the problem file, you'll need to recurse through all the items in the project & check their permissions.
 
 
Here's the basic steps I used. The program I had an issue with was RxInfoInquiry.
This will tell you the permissions of each folder in your project:
tf permission c:\source\RxInfoInquiry /recursive > allPermissions.txt
I then opened the file in an editor supporting regex's & I searched for any folder where Contributors didn't have read permissions.
Once the file is found & the read permissions have been granted, you should be able to create the new release branch.
If you're unlucky & it's a file, rather than a whole folder with the missing permissions, you'll need to check individual files instead of folders.
To get a list of all items in the project:
tf dir c:\source\RxInfoInquiry /recursive > c:\temp\allFiles.txt
You could take this list & convert each filename to a "tf permission" command & run it as a batch file. Then, search for the file with the missing permissions.

No comments:

Post a Comment