Reputation: 285
When a second build with exiting build definition is queued, it fails with the error Method not found: GetQueryXml. The only workaround is to clone to a new build and queue that.
Is there any way to solve this issue ? Or if this build step can be skipped ?
Associate the changesets that occurred since the last good build00:00:03
Analyzing labels DevBuild_18.02.16.3 and DevBuild_18.02.21.1.
Changeset '9361' was included in this build.
Changeset '9362' was included in this build.
Changeset '9363' was included in this build.
Changeset '9366' was included in this build.
Exception Message: **Method not found**: 'System.Xml.XmlElement Microsoft.TeamFoundation.WorkItemTracking.Internals.WiqlAdapter.**GetQueryXml**(System.String, System.Collections.IDictionary, Boolean, Boolean)'. (type MissingMethodException)
Exception Stack Trace: Server stack trace: at Microsoft.TeamFoundation.WorkItemTracking.Client.Query.Initialize(WorkItemStore store, String wiql, IDictionary context, Int32[] ids, Int32[] revs, Boolean dayPrecision) at
Microsoft.TeamFoundation.WorkItemTracking.Client.Query..ctor(WorkItemStore store, String wiql) at
Microsoft.TeamFoundation.Build.Workflow.Activities.WitQueryWorkItems.RunCommand(WorkItemStore workItemStore, IEnumerable`1 ids, IEnumerable`1 fields, Int32 pageSize, Boolean includeParentWorkItems) at
System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs) at
System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(IMessage msg, IMessageSink replySink) Exception rethrown at [0]: at System.Runtime.Remoting.Proxies.RealProxy.EndInvokeHelper(Message reqMsg, Boolean bProxyCase) at
System.Runtime.Remoting.Proxies.RemotingProxy.Invoke(Object NotUsed, MessageData& msgData) at System.Func`6.EndInvoke(IAsyncResult result) at Microsoft.TeamFoundation.Build.Workflow.Activities.WitQueryWorkItems.EndExecute(AsyncCodeActivityContext context, IAsyncResult result) at System.Activities.AsyncCodeActivity`1.System.Activities.IAsyncCodeActivity.FinishExecution(AsyncCodeActivityContext context, IAsyncResult result) at System.Activities.AsyncCodeActivity.CompleteAsyncCodeActivityData.CompleteAsyncCodeActivityWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)
Upvotes: 1
Views: 77
Reputation: 51093
The issue should related to XAML build template. If you are using the default one (TfvcTemplate.12.xaml or GitTemplate.12.xaml), you could customize the template and remove the corresponding activity. How to please refer: Customize your build process template.
Update from OP: I edited TfvcTemplate.12.xaml to remove the mtba:AssociateChanges element and that did the trick for me.
Upvotes: 1