Share via


“The new field name, Work Item Type, is already in use” Error while trying to publish from MS Project client.

You may see the below error while trying to publish from MS Project Client, in an environment where Enterprise Project server is configured to work with TFS.

WINPROJ.EXE Error: 0 : [Error, PID 14476, TID 10220, 2015/01/01 10:11:52.105, 10537 ms, General]

{

Exception: {

Exception Message: The new field name, Work Item Type, is already in use. (type COMException)

Exception Stack Trace: at System.RuntimeType.ForwardCallToInvokeMember(String memberName, BindingFlags flags, Object target, Int32[] aWrapperTypes, MessageData& msgData)

   at Microsoft.Office.Interop.MSProject._MSProject.CustomFieldRename(PjCustomField FieldID, Object NewName, Object Phonetic)

   at Microsoft.TeamFoundation.OfficeIntegration.Client.ProjectServerIntegration.CustomViewHelper.RenameField(Application application, PjCustomField pjCustomField, String displayName)

}

}

WINPROJ.EXE Error: 0 : [Error, PID 14476, TID 10220, 2015/01/01 10:11:52.109, 10541 ms, General]

{

Exception: {

Exception Message: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. (type AccessViolationException)

Exception Stack Trace: at System.RuntimeType.ForwardCallToInvokeMember(String memberName, BindingFlags flags, Object target, Int32[] aWrapperTypes, MessageData& msgData)

  at Microsoft.Office.Interop.MSProject._MSProject.CustomFieldValueList(PjCustomField FieldID, Object ListDefault, Object DefaultValue, Object RestrictToList, Object AppendNew, Object PromptOnNew, PjListOrder DisplayOrder)

   at Microsoft.TeamFoundation.OfficeIntegration.Client.ProjectServerIntegration.WorkItemTypeFieldManager.SetupWorkItemTypeField(Project project)

   at Microsoft.TeamFoundation.OfficeIntegration.Client.ProjectServerIntegration.MappedProject.ManageCustomView(WorkItemTypeFieldManager workItemTypeFieldManager, IProjectServerProject projectServerProject)

   at Microsoft.TeamFoundation.OfficeIntegration.Client.ProjectServerIntegration.ProjectServerIntegrationAddIn.InitializeProject(Project project, IProjectServerProject projectServerProject, TfsObjectModelProvider tfsObjectModelProvider)

   at Microsoft.TeamFoundation.OfficeIntegration.Client.ProjectServerIntegration.ProjectServerIntegrationAddIn.OnWindowActivate(Window w)

}

}

WINPROJ.EXE Error: 0 : [Error, PID 14476, TID 10220, 2015/03/02 10:58:52.709, 10541 ms, General] TF80070: Team Foundation encountered an error while performing the operation. It is recommended that you save your work and restart the application.

WINPROJ.EXE Error: 0 : [Error, PID 14476, TID 10220, 2015/03/02 10:58:53.990, 11822 ms, General] UIHost.ShowMessageBox: result=OK caption='Microsoft Office Project' text='TF80070: Team Foundation encountered an error while performing the operation. It is recommended that you save your work and restart the application.'

Everything works well, when we use Project Web access and try and publish.

Cause:

TFS Add-in which kicks in when we use MS Project Client on a box where Visual studio Team explorer is also installed, This causes a sync /publish conflict as it also side by side trying to update. Hence the above error. Its not recommended to use MS Project client to publish, but preferred way of doing is web access.

Resolution:

We have removed the TFS add-in that got installed due to the Visual studio Team explorer presence in the machine where MS Project was installed. This helped resolve the main error.

Cheers!

Content created by – Vimal Thiagaraj