none
Importing Bug Item after changes failed with TF237070

    Question

  • Hi

    I am trying to enable Test Case management for Upgraded TFS projects to connect to Test Manager. I am following the post by Lakhminder. I made the changes to Bug.XML file and when importing it fails with the error  

    TF212019: Work item tracking schema validation error at row 92, column 10: The element 'SUGGESTEDVALUES' has incomplete content. List of possible elements expected: 'GLOBALLIST, LISTITEM'.

    TF212019: Work item tracking schema validation error at row 102, column 10: Theelement 'SUGGESTEDVALUES' has incomplete content. List of possible elements expected: 'GLOBALLIST, LISTITEM'.

    TF237070: Importing the definition failed. The definition you are trying toimport did not validate against the schema. Edit the definition, then try to import it again.

    Operation failed.

    Here is the XML where it is complaining.

    <FIELD name="Found In" refname="Microsoft.VSTS.Build.FoundIn" type="String" reportable="dimension">

            <HELPTEXT>The build in which the bug was found</HELPTEXT>

            <SUGGESTEDVALUES expanditems="true">

              <LISTITEM value="&lt;None&gt;" />

            </SUGGESTEDVALUES>

            <SUGGESTEDVALUES expanditems="true" filteritems="excludegroups" />

            <SUGGESTEDVALUES expanditems="true" filteritems="excludegroups">

              <GLOBALLIST name="Builds - Project_Name" />

            </SUGGESTEDVALUES>

          </FIELD>

     

    <FIELD name="Integration Build" refname="Microsoft.VSTS.Build.IntegrationBuild" type="String" reportable="dimension">

            <HELPTEXT>The build in which the bug was fixed</HELPTEXT>

            <SUGGESTEDVALUES expanditems="true">

              <LISTITEM value="&lt;None&gt;" />

            </SUGGESTEDVALUES>

            <SUGGESTEDVALUES expanditems="true" filteritems="excludegroups" />

            <SUGGESTEDVALUES expanditems="true" filteritems="excludegroups">

              <GLOBALLIST name="Builds - Project_Name" />

            </SUGGESTEDVALUES>

          </FIELD>

     

     

    Thanks

    Friday, December 09, 2011 10:43 PM

Answers

  • I don't think you can have empty SUGGESTEDVALUES elements, remove the empt ones so you get an xml like this

     

    <FIELD name="Found In" refname="Microsoft.VSTS.Build.FoundIn" type="String" reportable="dimension">
            <HELPTEXT>The build in which the bug was found</HELPTEXT>
            <SUGGESTEDVALUES expanditems="true">
              <LISTITEM value="&lt;None&gt;" />
            </SUGGESTEDVALUES>
            <SUGGESTEDVALUES expanditems="true" filteritems="excludegroups">
              <GLOBALLIST name="Builds - Project_Name" />
            </SUGGESTEDVALUES>
          </FIELD>
    
    
    <FIELD name="Integration Build" refname="Microsoft.VSTS.Build.IntegrationBuild" type="String" reportable="dimension">
            <HELPTEXT>The build in which the bug was fixed</HELPTEXT>
            <SUGGESTEDVALUES expanditems="true">
              <LISTITEM value="&lt;None&gt;" />
            </SUGGESTEDVALUES>
            <SUGGESTEDVALUES expanditems="true" filteritems="excludegroups">
              <GLOBALLIST name="Builds - Project_Name" />
            </SUGGESTEDVALUES>
          </FIELD>
    


    One other way would be to simply remove all suggestedvalues tag, import the "empty" field and then use the powertools processeditor to add the suggested values.

     

    • Marked as answer by mrgandra Monday, December 12, 2011 7:09 PM
    Saturday, December 10, 2011 8:57 AM

All replies

  • I don't think you can have empty SUGGESTEDVALUES elements, remove the empt ones so you get an xml like this

     

    <FIELD name="Found In" refname="Microsoft.VSTS.Build.FoundIn" type="String" reportable="dimension">
            <HELPTEXT>The build in which the bug was found</HELPTEXT>
            <SUGGESTEDVALUES expanditems="true">
              <LISTITEM value="&lt;None&gt;" />
            </SUGGESTEDVALUES>
            <SUGGESTEDVALUES expanditems="true" filteritems="excludegroups">
              <GLOBALLIST name="Builds - Project_Name" />
            </SUGGESTEDVALUES>
          </FIELD>
    
    
    <FIELD name="Integration Build" refname="Microsoft.VSTS.Build.IntegrationBuild" type="String" reportable="dimension">
            <HELPTEXT>The build in which the bug was fixed</HELPTEXT>
            <SUGGESTEDVALUES expanditems="true">
              <LISTITEM value="&lt;None&gt;" />
            </SUGGESTEDVALUES>
            <SUGGESTEDVALUES expanditems="true" filteritems="excludegroups">
              <GLOBALLIST name="Builds - Project_Name" />
            </SUGGESTEDVALUES>
          </FIELD>
    


    One other way would be to simply remove all suggestedvalues tag, import the "empty" field and then use the powertools processeditor to add the suggested values.

     

    • Marked as answer by mrgandra Monday, December 12, 2011 7:09 PM
    Saturday, December 10, 2011 8:57 AM
  • Hi mrgandra,

    How about the issue now?

    Mattias has provided information in the reply, is there any help of this issue?

    If anything is unclear, please free feel to let me know.

    Best Regards,


    Lily Wu [MSFT]
    MSDN Community Support | Feedback to us
    Monday, December 12, 2011 7:37 AM
    Moderator