Issue with date format leads to "Object reference not set to an instance of an object."
Audun1555 opened this issue · comments
Upgraded from DNN 9.1.1 with DNN reports 5.7.1 to DNN 9.10.2 with DNN reports 6.2.3
After upgrade all my reports that extracts data from another sql server database stopped working.
Error in the DNN Admin log: "Object reference not set to an instance of an object."
Tried to add a new report, that worked fine - checked the differences between old and new report.
Found that the content of dnn_Reports_CreatedOn in modulesettings table was different and as below:
SettingName SettingValue
Old report that gives error: dnn_Reports_CreatedOn 15.12.2017 13.21.13
New report working: dnn_Reports_CreatedOn 2022-01-05T15:10:50.8566784+01:00
Updated dnn_Reports_CreatedOn on the old report, and then it works fine!
Kindest regards
Audun
From the admin errorlog:
ExceptionHash:oev8CeU2qGh8+QogwHheZSdv3MA=
Message:Object reference not set to an instance of an object.
StackTrace:
InnerMessage:Object reference not set to an instance of an object.
InnerStackTrace:
at DotNetNuke.Modules.Reports.ReportsController.GetReport(ModuleInfo ModuleInfo) in C:\DDrive\Develop\GitHub\DNN.Reports\Components\ReportsController.cs:line 156
at DotNetNuke.Modules.Reports.ViewReports.Page_Load(Object sender, EventArgs e) in C:\DDrive\Develop\GitHub\DNN.Reports\ViewReports.ascx.cs:line 287
at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
at System.Web.UI.Control.OnLoad(EventArgs e)
at DotNetNuke.Entities.Modules.PortalModuleBase.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.d__246.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Util.WithinCancellableCallbackTaskAwaitable.WithinCancellableCallbackTaskAwaiter.GetResult()
at System.Web.UI.Page.d__523.MoveNext()
Source:
FileName:
FileLineNumber:0
FileColumnNumber:0
Method: