Try our conversational search powered by Generative AI!

Object Reference Null Error occur when retrive the XForm Posting Data in Edit Mode under "Form Data" Tab

Vote:
 

I'm getting following Error when i try to retrive the XForm Posting Data in Edit Mode under "Form Data" Tab. Kindly can anyone please help me how can i fix this issue ?

Server Error in '/' Application.

Object reference not set to an instance of an object.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error:

The source code that generated this unhandled exception can only be shown when compiled in debug mode. To enable this, please follow one of the below steps, then request the URL:

1. Add a "Debug=true" directive at the top of the file that generated the error. Example:

  <%@ page language="C#" debug="true" %>

or:

2) Add the following section to the configuration file of your application:

Note that this second technique will cause all files within a given application to be compiled in debug mode. The first technique will cause only that particular file to be compiled in debug mode.

Important: Running applications in debug mode does incur a memory/performance overhead. You should make sure that an application has debugging disabled before deploying into production scenario.


Stack Trace:

[NullReferenceException: Object reference not set to an instance of an object.]
   EPiServer.XForms.XFormData.PopulateInstance(XFormData xFormData, PropertyBag nvc) +1369
   EPiServer.XForms.XForm.GetPostedData(DateTime beginDate, DateTime endDate, Guid pageGuid, Int32 skip, Int32 take) +2973
   EPiServer.Web.WebControls.XFormPostings.ConvertTable() +290
   EPiServer.Web.WebControls.XFormPostings.get_Posts() +27
   ASP.cms_ui_cms_edit_xformpostings_ascx.__DataBindingGrid(Object sender, EventArgs e) in D:\My Work\trunk\Site\CMS\UI\CMS\Edit\XFormPostings.ascx:94
   System.EventHandler.Invoke(Object sender, EventArgs e) +0
   System.Web.UI.Control.OnDataBinding(EventArgs e) +131
   System.Web.UI.WebControls.BaseDataList.OnDataBinding(EventArgs e) +15
   EPiServer.UI.Edit.XFormPostings.Search_Click(Object sender, EventArgs e) +250
   EPiServer.UI.WebControls.ToolButton.OnClick(EventArgs e) +89
   EPiServer.UI.WebControls.ToolButton.RaisePostBackEvent(String eventArgument) +169
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +28
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2980
#176764
Mar 24, 2017 23:09
Vote:
 

I've seen this when a user has modfied the Form using the designer. Specifically when removing/adding/removing form elements.

If a form has data it's wise to keep the form design and elements stale.

#176775
Mar 27, 2017 9:51
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.