Home Datapipelines
New Blog Posts: Merging Reports - Part 1 and Part 2

Error: Cannot generate report. Could not open DataSet: DBPipeline

edited October 2004 in Datapipelines
Hi,

I'm getting this error in a subreport linked to a pipeline that sometimes
has no records to show and just in these cases the error message appears.
The DBPipeline is connected to an DevExpress MemoryTable and when it has
data records everything goes fine.

Any ideas ?

Thanks in advance
Mocte

Comments

  • edited October 2004

    When the report engine initializes, it will open each datapipeline used in
    the report. It will then check to see whether the DataPipeline is Active.
    Perhaps your dataset is raises an exception when DataSet.Open is called, or
    perhaps when the DataSet is empty the DataSet.Active property is returning
    False (an empty dataset should still return a Dataset.Active value of True).

    Modify your Delphi library path from RBuilder\Lib to RBuilder\Source. Set
    the debugger to break on Delphi exceptions. The debugger will open the
    source code at the point where the exception occurs. You can then examine
    the code and the call stack and see what's going on.

    See ppDBPipe.pas, the method OpenDataSet and ppEngine.pas, the method
    OpenDataPipeline.



    --
    Nard Moseley
    Digital Metaphors Corporation
    www.digital-metaphors.com



    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited October 2004
    Nard,

    That was very usefull, now I've discovered that the error was caused by
    dataset related code, and it has nothing to do with RB.

    Thanks
    Mocte

This discussion has been closed.