Developer forum

Forum » Dynamicweb 9.0 Upgrade issues » GetExperimentByPageID NullRefernceException

GetExperimentByPageID NullRefernceException

Unnsteinn Garðarsson
Unnsteinn Garðarsson
Reply

Not entirely sure if this is related to my recent upgrade from DW 9.8.10 to 9.9.8 but I wonder if someone has any idea about how to get rid of it?

Origin: LogEventBeforeSave - Action: Unhandled - Category: Health - ExceptionType: NullReferenceException - Description: Object reference not set to an instance of an object. - StackTrace: 2021-03-25 19:48:31.112: Object reference not set to an instance of an object.. System.NullReferenceException: Object reference not set to an instance of an object.   
   at Dynamicweb.Analytics.Experiments.Experiment.GetExperimentByPageID(Int32 PageID)   
   at Dynamicweb.Analytics.Experimentser.Track.Track(Int32 pageID)   
   at Dynamicweb.Frontend.PageView.Load()   
   at Dynamicweb.Frontend.DynamicwebHttpHandler.ProcessRequest(HttpContext context)   
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()   
   at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)   
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)


Replies

 
Nicolai Pedersen
Reply

Check if you have somehing in the table OMCExperiment

If you do, try to delete it. It is related to split testing of page content. Could be a record pointing to a page that does not exist.

 
Unnsteinn Garðarsson
Unnsteinn Garðarsson
Reply

That table is empty

 

You must be logged in to post in the forum