Link to home
Start Free TrialLog in
Avatar of Kenneth Jørgensen
Kenneth JørgensenFlag for Denmark

asked on

I can not create a project on TFS 2017 with Custom ProcessTemplate

I can't  create a Project on TFS 2017 with a custom process template.

i get this error log from the server

The following element contains an error: PortfolioBacklog(Microsoft.EpicCategory)/States. TF400587: This element defines the states for work items that appear on your backlog. Each state must exist in at least one of the work item types belong to category defined in: 'PortfolioBacklog(Microsoft.EpicCategory)/States'. The following state does not exist in any of the work item types: Committed, Test.
[08:09:49.777]   The following element contains an error: PortfolioBacklog(Microsoft.FeatureCategory)/States. TF400587: This element defines the states for work items that appear on your backlog. Each state must exist in at least one of the work item types belong to category defined in: 'PortfolioBacklog(Microsoft.FeatureCategory)/States'. The following state does not exist in any of the work item types: Committed, Test.
[08:09:49.777]   The following element contains an error: RequirementBacklog/States. TF400587: This element defines the states for work items that appear on your backlog. Each state must exist in at least one of the work item types belong to category defined in: 'RequirementBacklog/States'. The following state does not exist in any of the work item types: InProgress, Test.
[08:09:49.777]   The following element contains an error: TaskBacklog/States. TF400587: This element defines the states for work items that appear on your backlog. Each state must exist in at least one of the work item types belong to category defined in: 'TaskBacklog/States'. The following state does not exist in any of the work item types: Committed, Test.
[08:09:49.777]   The following element contains an error: BugWorkItems/BugWorkItems. TF400506: This element defines the states for work items that represent Bugs or Defects. Each state must exist in at least one of the work item types that are defined in: BugWorkItems. The following states do not exist in any of the work item types: InProgress, Test.
[08:09:49.997]   Microsoft.TeamFoundation.Server.WebAccess.WorkItemTracking.Common.InvalidProjectSettingsException: The following element contains an error: PortfolioBacklog(Microsoft.EpicCategory)/States. TF400587: This element defines the states for work items that appear on your backlog. Each state must exist in at least one of the work item types belong to category defined in: 'PortfolioBacklog(Microsoft.EpicCategory)/States'. The following state does not exist in any of the work item types: Committed, Test.
[08:09:49.997]   The following element contains an error: PortfolioBacklog(Microsoft.FeatureCategory)/States. TF400587: This element defines the states for work items that appear on your backlog. Each state must exist in at least one of the work item types belong to category defined in: 'PortfolioBacklog(Microsoft.FeatureCategory)/States'. The following state does not exist in any of the work item types: Committed, Test.
[08:09:49.997]   The following element contains an error: RequirementBacklog/States. TF400587: This element defines the states for work items that appear on your backlog. Each state must exist in at least one of the work item types belong to category defined in: 'RequirementBacklog/States'. The following state does not exist in any of the work item types: InProgress, Test.
[08:09:49.997]   The following element contains an error: TaskBacklog/States. TF400587: This element defines the states for work items that appear on your backlog. Each state must exist in at least one of the work item types belong to category defined in: 'TaskBacklog/States'. The following state does not exist in any of the work item types: Committed, Test.
[08:09:49.997]   The following element contains an error: BugWorkItems/BugWorkItems. TF400506: This element defines the states for work items that represent Bugs or Defects. Each state must exist in at least one of the work item types that are defined in: BugWorkItems. The following states do not exist in any of the work item types: InProgress, Test.
[08:09:49.997]      at Microsoft.TeamFoundation.Server.WebAccess.WorkItemTracking.Common.ProcessSettingsValidator.Validate(IVssRequestContext requestContext, OptionalFeatures featuresToValidate, Boolean validateStructureOnly)
[08:09:49.997]      at Microsoft.TeamFoundation.Server.WebAccess.WorkItemTracking.Common.ProjectConfigurationService.SetProcessSettings(IVssRequestContext requestContext, String projectUri, ProjectProcessConfiguration settings, Boolean skipValidation)
[08:09:49.997]      at Microsoft.TeamFoundation.Server.Deploy.TFCollection.Project.AgileSettingsImporter.ImportProcessConfiguration(String configurationDefinition, ProcessDescriptor processDescriptor)
[08:09:49.997]      at Microsoft.TeamFoundation.Server.Deploy.TFCollection.Project.AgileSettingsImporter.Import(IVssRequestContext requestContext, CommonStructureProjectInfo project, IProcessTemplate template, XmlElement processData, StringBuilder log)
[08:09:49.997]      at Microsoft.TeamFoundation.Server.Servicing.TFCollection.WorkItemStepPerformer.CreateTeamProject(ServicingContext servicingContext)
[08:09:49.997]      at Microsoft.TeamFoundation.Framework.Server.TeamFoundationStepPerformerBase.PerformHostStep(String servicingOperation, ServicingOperationTarget target, IServicingStep servicingStep, String stepData, ServicingContext servicingContext)
[08:09:49.997]      at Microsoft.TeamFoundation.Framework.Server.TeamFoundationStepPerformerBase.PerformStep(String servicingOperation, ServicingOperationTarget target, String stepType, String stepData, ServicingContext servicingContext)
[08:09:49.997]      at Microsoft.TeamFoundation.Framework.Server.ServicingStepDriver.PerformServicingStep(ServicingStep step, ServicingContext servicingContext, ServicingStepGroup group, ServicingOperation servicingOperation, Int32 stepNumber, Int32 totalSteps)
[08:09:49.997] Step failed: Create the Team Project. Execution time: 10 seconds.



