• Blog
  • Info Support
  • Career
  • Training
  • International Group
  • Info Support
  • Blog
  • Career
  • Training
  • International Group
  • Search
logo InfoSupport
  • Latest blogs
  • Popular blogs
  • Experts
      • Alles
      • Bloggers
      • Speakers
  • Meet us
  • About us
    • nl
    • en
    • .NET
    • Advanced Analytics
    • Agile
    • Akka
    • Alexa
    • Algorithms
    • Api's
    • Architectuur
    • Artificial Intelligence
    • ATDD
    • Augmented Reality
    • AWS
    • Azure
    • Big Data
    • Blockchain
    • Business Intelligence
    • Cloud
    • Code Combat
    • Cognitive Services
    • Communicatie
    • Containers
    • Continuous Delivery
    • CQRS
    • Cyber Security
    • Dapr
    • Data
    • Data & Analystics
    • Data Science
    • Data Warehousing
    • Databricks
    • DevOps
    • Digital Days
    • Docker
    • eHealth
    • Enterprise Architecture
    • Hacking
    • Infrastructure & Hosting
    • Innovatie
    • Integration
    • Internet of Things
    • Java
    • Machine Learning
    • Microservices
    • Microsoft
    • Microsoft Bot Framework
    • Microsoft Data Platform
    • Mobile Development
    • Mutation Testing
    • Open source
    • Pepper
    • Power BI
    • Privacy & Ethiek
    • Python
    • Quality Assistance & Test
    • Quality Assurance & Test
    • Requirements Management
    • Scala
    • Scratch
    • Security
    • SharePoint
    • Software Architecture
    • Software development
    • Software Factory
    • SQL Server
    • SSL
    • Start-up
    • Startup thinking
    • Stryker
    • Test Quality
    • Testing
    • TLS
    • TypeScript
    • Various
    • Web Development
    • Web-scale IT
    • Xamarin
    • Alles
    • Bloggers
    • Speakers
Home » Assertion Failure exception, "rule refers to a non-existing field", when opening Work Items from Excel
  • Assertion Failure exception, "rule refers to a non-existing field", when opening Work Items from Excel

    • By Marcel de Vries
    • .NET 14 years ago
    • .NET 0 comments
    • .NET .NET
    Assertion Failure exception, "rule refers to a non-existing field", when opening Work Items from Excel

    *Moved to: http://fluentbytes.com/assertion-failure-exception-rule-refers-to-a-non-existing-field-when-opening-work-items-from-excel/

    For some time I get the following error dialogs when I open a set of workitems in Excel using the TFS addin

    The problem appeared to be caused by the fact that the Team Build integration process adds in a rule for a field called “Microsoft.VSTS.Build.FoundIn” even when the field is not in use for a work item type. And as you can guess we removed this field from some of our work items J

    Now I had some Great help from the Microsoft development team in assessing this issue. Amit Ghosh was so kind to provide me with a script that I could run to see what which work items are causing these problems. You can see the script you need to run below.

    select distinct c.String as WITName, w.ProjectID as ProjectID–, w.*, wu.*, r.*
    from WorkItemTypes as w
    join WorkItemTypeUsages as wu
    on w.WorkItemTypeID = wu.WorkItemTypeID
    join RulesAreUsed as r
    on r.RootTreeID = w.ProjectID
    join Constants as c
    on w.nameconstantid = c.constid
    and w.nameconstantid = r.fld1isconstid
    and r.ThenFldID = 10016 — THis is the ID of the Microsoft.VSTS.Build.FoundIn field
    and wu.fDeleted = 1 — Field is not in use in the WIT
    and r.fDeleted = 0  — But there is a non-deleted rule which references it
    select [Name] as ProjectName from TreeNodes
    where ID = 69 — ID of project from previous Query.

    Now this will give you a list of work item types that can cause the problem. Unfortunately, there is no easy way to fix this issue since TFS will keep adding the rule.(fixing it on the server will cause the problem to reappear when the Build system processes a notification again). The easiest thing to do would be to add this field back into the Work Item Types from which it is missing.

    And that is exactly what I did. I just added the definitions back in again using the TFS Power Tools.

    If you don't use the tools, you can do it by hand adding the following XML to the Fields section:

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

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

    &nbsp; <SUGGESTEDVALUES>

    &nbsp;&nbsp;&nbsp; <LISTITEM value=&quot;&lt;None&gt;&quot; />

    &nbsp; </SUGGESTEDVALUES>
    </FIELD>

    The fields are now in the work items but we just don&#039;t make it visible on the form. That has from an end user perspective the same result as removing the field, which is fine for us.

    &nbsp;

    Follow my new blog on http://fluentbytes.com

    Share this

