Showing posts with label error. Show all posts
Showing posts with label error. Show all posts

Friday, 28 November 2014

Query Object Not Initialised On RDP


The error (in this case, printing the External Customer Account Statement)


Query object not initialised.
Stack trace
(C)\Classes\CustAccountStatementExtController\prePromptModifyContract - line 4
(C)\Classes\SrsReportRunController\startOperation - line 7
(C)\Classes\SrsPrintMgmtController\startOperation - line 14
(C)\Classes\SrsPrintMgmtFormLetterController\startOperation - line 14
(C)\Classes\CustAccountStatementExtController\main - line 6

The cause

[
    SRSReportQueryAttribute(queryStr(CustAccountStatementExtBaseData)),
    SRSReportParameterAttribute(classStr(CustAccountStatementExtContract))
]
public class CustAccountStatementExtDP extends SrsReportDataProviderPreProcess
{
    CustAccountStatementExtTmp custAccountStatementExtTmpNew;
    boolean giroCreated;
}

The Solution


In Visual Studio, select the dataset that the report uses (CustAccountStatementExtDS) and set the property 'Dynamic Filters' to false. This will cause the data map to be re-read.

Then rebuild and redeploy the report.