what i have done:

i createde my custom ProcessTemplate, added som new states to the different kinds og backlogs elements.

XML: for the processConfig where the change have been made,

 <PortfolioBacklogs>
    <PortfolioBacklog category="Microsoft.EpicCategory" pluralName="Epics" singularName="Epic" workItemCountLimit="1000">
      <States>
        <State value="New" type="Proposed" />
        <State value="In Progress" type="InProgress" />
        <State value="Committed" type="InProgress" />
        <State value="Test" type="InProgress" />

        <State value="Done" type="Complete" />
      </States>
      <Columns>

the bold lines is the two new states for this category, i have add more states to the other categories, done in the same way as above.

please help
Avatar of Kenneth Jørgensen
Kenneth Jørgensen
Flag of Denmark image

ASKER

Found the Solotion to this problem.

I had not created the WIT that connected the new states in the Workflow.

Created them true VS2017 process tool

getting a new erro when i try to upload the updated Process Template,

Error:
---begin Exception entry---
Time: 2017-08-15T09:47:44
Module: Engine
Event Description: TF30162: Task "ProcessConfiguration" from Group "WorkItemTracking" failed
Exception Type: Microsoft.TeamFoundation.Client.PcwException
Exception Message: The 'Value' attribute is not declared.
Stack Trace:
   at Microsoft.VisualStudio.TeamFoundation.WorkItemTracking.WitPcwPlugin.PcwPluginComponentCreator.Validate(ProjectCreationContext ctxt, XmlNode taskXml)
   at Microsoft.VisualStudio.TeamFoundation.PCW.ProjectCreationEngine.TaskValidator.PerformTask(IProjectComponentCreator componentCreator, ProjectCreationContext context, XmlNode taskXml)
   at Microsoft.VisualStudio.TeamFoundation.PCW.ProjectCreationEngine.RunTask(Object taskObj)