Marcel de Vries

View profile

Related IT training

Go to training website

Related Consultancy solutions

Go to infosupport.com

Related blogs

  • Innovative patterns in software quality management

    Innovative patterns in software quality management Tom van den Berg - 1 month ago

  • Developing a Service Fabric service using another host

    Developing a Service Fabric service using another host Tim van de Lockand - 5 months ago

  • Adding a package to your private WinGet.RestSource feed…

    Adding a package to your private WinGet.RestSource feed… Léon Bouquiet - 10 months ago

Related downloads

  • Beslisboom voor een rechtmatig ‘kopietje productie’

  • Klantreferentie: Remmicom zet wetgeving om in intellige…

  • Klantreferentie RDW: Samenwerken voor veilig en vertrou…

  • Klantreferentie BeFrank: Strategische IT voor een innov…

  • Wie durft te experimenteren met data in de zorg?

Related videos

  • mijnverzekeringenopeenrij.nl

    mijnverzekeringenopeenrij.nl

  • Winnaar | Innovation Projects 2017

    Winnaar | Innovation Projects 2017

  • Explore | Info Support & HAN & Poliskluis

    Explore | Info Support & HAN & Poliskluis

  • LifeApps bij HagaZiekenhuis

    LifeApps bij HagaZiekenhuis

  • Info Support | Bedrijfsfilm

    Info Support | Bedrijfsfilm

Nieuwsbrief

* verplichte velden

Contact

  • Head office NL
  • Kruisboog 42
  • 3905 TG Veenendaal
  • T +31 318 552020
  • Call
  • Mail
  • Directions
  • Head office BE
  • Generaal De Wittelaan 17
  • bus 30 2800 Mechelen
  • T +32 15 286370
  • Call
  • Mail
  • Directions

Follow us

  • Twitter
  • Facebook
  • Linkedin
  • Youtube

Newsletter

Sign in

Extra

  • Media Library
  • Disclaimer
  • Algemene voorwaarden
  • ISHBS Webmail
  • Extranet
Beheer cookie toestemming
Deze website maakt gebruik van Functionele en Analytische cookies voor website optimalisatie en statistieken.
Functioneel
Altijd actief
De technische opslag of toegang is strikt noodzakelijk voor het legitieme doel het gebruik mogelijk te maken van een specifieke dienst waarom de abonnee of gebruiker uitdrukkelijk heeft gevraagd, of met als enig doel de uitvoering van de transmissie van een communicatie over een elektronisch communicatienetwerk.
Voorkeuren
De technische opslag of toegang is noodzakelijk voor het legitieme doel voorkeuren op te slaan die niet door de abonnee of gebruiker zijn aangevraagd.
Statistieken
De technische opslag of toegang die uitsluitend voor statistische doeleinden wordt gebruikt. De technische opslag of toegang die uitsluitend wordt gebruikt voor anonieme statistische doeleinden. Zonder dagvaarding, vrijwillige naleving door uw Internet Service Provider, of aanvullende gegevens van een derde partij, kan informatie die alleen voor dit doel wordt opgeslagen of opgehaald gewoonlijk niet worden gebruikt om je te identificeren.
Marketing
De technische opslag of toegang is nodig om gebruikersprofielen op te stellen voor het verzenden van reclame, of om de gebruiker op een website of over verschillende websites te volgen voor soortgelijke marketingdoeleinden.
Beheer opties Beheer diensten Beheer leveranciers Lees meer over deze doeleinden
Voorkeuren
{title} {title} {title}