我正在尝试将TFS项目导入MS Project文件。除了“持续时间”字段为空或小于 1 的情况外,它几乎适用于所有用例。因此,因此我无法导入未估计的项目。但是,当我导入持续时间> 1的项目时0,我可以在MS项目中将它们设置为0并推回到TFS。任何想法如何解决导入持续时间= 0的项目的问题?
以下是错误消息:
这是映射:
这是MS项目的跟踪输出:
[Verbose, PID 7160, TID 5012, 2012/12/26 18:17:11.175, 59906 ms, General] --> ConvertRegularQueryResult()
[Verbose, PID 7160, TID 5012, 2012/12/26 18:17:11.175, 59906 ms, General] resultsElement: <QueryIds xmlns=""></QueryIds>
[Verbose, PID 7160, TID 5012, 2012/12/26 18:17:11.175, 59906 ms, General] <-- ConvertRegularQueryResult()
WINPROJ.EXE Information: 0 : [Info, PID 7160, TID 5012, 2012/12/26 18:17:11.176, 59907 ms, General] >>> Query 0
WINPROJ.EXE Error: 0 : [Error, PID 7160, TID 5012, 2012/12/26 18:17:11.306, 60037 ms, General]
{
Exception: {
Exception Message: The argument value is not valid. (type COMException)
Exception Stack Trace: at Microsoft.Office.Interop.MSProject.Task.SetField(PjField FieldID, String Value)
at Microsoft.TeamFoundation.OfficeIntegration.Client.ProjectWorkItem.set_Item(String fieldReferenceName, Object value)
}
}
WINPROJ.EXE Error: 0 : [Error, PID 7160, TID 5012, 2012/12/26 18:17:11.341, 60072 ms, General]
{
Exception: {
Exception Message: TF400481: One or more imported work items are not refreshing correctly because they contain field values that Microsoft Project does not allow. The first failing item, work item ID 118301 corresponding to Project task ID 1, contains an invalid value in field 'NSight.Workstation.TS.Fields.EstimatedManDays'. To make sure that all project plan data refreshes correctly, update the work item field values in Team Foundation Server and then refresh your project plan. (type OfficeDisplayableException)
Exception Stack Trace:
Inner Exception Details:
Exception Message: The argument value is not valid. (type COMException)
Exception Stack Trace: at Microsoft.Office.Interop.MSProject.Task.SetField(PjField FieldID, String Value)
at Microsoft.TeamFoundation.OfficeIntegration.Client.ProjectWorkItem.set_Item(String fieldReferenceName, Object value)
at Microsoft.TeamFoundation.OfficeIntegration.Client.ProjectWorkItemDictionary.UpdateFrom(WorkItemDictionaryBase currituckWorkItemDictionary, Boolean setCalculations, Boolean updateWorkItems)
}
}
WINPROJ.EXE Information: 0 : [Info, PID 7160, TID 5012, 2012/12/26 18:17:11.344, 60075 ms, General] <<< Page 1 items, 2 columns, 0 longtext
WINPROJ.EXE Information: 0 : [Info, PID 7160, TID 5012, 2012/12/26 18:17:12.139, 60870 ms, General] >>> Page
WINPROJ.EXE Information: 0 : [Info, PID 7160, TID 5012, 2012/12/26 18:17:12.139, 60870 ms, General] <<< Page 1 items, 2 columns, 0 longtext
WINPROJ.EXE Information: 0 : [Info, PID 7160, TID 5012, 2012/12/26 18:17:12.945, 61675 ms, General] >>> Page
WINPROJ.EXE Information: 0 : [Info, PID 7160, TID 5012, 2012/12/26 18:17:12.945, 61675 ms, General] <<< Page 1 items, 2 columns, 0 longtext
WINPROJ.EXE Information: 0 : [Info, PID 7160, TID 5012, 2012/12/26 18:17:13.751, 62481 ms, General] >>> Page
WINPROJ.EXE Information: 0 : [Info, PID 7160, TID 5012, 2012/12/26 18:17:13.752, 62482 ms, General] <<< Page 1 items, 2 columns, 0 longtext
WINPROJ.EXE Information: 0 : [Info, PID 7160, TID 5012, 2012/12/26 18:17:14.704, 63434 ms, General] >>> Page
WINPROJ.EXE Warning: 0 : [Warning, PID 7160, TID 5012, 2012/12/26 18:21:18.229, 306960 ms, General] UIHost.ShowMessageBox: result=OK caption='Microsoft Office Project' text='TF400481: One or more imported work items are not refreshing correctly because they contain field values that Microsoft Project does not allow. The first failing item, work item ID 118301 corresponding to Project task ID 1, contains an invalid value in field 'NSight.Workstation.TS.Fields.EstimatedManDays'. To make sure that all project plan data refreshes correctly, update the work item field values in Team Foundation Server and then refresh your project plan.'
TFS字段定义:
<FIELD name="Est Man Days" refname="NSight.Workstation.TS.Fields.EstimatedManDays" type="Double" reportable="measure" formula="sum">
<HELPTEXT>The estimated Man Days to complete task.</HELPTEXT>
</FIELD>