{"id":2183,"date":"2013-12-04T10:30:00","date_gmt":"2013-12-04T10:30:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/visualstudioalm\/2013\/12\/04\/tf255356-known-issue-with-configuring-tfs-2013-rtm-express-and-basic\/"},"modified":"2019-02-14T17:54:08","modified_gmt":"2019-02-15T01:54:08","slug":"tf255356-known-issue-with-configuring-tfs-2013-rtm-express-and-basic","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/devops\/tf255356-known-issue-with-configuring-tfs-2013-rtm-express-and-basic\/","title":{"rendered":"TF255356: Known Issue with Configuring TFS 2013 RTM Express and Basic"},"content":{"rendered":"<h4><span class=\"info-text\">This post is to report a known issue with configuration in Team Foundation Server 2013 RTM.&nbsp; The issue is specific to configuring TFS Basic,&nbsp;Express, or Upgrade&nbsp;on a machine with SQL Express 2008 R2 SP1 or SP2 installed.&nbsp; There is a workaround, which is outlined below.&nbsp;&nbsp;<\/span><\/h4>\n<h2>Description<\/h2>\n<p>If you try to configure TFS 2013 RTM (Basic, Express, or Upgrade) on a server with a SQL Express 2008 R2 instance, the process will fail.&nbsp; To hit the issue, Service Pack 1 or 2 must be applied to SQL Express 2008 R2, and the instance must be a default instance; default SQL Express instances have the name &#8220;SqlExpress.&#8221;<\/p>\n<p>As you navigate through the configuration wizard, you should receive a warning in the Readiness Checks that TFS intends to upgrade your SQL Express instance to a version that is usable with TFS.&nbsp; At this point, everything will appear to be fine.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/00\/00\/00\/45\/92\/4857.SQL%20ERror.PNG\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/00\/00\/00\/45\/92\/4857.SQL%20ERror.PNG\" alt=\"\" border=\"0\" \/><\/a>&nbsp;<\/p>\n<p>However, during the configuration phase, the process fails with one of the following errors:<\/p>\n<p style=\"padding-left: 30px\"><span style=\"color: #ff0000\"><span style=\"color: #000000\"><strong>For Basic\/Express:&nbsp; <\/strong><\/span><\/span><span style=\"font-family: times new roman,times;font-size: small\"><span style=\"color: #ff0000\">TF255356: <\/span><span style=\"color: #ff0000\">The following error occurred when configuring the Team Foundation databases: <\/span><span style=\"color: #ff0000\">TF400711: Error occurred while executing servicing step Grant Read Access for <\/span><span style=\"color: #ff0000\">Team Founation Valid Users for component WarehouseToDev11M38FinalConfiguration <\/span><span style=\"color: #ff0000\">during ToDev11M38FinalConfiguration: Query processor could not produce a query <\/span><span style=\"color: #ff0000\">plan because of the hints defined in this query. Resubmit the query without <\/span><span style=\"color: #ff0000\">specifying any hints and without using SET FORCEPLAN.. For more information, <\/span><span style=\"color: #ff0000\">see the configuration log.<\/span><\/span><\/p>\n<p style=\"padding-left: 30px\"><span style=\"color: #ff0000\"><span style=\"color: #000000\"><strong>For Upgrade:&nbsp;<\/strong><\/span><\/span><\/p>\n<p style=\"padding-left: 60px\"><strong><span style=\"color: #000000\">From TFS 2010:&nbsp; <\/span><\/strong><span style=\"color: #ff0000;font-family: times new roman,times;font-size: 11pt\">TF400744: An error occurred while executing the following script: FrameworkSharedToDev12M48-Part2.sql. Failed batch starts on the line 107. Statement line: 95. Script line: 201. Error: 102 Incorrect syntax near &#8216;(&#8216;.<\/span><\/p>\n<p style=\"padding-left: 60px\"><span style=\"color: #000000\"><strong>From TFS 2012:&nbsp;<\/strong> <span style=\"color: #ff0000;font-family: times new roman,times;font-size: small\">TF255356: The following error occurred when configuring the Team Foundation databases: TF400711: Error occurred while executing servicing step Install the catalog roots for component InstallFrameworkApplication during Install: TF14103: Internal error: The database procedure prc_SaveCatalogChanges returned the wrong number of rows.. For more information, see the configuration log.<\/span><\/span><\/p>\n<p>These errors are misleading, because the problem TFS hit was not directly related to configuring your databases.&nbsp; The real problem is that TFS did not correctly upgrade your SQL Express instance (in fact, it did not perform the operation at all), and thus was unable to create or upgrade the TFS Configuration Database on the SQL server it was provided because it&nbsp;isn&#8217;t a&nbsp;compatible version.<\/p>\n<p>&nbsp;<\/p>\n<h2>Workaround<\/h2>\n<p><span style=\"color: #000000;font-family: 'Calibri','sans-serif';font-size: 10.5pt\"><span style=\"background: #ffffff\">You can work around this issue by upgrading SQL Express&nbsp;manually and then reconfiguring.&nbsp; Here are the detailed steps you should follow to do so:<strong><\/strong><\/span><\/span><\/p>\n<h4><span style=\"color: #000000;font-family: 'Calibri','sans-serif';font-size: 10.5pt\"><span style=\"background: #ffffff\">1) Upgrade SQL Express manually by running the&nbsp;SQL Express executable included with TFS on the command line.<\/span><\/span><\/h4>\n<p><span style=\"color: #000000;font-family: 'Calibri','sans-serif';font-size: 10.5pt\"><span style=\"background: #ffffff\">Open a command prompt and navigate the to Tools directory of your TFS installation folder.&nbsp; For most people, this will be located at <span style=\"font-size: small\"><span style=\"font-family: terminal,monaco\">%ProgramFiles%\\Microsoft Team Foundation Server 12.0\\Tools<\/span>.<\/span><\/span><\/span><\/p>\n<p><span style=\"color: #000000;font-family: 'Calibri','sans-serif';font-size: 10.5pt\"><span style=\"background: #ffffff\">Once in this directory, determine whether you have a 32- or 64-bit operating system and then run one of the following:&nbsp; <\/span><\/span><\/p>\n<p><strong><span style=\"color: #000000;font-family: 'Calibri','sans-serif';font-size: 10.5pt\"><span style=\"background: #ffffff\">32-bit:&nbsp; <\/span><\/span><\/strong><span style=\"color: #000000;font-family: terminal,monaco;font-size: x-small;background-color: #ffff00\"><span><span>SQLEXPR32_x86_ENU.exe \/ACTION=Upgrade \/UpdateEnabled=false \/INSTANCENAME=SqlExpress \/SKIPRULES=RebootRequiredCheck<\/span><\/span><\/span><\/p>\n<p><strong><span style=\"color: #000000;font-family: 'Calibri','sans-serif';font-size: 10.5pt\"><span style=\"background: #ffffff\">64-bit:&nbsp; <\/span><\/span><\/strong><span style=\"color: #000000;font-family: terminal,monaco;font-size: x-small;background-color: #ffff00\"><span><span>SQLEXPR_x64_ENU.exe \/ACTION=Upgrade \/UpdateEnabled=false \/INSTANCENAME=SqlExpress \/SKIPRULES=RebootRequiredCheck<\/span><\/span><\/span><\/p>\n<p><span style=\"color: #000000;font-family: 'Calibri','sans-serif';font-size: 10.5pt\"><span style=\"background: #ffffff\">You will be asked to accept the SQL license terms to proceed.&nbsp; Please expect the upgrade to take a while.<\/span><\/span><\/p>\n<h4><span style=\"color: #000000;font-family: 'Calibri','sans-serif';font-size: 10.5pt\"><span style=\"background: #ffffff\">2)&nbsp;Configure TFS again.<\/span><\/span><\/h4>\n<p><span style=\"color: #000000;font-family: 'Calibri','sans-serif';font-size: 10.5pt\"><span style=\"background: #ffffff\">If you used the Upgrade wizard, you will first need to restore the backups you took of your databases prior to re-running configuration.&nbsp; You can use the <a href=\"http:\/\/msdn.microsoft.com\/en-us\/library\/vstudio\/jj620932.aspx\">TFSRestore.exe<\/a> tool that was installed with TFS, or you can&nbsp;restore through SQL directly.&nbsp; If for some reason you do not have backups, please contact Microsoft Support for assistance.&nbsp; <\/span><\/span><\/p>\n<p><span style=\"color: #000000;font-family: 'Calibri','sans-serif';font-size: 10.5pt\"><span style=\"background: #ffffff\">Start the Administration Console and run through the wizard as you did before.&nbsp; This time, the verify checks should not indicate that your SQL instance needs an upgrade.&nbsp; If all the other settings you&#8217;ve provided are valid, configuration should complete without a problem.<\/span><\/span><\/p>\n<p><strong><span style=\"color: #000000;font-family: 'Calibri','sans-serif';font-size: 10.5pt\"><span style=\"background: #ffffff\">Note:&nbsp; <\/span><\/span><\/strong><span style=\"color: #000000;font-family: 'Calibri','sans-serif';font-size: 10.5pt\"><span style=\"background: #ffffff\">If you performed a Basic or Express installation, the failed configuration created a partial TFS ConfigDB that you may want to drop.&nbsp; The name of the database is TFS_Configuration(Failed), and you can use SQL Server Management Studio Express or the&nbsp;<a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/ms165702(v=SQL.105).aspx\">SQLCMD.exe<\/a> tool&nbsp;to perform the deletion.&nbsp; You will not suffer any ill effects if you leave it around.<\/span><\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-family: 'Calibri','sans-serif';font-size: 10.5pt\"><span style=\"background: #ffffff\">Feel free to comment below or email tfcare a*t Microsoft d*ot com with any questions.&nbsp; Microsoft Support has also been made aware of this issue, and can provide assistance if necessary.&nbsp; We apologize for the inconvenience, and will be fixing the issue in our first update for TFS 2013.<\/span><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This post is to report a known issue with configuration in Team Foundation Server 2013 RTM.&nbsp; The issue is specific to configuring TFS Basic,&nbsp;Express, or Upgrade&nbsp;on a machine with SQL Express 2008 R2 SP1 or SP2 installed.&nbsp; There is a workaround, which is outlined below.&nbsp;&nbsp; Description If you try to configure TFS 2013 RTM (Basic, [&hellip;]<\/p>\n","protected":false},"author":66,"featured_media":45953,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[228,253,1],"tags":[],"class_list":["post-2183","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-admin-licensing","category-azure-devops-server","category-devops"],"acf":[],"blog_post_summary":"<p>This post is to report a known issue with configuration in Team Foundation Server 2013 RTM.&nbsp; The issue is specific to configuring TFS Basic,&nbsp;Express, or Upgrade&nbsp;on a machine with SQL Express 2008 R2 SP1 or SP2 installed.&nbsp; There is a workaround, which is outlined below.&nbsp;&nbsp; Description If you try to configure TFS 2013 RTM (Basic, [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/posts\/2183","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/users\/66"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/comments?post=2183"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/posts\/2183\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/media\/45953"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/media?parent=2183"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/categories?post=2183"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/tags?post=2183"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}