Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
DB Engine
SQL ServerMSDESQL Server CE
Services
Analysis (Data Mining)Analysis (OLAP)DTSIntegration ServicesNotification ServicesReporting Services
Programming
CLRConnectivitySQLXML
Other Technologies
ClusteringEnglish QueryFull-Text SearchReplicationService Broker
General
Data WarehousingPerformanceSecuritySetupSQL Server ToolsOther SQL Server Topics
DirectoryUser Groups
Related Topics
MS AccessOther DB ProductsMS Server Products.NET DevelopmentVB DevelopmentJava DevelopmentMore Topics ...

SQL Server Forum / Services / Reporting Services / July 2005

Tip: Looking for answers? Try searching our database.

Report error does not match xsd

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Charles Kuntz - 28 Jul 2005 19:25 GMT
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:Report
Parameters

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:Embedd
edImages

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:DataTr
ansform

http://schemas.microsoft.com/sqlserver/reporting/2003/10/reportdefinition:DataSchema
http://schemas.microsoft.com/sqlserver/reporting/2003/10/reportdefinition:DataEl
ementName

http://schemas.microsoft.com/sqlserver/reporting/2003/10/reportdefinition:DataEl
ementStyle
'. 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
--Charles
Robert Bruckner [MSFT] - 29 Jul 2005 04:37 GMT
The Report:Width element is mandatory, but is missing from your generated
RDL.

-- Robert
Signature

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


>I am using xslt to generate an rdl file.  The top level node is the Report
> Designer default:
[quoted text clipped - 67 lines]
> Thanks
> --Charles
Charles Kuntz - 29 Jul 2005 14:36 GMT
Got it.  Thanks.

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

--CK

> The Report:Width element is mandatory, but is missing from your generated
> RDL.
[quoted text clipped - 73 lines]
> > Thanks
> > --Charles
Robert Bruckner [MSFT] - 31 Jul 2005 22:10 GMT
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
Signature

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


> Got it.  Thanks.
>
[quoted text clipped - 83 lines]
>> > Thanks
>> > --Charles
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.