Quantcast
Channel: Team Foundation Server - General forum
Viewing all articles
Browse latest Browse all 6687

TFS Work Items BatchSave and work item field value access Exception

$
0
0

IField currentWorkItemField = workItem.Fields[workItemPropRefName];

when i am accessing 

currentWorkItemField.Value

I am getting the exception :

Message"TF237121: Cannot complete the operation. An unexpected error occurred."string

+InnerException{"Server was unable to process request. ---> There was an error generating the XML document. ---> Object reference not set to an instance of an object."}System.Exception {System.Web.Services.Protocols.SoapException}

and when I am passing the list of work items to BatchSave.

batchSaveResults = mWiProject.BatchSave(lstWorkItem);

The following exception occured:

Message"TF237121: Cannot complete the operation. An unexpected error occurred."string

+InnerException{"Server was unable to process request. ---> There was an error generating the XML document. ---> Object reference not set to an instance of an object."}System.Exception {System.Web.Services.Protocols.SoapException}


   at Microsoft.TeamFoundation.WorkItemTracking.Client.DataStore.DatastoreClass.BrieAccessCheck(IBrieCallBack callback, Int32 flags, Int32 fieldId)
   at Microsoft.TeamFoundation.WorkItemTracking.Client.WorkItem.ApplyRules(Boolean fSetChangedBy)
   at Microsoft.TeamFoundation.WorkItemTracking.Client.WorkItemStore.PostSave(WorkItem[] workItems)
   at Microsoft.TeamFoundation.WorkItemTracking.Client.WorkItemStore.SaveWorkItems(WorkItem[] workitems, Boolean bulk, SaveFlags saveFlags)
   at Microsoft.TeamFoundation.WorkItemTracking.Client.BatchSaveHelper.TryUpdate(WorkItemStore store, WorkItem[] workitems, SaveFlags saveFlags, List`1 errors)

Viewing all articles
Browse latest Browse all 6687

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>