Upload Template Error and Visual Studio 2005 Team System Extensibility Kit Beta 3

I'm having errors when I try to upload a template created with Beta 2 into Beta 3.  On all of the DateTime fields I have created, I get the following sort of error.

Time: 9/28/2005 4:02:46 PM
Module: Work Item Tracking
Exception Type: System.Xml.Schema.XmlSchemaValidationException
Exception Message: The 'field' attribute is invalid - The value 'Date Started' is invalid according to its datatype 'http://schemas.microsoft.com/VisualStudio/2005/workitemtracking/typelib:ReferenceFieldName' - The Pattern constraint failed.

The code snippet for the field is as follows

<FIELD name="Date Started" refname="MyCompany.DateStarted" type="DateTime" reportable="dimension">
<
HELPTEXT>The date the work item was started</HELPTEXT>
<
WHENNOT field="MyCompany.DateDesigned" value="">
<
REQUIRED/>
</
WHENNOT>
</
FIELD>

If anyone could tell me what needs to change, I'd be very thankful.

Also, will there be an Extensibility Kit for Beta 3 as there was for Beta 2, with documentation about how to modify the template files



Answer this question

Upload Template Error and Visual Studio 2005 Team System Extensibility Kit Beta 3

  • Goodway

    I tried importing the aboved code using Witimport and it is successful. I just added definition for MyCompany.DateDesigned. Could you send us the complete error message from the log

    Thanks
    Sagar

  • Herwin Grauel

    I figured it out.  I was looking at the last file listed in the error log, which was actually the last one that was correctly loading.  The error log doesn't do a good job of showing which file the error is in.

    Also, for others with the same error, the error itself is due to Beta 2 allowing WhenNot to use the field's display name, but Beta 3 requires the refname.

  • PLCweaver

    Eric you are right that changing from FieldName to RefName would fix the issue. Any reference to the field should use ReferenceName - in conditions, copy/default rules, and on the form.

    We will look into the traceability aspects of the issues encountered during the template upload process.

    < xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />




  • licheca

    Regarding your question about the beta 3 extensibility kit, that should be released a couple of weeks from now.

    Buck

  • Upload Template Error and Visual Studio 2005 Team System Extensibility Kit Beta 3