Skip to main content

WEBfactory 2010

SQL Report Viewer error "Invalid URI: The URI is empty"

Abstract

Check out this article and learn how to overcome the "Invalid URI: The URI is empty" Reporter Viewer error.

Description

When the WEBfactory 2010 SQL Report Viewer control is used, a certain XML file is required to provide the available reports inside the WEBfactory 2010 SQL Report Viewer control. The file is generated by the customer, depending on it's needs.

The correct form of the required XML document is similar to this:

<?xml version="1.0" encoding="utf-8" ?>
<Reports>
	<Report
	Name="MalFunctionReport"
	Description="MalfunctionReport"
	Path="/MyReport/MalfunctionPeriodReport"
	SqlReportServiceUrl="http://w7-server/Reportserver_WEBfactory 2010 2010"
	LanguageID="9">
	</Report>
</Reports>

The error message "Invalid URI: The URI is empty" is caused by a mistake in the parameter names typography.

The parameter names ARE CASE SENSITIVE!

Solution

Make sure that all the parameter names are correctly written and the case is used properly. The correct form of the parameters can be found in the above example, highlighted with red.

Example: Using the incorrect letter case, like SQLReportServiceUrl, triggers the Invalid URI error, while the correct form, SqlReportServiceUrl, doesn't.