Forcing Data Warehouse Update for TFS

Microsoft’s Team Foundation Server (TFS) uses SQL Server 2005 Reporting Services to generate graphs showing various metrics of team projects. TFS stores lots of data on Work Items, Version Control and Builds.

This data is pooled into a SQL Analysis Services database (TfsWarehouse) and then into an OLAP cube. There is a windows service (TfsServerScheduler) which initiaties the processing of the warehouse. The reports and then rendered by querying the cube.

If you create a new team project and then try to view the reports, you will find that none of the reports work until the warehouse processing has completed. By default, it runs every hour.

When viewing the report within Visual Studio, the “Iteration” field will be blank and when you select [View Report] you receive the error message: “Please select a value for the parameter ‘Iteration’.”

error_please_select_value_iteration.png

If you view the sharepoint project portal, the web part will display the following error: “This report requires a default or user-defined value for the report parameter ‘IterationParam’… (rsReportParameterValueNotSet)”

reporting_services_error_IterationParam.png

These errors are caused because the processing of the warehouse has not completed since the project was created. So, to view your graphs you can either wait an hour for the TfsServerScheduler to kick-off the processing, or force it yourself.

Using SQL Management Studio to force processing

The advantage of using the SQLMS to force processing, is that it shows the progress of the update.

Run SQL Management Studio. Change the “Server type” to “Analysis Services” and type the server name of your Data Tier server.

connect_to_server_analysis_services.png

Once you are connected, expand the Databases node, then right-click the TFSWarehouse database and select “Process”.

tfswarehouse_process.png

Select [OK] on the “Process Warehouse – TFSWarehouse” dialog.

The processing progress dialog is then displayed.

process_progress.png

Once the processing is complete, you should then be able to refresh the sharepoint project portal or the report within Visual Studio to display your reports.

Using TFS Web Services to force processing

It’s also possible to force the update using the TFS Web Services. Open a browser and browse to:

http://localhost:8080/Warehouse/v1.0/WarehouseController.asmx
Select the “Run” method, then select [Invoke].

You will receive a boolean XML reponse, it indicates whether processing was successfully started in the background. It should be “true”.

You can monitor the progress of the processing using another web service call.

Select the “GetWarehouseStatus” method, then select [Invoke]

You will receive a WarehouseStatus XML reponse which will say “Idle” or “ProcessingOlap”. Keep refreshing this web method and when it returns back to “Idle”, your data warehouse processing should be complete. Your reports will be available.

9 Comments

  1. Gurpreet Singh
    Posted June 20, 2006 at 1:31 pm | Permalink

    I used the steps in "Using TFS Web Services to force processing", but my reports are still not available.Any Thoughts????

  2. Rehan Bhombal
    Posted January 31, 2007 at 9:15 am | Permalink

    same issue

  3. sharkboy
    Posted February 21, 2007 at 9:32 pm | Permalink

    After you run the web service the process is started. It may take upto 10 minutes for the process to complete. There is another web service that you can call to check the status.

  4. Tanya
    Posted February 27, 2007 at 3:02 pm | Permalink

    Run the "Process" in SQL Server to see if it succeed or give you any errors.

  5. Murlex
    Posted April 23, 2007 at 10:37 am | Permalink

    I have the exactly same issue, after all above actions I still see this message in sharepoint.BUT1. It is an issue since I upgraded (successfully) from TS Beta 3 refresh to Release. 2. There still one report which shown ok – "Quality Indicators". The rest of default-on-starting-page reports show the error mentioned.3. All the reports work OK when ran from VisualStudio.What can be issue?

  6. Posted February 1, 2008 at 2:58 am | Permalink

    I can’t see the imgages embedded in your web page at http://ozgrant.com/2006/05/15/forcing-data-warehouse-update-for-tfs/. The error is files not found on server. Have you removed those supporting images?

  7. Gabriele Giuseppini
    Posted December 5, 2008 at 8:37 am | Permalink

    Note that with TFS 2008 after forcing the update you’ll also need to delete the appropriate entry from the ReportServerTempDB.ExecutionCache table, otherwise TFS will keep retrieving stale data for a while.

  8. Posted January 7, 2009 at 10:27 am | Permalink

    ppo health insurance unity kaiser insurance care health unity ppo

  9. Posted January 21, 2009 at 2:22 am | Permalink

    As it is often hard to know which entry is the proper one from the ReportServerTempDB.ExecutionCache table, and if you are not happy to just delete Reporting Server data, you can just modify the dates, so that they are in the past.


Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*