--   Inner Exception   --
Exception Message: The 'Value' attribute is not declared. (type XmlSchemaValidationException)
Exception Stack Trace:    at System.Xml.Schema.XmlSchemaValidator.SendValidationEvent(XmlSchemaValidationException e, XmlSeverityType severity)
   at System.Xml.Schema.XmlSchemaValidator.SendValidationEvent(String code, String arg)
   at System.Xml.Schema.XmlSchemaValidator.ValidateAttribute(String lName, String ns, XmlValueGetter attributeValueGetter, String attributeStringValue, XmlSchemaInfo schemaInfo)
   at System.Xml.Schema.XmlSchemaValidator.ValidateAttribute(String localName, String namespaceUri, XmlValueGetter attributeValue, XmlSchemaInfo schemaInfo)
   at System.Xml.XsdValidatingReader.ValidateAttributes()
   at System.Xml.XsdValidatingReader.ProcessElementEvent()
   at System.Xml.XsdValidatingReader.ProcessReaderEvent()
   at System.Xml.XsdValidatingReader.Read()
   at Microsoft.TeamFoundation.ProcessConfiguration.Client.State.FromXml(IServiceProvider serviceProvider, XmlReader reader)
   at Microsoft.VisualStudio.Services.Common.Internal.XmlUtility.ArrayOfObjectFromXml[T](IServiceProvider serviceProvider, XmlReader reader, String arrayElementName, Boolean inline, Func`3 objectFromXmlElement)
   at Microsoft.TeamFoundation.ProcessConfiguration.Client.BacklogCategoryConfiguration.FromXml(IServiceProvider serviceProvider, XmlReader reader)
   at Microsoft.VisualStudio.Services.Common.Internal.XmlUtility.ArrayOfObjectFromXml[T](IServiceProvider serviceProvider, XmlReader reader, String arrayElementName, Boolean inline, Func`3 objectFromXmlElement)
   at Microsoft.TeamFoundation.ProcessConfiguration.Client.ProjectProcessConfiguration.FromXml(IServiceProvider serviceProvider, XmlReader reader)
   at Microsoft.TeamFoundation.ProcessConfiguration.Client.ProcessConfigurationHelpers.<>c__DisplayClass6_0.<LoadProcessConfiguration>b__0(XmlReader reader)
   at Microsoft.TeamFoundation.ProcessConfiguration.Client.ProcessConfigurationHelpers.GetConfigurationObject[T](String definition, String schemaName, Func`2 creator)
   at Microsoft.TeamFoundation.ProcessConfiguration.Client.ProcessConfigurationHelpers.LoadProcessConfiguration(TfsTeamProjectCollection tpc, String xmlDefinition)
   at Microsoft.VisualStudio.TeamFoundation.WorkItemTracking.WitPcwPlugin.PcwPluginComponentCreator.WitPcwTask.ProcessConfigurationTask.Parse(Boolean fExecute)
   at Microsoft.VisualStudio.TeamFoundation.WorkItemTracking.WitPcwPlugin.PcwPluginComponentCreator.WitPcwTask.ProcessConfigurationTask.Validate()
   at Microsoft.VisualStudio.TeamFoundation.WorkItemTracking.WitPcwPlugin.PcwPluginComponentCreator.Parse(ContextWrapper wrapper, XmlNode taskXml, Boolean fExecute)
   at Microsoft.VisualStudio.TeamFoundation.WorkItemTracking.WitPcwPlugin.PcwPluginComponentCreator.Validate(ProjectCreationContext ctxt, XmlNode taskXml)

--- end Exception entry ---

2017-08-15T09:47:44 | Module: Engine | Thread: 23 | TF30202: Task "" from Group "" will not be run because a prior task failed.
2017-08-15T09:47:44 | Module: Engine | Thread: 23 | TF30202: Task "VersionControlTask" from Group "VersionControl" will not be run because a prior task failed.
2017-08-15T09:47:44 | Module: Engine | Thread: 23 | TF30202: Task "" from Group "" will not be run because a prior task failed.
2017-08-15T09:47:44 | Module: Engine | Thread: 23 | TF30202: Task "BuildTask" from Group "Build" will not be run because a prior task failed.
2017-08-15T09:47:44 | Module: Engine | Thread: 23 | TF30202: Task "" from Group "" will not be run because a prior task failed.
2017-08-15T09:47:44 | Module: Engine | Thread: 23 | TF30202: Task "LabTask" from Group "Lab" will not be run because a prior task failed.
2017-08-15T09:47:44 | Module: Engine | Thread: 23 | TF30202: Task "" from Group "" will not be run because a prior task failed.
2017-08-15T09:47:44 | Module: Engine | Thread: 23 | TF30202: Task "TestVariable" from Group "TestManagement" will not be run because a prior task failed.
2017-08-15T09:47:44 | Module: Engine | Thread: 23 | TF30202: Task "TestConfiguration" from Group "TestManagement" will not be run because a prior task failed.
2017-08-15T09:47:44 | Module: Engine | Thread: 23 | TF30202: Task "TestSettings" from Group "TestManagement" will not be run because a prior task failed.
2017-08-15T09:47:44 | Module: Engine | Thread: 23 | TF30202: Task "TestResolutionState" from Group "TestManagement" will not be run because a prior task failed.
2017-08-15T09:47:44 | Module: Engine | Thread: 23 | TF30202: Task "" from Group "" will not be run because a prior task failed.
2017-08-15T09:47:44 | Module: Engine | Thread: 23 | TF30202: Task "Site" from Group "Reporting" will not be run because a prior task failed.
2017-08-15T09:47:44 | Module: Engine | Thread: 23 | TF30202: Task "Populate Reports" from Group "Reporting" will not be run because a prior task failed.
2017-08-15T09:47:44 | Module: Engine | Thread: 23 | TF30202: Task "" from Group "" will not be run because a prior task failed.
2017-08-15T09:47:44 | Module: Engine | Thread: 23 | TF30202: Task "SharePointPortal" from Group "Portal" will not be run because a prior task failed.
2017-08-15T09:47:44 | Module: Engine | Thread: 23 | TF30202: Task "" from Group "" will not be run because a prior task failed.
2017-08-15T09:47:44 | Module: Work Item Tracking | Thread: 22 | The following query was found in C:\Users\kenneth\Desktop\FlexPOS Scrum2\WorkItem Tracking\Queries\Feedback.wiq: Feedback
2017-08-15T09:47:44 | Module: Work Item Tracking | Thread: 22 | The following query folder was found: Current Sprint
2017-08-15T09:47:44 | Module: Work Item Tracking | Thread: 22 | The following query was found in C:\Users\kenneth\Desktop\FlexPOS Scrum2\WorkItem Tracking\Queries\OpenImpediments.wiq: Current Sprint/Open Impediments
2017-08-15T09:47:44 | Module: Work Item Tracking | Thread: 22 | The following query was found in C:\Users\kenneth\Desktop\FlexPOS Scrum2\WorkItem Tracking\Queries\BlockedTasks.wiq: Current Sprint/Blocked Tasks
2017-08-15T09:47:44 | Module: Work Item Tracking | Thread: 22 | The following query was found in C:\Users\kenneth\Desktop\FlexPOS Scrum2\WorkItem Tracking\Queries\WorkInProgress.wiq: Current Sprint/Work in Progress
2017-08-15T09:47:44 | Module: Work Item Tracking | Thread: 22 | The following query was found in C:\Users\kenneth\Desktop\FlexPOS Scrum2\WorkItem Tracking\Queries\UnfinishedWork.wiq: Current Sprint/Unfinished Work
2017-08-15T09:47:44 | Module: Work Item Tracking | Thread: 22 | The following query was found in C:\Users\kenneth\Desktop\FlexPOS Scrum2\WorkItem Tracking\Queries\TestCases.wiq: Current Sprint/Test Cases
2017-08-15T09:47:44 | Module: Work Item Tracking | Thread: 22 | QUERIES validation succeeded
2017-08-15T09:47:44 | Module: Engine | Task "Queries" from Group "WorkItemTracking" completed with success | Completion time: 0.1981345 seconds
---begin Exception entry---
Time: 2017-08-15T09:47:44
Module: Template Importer
Exception Message: TF30175: Process template validation failed (type ValidationFailedException)
Exception Stack Trace:    at Microsoft.VisualStudio.TeamFoundation.PCW.EngineStarter.ValidateTemplate(DirectoryInfo templateDirectory)
   at Microsoft.VisualStudio.TeamFoundation.PCW.TemplateManagementService.ValidateMethodology(String folderPath, ILogHandler logHandler)
   at Microsoft.VisualStudio.TeamFoundation.PCW.TemplateManagementService.Import(String folderPath, ILogHandler logHandler)

Inner Exception Details:

Exception Message: TF30162: Task "ProcessConfiguration" from Group "WorkItemTracking" failed (type TaskFailedException)
Exception Stack Trace:    at Microsoft.VisualStudio.TeamFoundation.PCW.ProjectCreationEngine.PerformAllTasks(ITaskPerformer taskPerformer, ProjectCreationContext creationContext, List`1 projectTasks)
   at Microsoft.VisualStudio.TeamFoundation.PCW.EngineStarter.RunEngine(Boolean isValidationRun, String templateFolder)
   at Microsoft.VisualStudio.TeamFoundation.PCW.EngineStarter.ValidateTemplate(DirectoryInfo templateDirectory)

