Problem with empty list ...

Stimulsoft Reports.NET discussion
Post Reply
JakubS
Posts: 2
Joined: Mon Apr 20, 2009 1:04 pm

Problem with empty list ...

Post by JakubS »

Hi,

I prepared report template using xsd as my dataset.
When I'm trying to prepare report it's crashing cause the lists is empty/doesn't exist.
Mentioned list is set to optional in xsd.

Is there any way to ignore empty list?

Xsd schema is valid, and I'm getting same error even if I create empty template only with dataset.

Here is the error msg that I'm getting:

Column 'GoodsItem_Id' does not exist in Data Source 'AdditionalInfoList' and relation 'GoodsItem' can't be created!

at Stimulsoft.Report.Dictionary.StiDictionary.RegRelation(StiDataRelation relation, Boolean virtualSources)
at Stimulsoft.Report.Dictionary.StiDictionary.RegRelations(Boolean virtualSources)
at Stimulsoft.Report.Dictionary.StiDictionary.RegRelations()
at Stimulsoft.Report.Dictionary.StiDictionary.Connect(Boolean loadData)
at Stimulsoft.Report.Dictionary.StiDictionary.Connect()
at Stimulsoft.Report.Engine.StiRenderProviderV2.ConnectToData(StiReport report)
at Stimulsoft.Report.Engine.StiRenderProviderV2.Render(StiReport report, StiRenderState state)
at Stimulsoft.Report.Engine.StiReportV2Builder.RenderSingleReport(StiReport masterReport, StiRenderState renderState)
at Stimulsoft.Report.StiReport.RenderReport(StiRenderState renderState)
at Stimulsoft.Report.StiReport.Render(StiRenderState renderState, StiGuiMode guiMode)
at Stimulsoft.Report.StiReport.Render(StiRenderState renderState)
at Stimulsoft.Report.StiReport.Render(Boolean showProgress, Int32 fromPage, Int32 toPage)
at Stimulsoft.Report.StiReport.Render(Boolean showProgress)
at ABM.CustomsWare.Business.Framework.PrintServiceBase.PrepareReport(Object processItemParameter)

And here is the xsd that I'm using:











































































































































































































































































































































































































































































































































































































































































































































































Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

Problem with empty list ...

Post by Jan »

Hello Jakub,
JakubS wrote:Hi,

I prepared report template using xsd as my dataset.
When I'm trying to prepare report it's crashing cause the lists is empty/doesn't exist.
Mentioned list is set to optional in xsd.
You can remove relation which have incorrent column settings.

Thank you.
Post Reply