Learn More





Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsReportsReportsUnprompted Errors from Reports in Event ViewerUnprompted Errors from Reports in Event Viewer
New Post
7/27/2015 12:35 PM

I use the reports module frequently. And I also use url querystring parameters to communicate with the report SQL the parameters it needs. I have noticed that the report modules appear to be generating error reports in the DNN Event Viewer even when the report has not been viewed. For example, right now, I'm running a DNN instance on my laptop and am not viewing a page with the report module on it in any browser tab. I can clear the event viewer, wait a minute and refresh the Event Viewer and see multiple error messages that basically say the report was expecting a variable that it was not given. I'll paste an error below. My question is, why are there report module errors being generated when the report is not even being viewed or refreshed? 


DefaultDataProvider:DotNetNuke.Data.SqlDataProvider, DotNetNuke










Message:There is an error in your SQL at line 1: Must declare the scalar variable "@url_DSParam1".


   at DotNetNuke.Modules.Reports.DataSources.DotNetNuke.DotNetNukeDataSource.ExecuteSQLReport()
   at DotNetNuke.Modules.Reports.ReportsController.ExecuteReport(ReportInfo objReport, String cacheKey, Boolean bypassCache, PortalModuleBase hostModule, Boolean& fromCache)
   at DotNetNuke.Modules.Reports.ReportsController.GetSearchItems(ModuleInfo ModInfo)
   at DotNetNuke.Services.Search.ModuleIndexer.GetSearchIndexItems(Int32 portalId)










Server Name: MyComputerName

New Post
7/28/2015 6:40 AM
this seem to be caused by the seach indexer, you may stop the Event showing up by disabling search indexing in Module Definition or Module Settings.

Cheers from Germany,
Sebastian Leupold (Microsoft MVP)

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group   European Network of DotNetNuke Professionals

Speed up your DNN Websites with TurboDNN
New Post
7/28/2015 8:55 AM
Thank you Sebastian, I'll give it a try. Your help here was meaningful.

As an additional next step, I think I'll investigate the settings in the Event Viewer now to stop reporting this error in the first place. I would prefer that the reports would be indexed. Their stored procedures gracefully handle null values for the input parameters and a fair amount of content is in those reports.
New Post
7/28/2015 9:22 AM
Unfortunately, neither approach has helped. I disabled indexing on all reports modules in the site but the Event Viewer is still generating new error reports about the missing report parameters.

Additionally, It appears that these errors are controlled by the "General Exception" setting in the Event Viewer settings. And I don't think I want to disable that one.

I might need to ignore the Event Viewer for this particular error. Problem is, there are a lot of reports modules. I'm getting about 50-60 errors per hour in the Event Viewer with no users hitting the site. When the users and the search engines start going through the site, I'm concerned these errors will multiply many times over.
New Post
7/28/2015 9:44 AM
What version of DNNReports are you using?

What version of DNN?

Can you show the SQL statement that it is trying to process?

XCESS expertise center b.v.
Ernst Peter
LinkedIn Profile Ernst Peter Tamminga

XCESS: DNN/Evoq specialist, zie

Events 6.3.1 - Released
FAQ 5.4.0 - Released
Reports 5.7.1 - Released
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsReportsReportsUnprompted Errors from Reports in Event ViewerUnprompted Errors from Reports in Event Viewer

These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
Try Evoq
For Free
Start Free Trial
a Demo
See Evoq Live
Need More Information?