Please restart your PC

When a friend calls you with a computer problem, probably one of the first things you say is:

Have you already restarted your PC?

Well, today I fell into the same trap. I’m currently in the process of installing a Team Foundation Server environment on Azure as a demo environment (If you’ve never done this, a great place to get started is the ALM Ranger guidance found at http://vsarplanningguide.codeplex.com/ which now has a new supplement on installing TFS on Azure IaaS).

So my environment now consists of a TFS Application Tier, a SQL Server 2014 Data Tier and a Build Server.

While in the process of installing SQL Server Reporting Services I ran into the following error when viewing the Test Case Readiness report:

An error has occurred during report processing. (rsProcessingAborted) 
    Query execution failed for dataset ‘dsArea’. (rsErrorExecutingCommand)
         The Team System cube either does not exist or has not been processed.

So I started my analysis by running the Team Foundation Server Best Practice Analyzer tool. This gave me the following Reports:

image

image As you can see, there are some errors regarding the Analysis Cube processing. So I tried to run a manual processing job of the Analysis Cube server.

This great walkthrough helps you in doing a manual start of the warehouse and analysis cube processing.

What it comes down to is navigating to http://localhost:8080/tfs/TeamFoundation/Administration/v3.0/WarehouseControlService.asmx on your application tier and then using ProcessWarehouse, ProcessAnalysisDatabase and GetProcessingStatus to check what’s going one.

One thing to be aware of is that the walkthrough is a little outdated. When you call GetProcessingStatus on a TFS 2013 installation you will get the following screen:

image

A new option includeOnlineHostsOnly is added. You need to pass TRUE for this field otherwise you will get a 500 error when checking the status of your jobs.

Now when checking my job status I found the following:

<Job JobProcessingStatus=”IdleName=”Incremental Analysis Database Sync“>
    <LastRun Result=”FailedEndTimeUtc=”2014-08-07T15:06:42.29ZExecutionStartTimeUtc=”2014-08-07T15:06:38.747ZQueueTimeUtc=”2014-08-07T15:06:38.217Z“>
         <ResultMessage>[Incremental Analysis Database Sync]: —> Microsoft.TeamFoundation.Warehouse.WarehouseException: TF221122: An error occurred running job Incremental Analysis Database Sync for team project collection or Team Foundation server TEAM FOUNDATION. —> Microsoft.TeamFoundation.Warehouse.WarehouseException: TF255040: Install SQL Reporting Services or at a minimum SQL Client Connectivity Tools on the application tier to ensure Analysis Services object model is present for warehouse processing. at Microsoft.TeamFoundation.Warehouse.AnalysisDatabaseSyncJobExtension.RunInternal(TeamFoundationRequestContext requestContext, TeamFoundationJobDefinition jobDefinition, DateTime queueTime, String& resultMessage) at Microsoft.TeamFoundation.Warehouse.WarehouseJobExtension.Run(TeamFoundationRequestContext requestContext, TeamFoundationJobDefinition jobDefinition, DateTime queueTime, String& resultMessage) — End of inner exception stack trace —
        </ResultMessage>
   </LastRun>
   <NextRun QueueTimeUtc=”2014-08-08T09:06:38.217ZJobState=”QueuedScheduled“/>
</Job>

So somehow I get an error that the SQL Client Connectivity Tools are missing on the Application Tier. But since I have no idea what to do else, I’ve rerun the SQL Server Installation to make sure.

And that’s when I noticed:

image

And that’s it. Apparently I forgot to restart after installing the SQL Server Client Connectivity Tools. After restarting the Application Tier the Analysis Job ran perfectly and my reports are functioning just as you would expect.

Question? Feedback? Please leave a comment!

Wouter de Kort works as a lead architect and consultant. He helps organizations stay on the cutting edge of software development. Wouter focuses on DevOps. He loves solving complex problems and helping other developers to grow. Wouter authored the book DevOps on the Microsoft stack and a couple of other books. Wouter is a Microsoft MVP and an ALM Ranger. You can find him on Twitter (@wouterdekort), on his blog at wouterdekort.com and at the various conferences where Wouter speaks.

Share

Leave a Reply

Your email address will not be published. Required fields are marked *

Post comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.