TfsWorkItemTracking Process Identities Job fails after upgrade to TFS 2008 SP1<p align=left><font face=Arial>I upgraded my TFS 2008 server with Visual Studio 2008 SP1 followed by TFS 2008 SP1. After upgrade the TfsWorkItemTracking Process Identities job fails every 10 minutes with the following error:</font></p> <p align=left> </p> <p align=left>Executed as user: NT AUTHORITY\NETWORK SERVICE. Could not find stored procedure 'dbo.GetAccountDisplayMode'. [SQLSTATE 42000] (Error 2812).  The step failed.<br></p> <p align=left> </p> <p align=left>I searched for this stored procedure and later found that it is a missing scalar function, having located it on another TFS server.</p> <p align=left> </p> <p align=left>Any help would be greatly appreciated. Thanks.</p>© 2009 Microsoft Corporation. All rights reserved.Thu, 09 Oct 2008 21:15:44 Zad0210e3-dd0d-4d04-91e6-44743e1495b0http://social.msdn.microsoft.com/Forums/en-US/tfssetup/thread/ad0210e3-dd0d-4d04-91e6-44743e1495b0#ad0210e3-dd0d-4d04-91e6-44743e1495b0http://social.msdn.microsoft.com/Forums/en-US/tfssetup/thread/ad0210e3-dd0d-4d04-91e6-44743e1495b0#ad0210e3-dd0d-4d04-91e6-44743e1495b0Marc Miller - AgileThoughthttp://social.msdn.microsoft.com/Profile/en-US/?user=Marc%20Miller%20-%20AgileThoughtTfsWorkItemTracking Process Identities Job fails after upgrade to TFS 2008 SP1<p align=left><font face=Arial>I upgraded my TFS 2008 server with Visual Studio 2008 SP1 followed by TFS 2008 SP1. After upgrade the TfsWorkItemTracking Process Identities job fails every 10 minutes with the following error:</font></p> <p align=left> </p> <p align=left>Executed as user: NT AUTHORITY\NETWORK SERVICE. Could not find stored procedure 'dbo.GetAccountDisplayMode'. [SQLSTATE 42000] (Error 2812).  The step failed.<br></p> <p align=left> </p> <p align=left>I searched for this stored procedure and later found that it is a missing scalar function, having located it on another TFS server.</p> <p align=left> </p> <p align=left>Any help would be greatly appreciated. Thanks.</p>Sat, 23 Aug 2008 03:12:45 Z2008-08-26T11:40:31Zhttp://social.msdn.microsoft.com/Forums/en-US/tfssetup/thread/ad0210e3-dd0d-4d04-91e6-44743e1495b0#b6c9b4e0-8527-43d5-a862-61e47e2d0d04http://social.msdn.microsoft.com/Forums/en-US/tfssetup/thread/ad0210e3-dd0d-4d04-91e6-44743e1495b0#b6c9b4e0-8527-43d5-a862-61e47e2d0d04Bill.Wanghttp://social.msdn.microsoft.com/Profile/en-US/?user=Bill.WangTfsWorkItemTracking Process Identities Job fails after upgrade to TFS 2008 SP1<p align=left><font face=Arial size=2> </p> <p style="font-size:11pt;margin:0in;font-family:Calibri">Does adding this function manually work? Please run the following sql that I get from the TFS on my box:</p> <p style="font-size:11pt;margin:0in;font-family:Calibri"> </p> <p lang=zh-CN style="font-size:11pt;margin:0in;font-family:Calibri" align=left> <div class=codeseg> <div class=codecontent> <div class=codesniptitle><span style="width:100%">Code Snippet</span></div> <p lang=zh-CN style="font-size:11pt;margin:0in;font-family:Calibri" align=left>USE [TfsWorkItemTracking]</p> <p lang=zh-CN style="font-size:11pt;margin:0in;font-family:Calibri" align=left>GO</p> <p lang=zh-CN style="font-size:11pt;margin:0in;font-family:Calibri" align=left>/****** Object:<span>  </span>UserDefinedFunction [dbo].[GetAccountDisplayMode]<span>    </span>Script Date: 08/25/2008 13:58:13 ******/</p> <p lang=zh-CN style="font-size:11pt;margin:0in;font-family:Calibri" align=left>SET ANSI_NULLS ON</p> <p lang=zh-CN style="font-size:11pt;margin:0in;font-family:Calibri" align=left>GO</p> <p lang=zh-CN style="font-size:11pt;margin:0in;font-family:Calibri" align=left>SET QUOTED_IDENTIFIER ON</p> <p lang=zh-CN style="font-size:11pt;margin:0in;font-family:Calibri" align=left>GO</p> <p lang=zh-CN style="font-size:11pt;margin:0in;font-family:Calibri" align=left> </p> <p style="font-size:11pt;margin:0in;font-family:Calibri" align=left><span lang=en-US>Create f</span><span lang=zh-CN>unction [dbo].[GetAccountDisplayMode]</span></p> <p lang=zh-CN style="font-size:11pt;margin:0in;font-family:Calibri" align=left>()</p> <p lang=zh-CN style="font-size:11pt;margin:0in;font-family:Calibri" align=left>RETURNS int</p> <p lang=zh-CN style="font-size:11pt;margin:0in;font-family:Calibri" align=left>as</p> <p lang=zh-CN style="font-size:11pt;margin:0in;font-family:Calibri" align=left>begin</p> <p lang=zh-CN style="font-size:11pt;margin:0in;font-family:Calibri" align=left>return 2</p> <p lang=zh-CN style="font-size:11pt;margin:0in;font-family:Calibri" align=left> </p> <p lang=zh-CN style="font-size:11pt;margin:0in;font-family:Calibri" align=left>end</p> <p align=left> </p></div></div> <p align=left> </p> <p></p> <p lang=zh-CN style="font-size:11pt;margin:0in;font-family:Calibri" align=left></p> <p style="font-size:11pt;margin:0in;font-family:Calibri">I'm not sure why this function is missed. I'd like to suggest you running Best Practice Analyzer from the <a title="http://www.microsoft.com/downloads/details.aspx?FamilyID=00803636-1D16-4DF1-8A3D-EF1AD4F4BBAB" href="http://www.microsoft.com/downloads/details.aspx?FamilyID=00803636-1D16-4DF1-8A3D-EF1AD4F4BBAB">Visual Studio TFS Power Tool</a> to have a health check against TFS.</p></font>Mon, 25 Aug 2008 06:03:02 Z2008-08-26T11:40:31Zhttp://social.msdn.microsoft.com/Forums/en-US/tfssetup/thread/ad0210e3-dd0d-4d04-91e6-44743e1495b0#3d80c4e2-af6a-47a9-b58b-8bb82b3c46abhttp://social.msdn.microsoft.com/Forums/en-US/tfssetup/thread/ad0210e3-dd0d-4d04-91e6-44743e1495b0#3d80c4e2-af6a-47a9-b58b-8bb82b3c46abMarc Miller - AgileThoughthttp://social.msdn.microsoft.com/Profile/en-US/?user=Marc%20Miller%20-%20AgileThoughtTfsWorkItemTracking Process Identities Job fails after upgrade to TFS 2008 SP1<p align=left><font face=Arial>Thanks for the response.</font></p> <p align=left> </p> <p align=left>This is in fact the work around that I used successfully on 8/23 after retrying the upgrade (my TFS server is a virtual server). Prior to running the upgrade, I saved that function to file. After the second upgrade attempt produced the same results (missing function), I ran the saved query.</p> <p align=left> </p> <p align=left>I will run the Best Practice Analyzer and post anything suspicious.</p> <p align=left> </p> <p align=left>Thanks again.</p>Mon, 25 Aug 2008 11:54:57 Z2008-08-25T11:54:57Z