all groups > sql server reporting services > july 2005 >
You're in the

sql server reporting services

group:

Report error does not match xsd


Report error does not match xsd Charles Kuntz
7/28/2005 11:25:03 AM
sql server reporting services:
I am using xslt to generate an rdl file. The top level node is the Report
Designer default:

<?xml version="1.0" encoding="utf-8"?>
<Report
xmlns="http://schemas.microsoft.com/sqlserver/reporting/2003/10/reportdefinition"
xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner">
<PageWidth>7.5 in</PageWidth>
<LeftMargin>0.5 in</LeftMargin>
<RightMargin>0.5 in</RightMargin>
<TopMargin>0.5 in</TopMargin>
<BottomMargin>0.3 in</BottomMargin>
<PageHeader>
<Height>1 in</Height>
<ReportItems>
<Textbox Name="Label13">
<Value>PAGE HEADER CONTROL</Value>
</Textbox>
</ReportItems>
</PageHeader>
<Body>
<ReportItems>
<Line Name="BodyLine">
</Line>
</ReportItems>
<Height>1 in</Height>
<Style />
</Body>
<PageFooter>
<Height>0.17 in</Height>
<ReportItems>
<Textbox Name="Label18">
<Value>PAGE FOOTER CONTROL</Value>
</Textbox>
</ReportItems>
</PageFooter>
</Report>

When I import the resulting rdl file into Visual Studio and attempt to
rebuild the project or try to upload the rdl file to my Reporting Services
folder I get the following error:

The report definition is not valid. Details: The element
'http://schemas.microsoft.com/sqlserver/reporting/2003/10/reportdefinition:Report'
has incomplete content. Expected
'http://schemas.microsoft.com/sqlserver/reporting/2003/10/reportdefinition:Description
http://schemas.microsoft.com/sqlserver/reporting/2003/10/reportdefinition:Author
http://schemas.microsoft.com/sqlserver/reporting/2003/10/reportdefinition:AutoRefresh
http://schemas.microsoft.com/sqlserver/reporting/2003/10/reportdefinition:DataSources
http://schemas.microsoft.com/sqlserver/reporting/2003/10/reportdefinition:DataSets
http://schemas.microsoft.com/sqlserver/reporting/2003/10/reportdefinition:ReportParameters
http://schemas.microsoft.com/sqlserver/reporting/2003/10/reportdefinition:Custom
http://schemas.microsoft.com/sqlserver/reporting/2003/10/reportdefinition:Code
http://schemas.microsoft.com/sqlserver/reporting/2003/10/reportdefinition:Width
http://schemas.microsoft.com/sqlserver/reporting/2003/10/reportdefinition:PageHeight
http://schemas.microsoft.com/sqlserver/reporting/2003/10/reportdefinition:EmbeddedImages
http://schemas.microsoft.com/sqlserver/reporting/2003/10/reportdefinition:Language
http://schemas.microsoft.com/sqlserver/reporting/2003/10/reportdefinition:CodeModules
http://schemas.microsoft.com/sqlserver/reporting/2003/10/reportdefinition:Classes
http://schemas.microsoft.com/sqlserver/reporting/2003/10/reportdefinition:DataTransform
http://schemas.microsoft.com/sqlserver/reporting/2003/10/reportdefinition:DataSchema
http://schemas.microsoft.com/sqlserver/reporting/2003/10/reportdefinition:DataElementName
http://schemas.microsoft.com/sqlserver/reporting/2003/10/reportdefinition:DataElementStyle'. An error occurred at , (68, 3). (rsInvalidReportDefinition)

None of the expected elements listed are required by the xsd. Any ideas on
what could be causing the error?

Thanks
Re: Report error does not match xsd Robert Bruckner [MSFT]
7/28/2005 8:37:21 PM
The Report:Width element is mandatory, but is missing from your generated
RDL.

-- Robert
This posting is provided "AS IS" with no warranties, and confers no rights.


[quoted text, click to view]

Re: Report error does not match xsd Charles Kuntz
7/29/2005 6:36:05 AM
Got it. Thanks.

What is the difference between <Width> and <PageWidth>?

--CK

[quoted text, click to view]
Re: Report error does not match xsd Robert Bruckner [MSFT]
7/31/2005 2:10:31 PM
PageWidth determines the page width used when exporting with rendering
extensions that work with physical pages (e.g. PDF, TIFF).
Width is the width of the report body (usually determined by the report
design tool). In general, no reportitem's right edge should extend beyond
the report width.

-- Robert
This posting is provided "AS IS" with no warranties, and confers no rights.


[quoted text, click to view]

AddThis Social Bookmark Button