Resolve validation errors
Updated: July 15, 2016
When you publish an enterprise project plan that is mapped to a team project, the Team Foundation add-in for Microsoft Project Professional performs several data validation checks. A data validation error occurs if you define or modify the values for a task that is set to publish to Team Foundation Server (TFS) and one or more values violate a rule that is defined for the type of work item that is associated with the task.
For information about how to resolve data validation errors in Microsoft Project for a non-enterprise project plan that is bound to a team project, see Resolve data validation errors (publish and refresh).
Validation rules are added to the enterprise project plan when it is mapped to a team project. If a data validation error occurs, the Validation Resolution dialog box appears. In the Unpublished work items list, the Issue column indicates the type of error that has occurred. The Status column indicates whether you must take a corrective action, Project has corrected it automatically, or you have corrected it. For issues that Project corrected automatically, you can choose the entry to display the reason for the correction in the lower part of the dialog box.
The following table summarizes the types of errors that data validation identifies.
One Team Foundation Owner Required
In the Resource Names field, you must specify a valid contributor for a team project.
You must specify a valid value for each field that is required for the work item type to which the task is linked. In some instances, you must choose Correct this error to access the work item form in which to make the corrections.
Invalid Work Item Type
You must specify a work item type that has been configured to participate in synchronization for the enterprise project plan and the mapped team project.
If you want to specify a type of work item that is valid for the mapped team project but not for the enterprise project plan, you can add it to the list of mapped types. For more information, see Specify the work item types to synchronize.
Invalid Work Item Type
If you change the value that is assigned to the Work Item Type, Project reassigns the value that was defined when the task was first published. You cannot change the value of the work item type for a task after it has been published to Team Foundation Server.
Link error in Publish to Team Project
Project changes the value of the Publish to Team Project field to Yes in the following instances:
In addition to the errors that the previous table describes, you must resolve the following errors before you can publish the enterprise project plan.
When a field that is required to support data synchronization is not defined in Project Server, you must contact your administrator to correct the field mapping file. For more information, see Customize the field mapping between TFS and Project Server.
When the resource pool does not contain any valid contributors for the team project that is mapped, you must add these users to the resource pool. For more information, see Manage the association of enterprise projects to team projects.
You can use the Validation Resolution dialog box to resolve the data validation errors that appear in the Unpublished work items list.
To correct an invalid work item type
Choose the row that contains the Invalid Work Item Type issue, choose Choose Values, and then specify the type of work item that you want to associate with the task.
The add-in for Project Server Integration validates the task field assignments against the work item type rules when they are published.
If no more issues occur, choose Save and Publish.
To correct other data validation issues
In the Unpublished work items list, choose the row for each work item that you want to correct.
Review the information that appears under Details, and then choose Correct this error.
In the work item form that appears, review the information, and correct the value.
Choose Close to save your changes and close the work item form.
After you correct all data validation errors, choose Save and Publish.
This step publishes only the work items that you corrected. You cannot publish a plan until you resolve each data validation error.