Inner Exception Details:

Exception Message: The 'Value' attribute is not declared. (type PcwException)
Exception Stack Trace:    at Microsoft.VisualStudio.TeamFoundation.WorkItemTracking.WitPcwPlugin.PcwPluginComponentCreator.Validate(ProjectCreationContext ctxt, XmlNode taskXml)
   at Microsoft.VisualStudio.TeamFoundation.PCW.ProjectCreationEngine.TaskValidator.PerformTask(IProjectComponentCreator componentCreator, ProjectCreationContext context, XmlNode taskXml)
   at Microsoft.VisualStudio.TeamFoundation.PCW.ProjectCreationEngine.RunTask(Object taskObj)

Inner Exception Details:

Exception Message: The 'Value' attribute is not declared. (type XmlSchemaValidationException)
Exception Stack Trace:    at System.Xml.Schema.XmlSchemaValidator.SendValidationEvent(XmlSchemaValidationException e, XmlSeverityType severity)
   at System.Xml.Schema.XmlSchemaValidator.SendValidationEvent(String code, String arg)
   at System.Xml.Schema.XmlSchemaValidator.ValidateAttribute(String lName, String ns, XmlValueGetter attributeValueGetter, String attributeStringValue, XmlSchemaInfo schemaInfo)
   at System.Xml.Schema.XmlSchemaValidator.ValidateAttribute(String localName, String namespaceUri, XmlValueGetter attributeValue, XmlSchemaInfo schemaInfo)
   at System.Xml.XsdValidatingReader.ValidateAttributes()
   at System.Xml.XsdValidatingReader.ProcessElementEvent()
   at System.Xml.XsdValidatingReader.ProcessReaderEvent()
   at System.Xml.XsdValidatingReader.Read()
   at Microsoft.TeamFoundation.ProcessConfiguration.Client.State.FromXml(IServiceProvider serviceProvider, XmlReader reader)
   at Microsoft.VisualStudio.Services.Common.Internal.XmlUtility.ArrayOfObjectFromXml[T](IServiceProvider serviceProvider, XmlReader reader, String arrayElementName, Boolean inline, Func`3 objectFromXmlElement)
   at Microsoft.TeamFoundation.ProcessConfiguration.Client.BacklogCategoryConfiguration.FromXml(IServiceProvider serviceProvider, XmlReader reader)
   at Microsoft.VisualStudio.Services.Common.Internal.XmlUtility.ArrayOfObjectFromXml[T](IServiceProvider serviceProvider, XmlReader reader, String arrayElementName, Boolean inline, Func`3 objectFromXmlElement)
   at Microsoft.TeamFoundation.ProcessConfiguration.Client.ProjectProcessConfiguration.FromXml(IServiceProvider serviceProvider, XmlReader reader)
   at Microsoft.TeamFoundation.ProcessConfiguration.Client.ProcessConfigurationHelpers.<>c__DisplayClass6_0.<LoadProcessConfiguration>b__0(XmlReader reader)
   at Microsoft.TeamFoundation.ProcessConfiguration.Client.ProcessConfigurationHelpers.GetConfigurationObject[T](String definition, String schemaName, Func`2 creator)
   at Microsoft.TeamFoundation.ProcessConfiguration.Client.ProcessConfigurationHelpers.LoadProcessConfiguration(TfsTeamProjectCollection tpc, String xmlDefinition)
   at Microsoft.VisualStudio.TeamFoundation.WorkItemTracking.WitPcwPlugin.PcwPluginComponentCreator.WitPcwTask.ProcessConfigurationTask.Parse(Boolean fExecute)
   at Microsoft.VisualStudio.TeamFoundation.WorkItemTracking.WitPcwPlugin.PcwPluginComponentCreator.WitPcwTask.ProcessConfigurationTask.Validate()
   at Microsoft.VisualStudio.TeamFoundation.WorkItemTracking.WitPcwPlugin.PcwPluginComponentCreator.Parse(ContextWrapper wrapper, XmlNode taskXml, Boolean fExecute)
   at Microsoft.VisualStudio.TeamFoundation.WorkItemTracking.WitPcwPlugin.PcwPluginComponentCreator.Validate(ProjectCreationContext ctxt, XmlNode taskXml)

--- end Exception entry ---
This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.