Geeks With Blogs
Jeff Ferguson Irritating other people since 1967

I just ran across this error while using the Team Foundation Server Power Tools to import a work item template XML document into a TFS instance:

Error 0x8013150A: An error relating to security occurred.

So it’s a security issue, right? No.

As it turns out, I had edited the XML file in Notepad and added values to a field definition with the ALLOWEDVALUES rule. In my over-zealous copy-and-paste efforts, I had added a few of the allowable values in more than one place:

<FIELD reportable="dimension" type="String" name="MyName" refname="MyProject.MyName">
  <ALLOWEDVALUES>
    <LISTITEM value="Value1" />
    <LISTITEM value="Value2" />
    <LISTITEM value="Value3" />
    <LISTITEM value="Value1" />
    <!-- more values -->
  </ALLOWEDVALUES>
</FIELD>

The attempt to import this file into the TFS Process Editor Power Tool failed with the 8013150A error. After playing with security rights for a while, to no avail, I decided to double check my edits. I found and removed the duplicate entries in Notepad and tried again to load the file into TFS Process Editor Power Tool. Success!

Just thought that I would document the issue in case someone else runs across the same problem. The moral of the story is this: an error message of “an error relating to security occurred” does not necessarily mean that you have a security issue with your file. Check the contents of the file and make sure that is valid with regards to both syntax and semantics. In particular, do not list an item in an ALLOWEDVALUES list more than once … or you’ll get a security error … which makes perfect sense … I guess …

Posted on Monday, March 30, 2009 9:30 AM | Back to top


Comments on this post: Error 8013150A Importing TFS Work Item Templates with TFS Power Tools

No comments posted yet.
Your comment:
 (will show your gravatar)


Copyright © Jeff Ferguson | Powered by: GeeksWithBlogs.net