posted on August 27, 2018

I changed a form that was drafted by users previously, but I left the old field on the form and just hide it with javascript, I would expect that would prevent the draft from breaking. Instead it still says that it can't reference something and does not let the user open the form. The question is, where in this message is it telling me which field it can't reference?

[502]: An unexpected error has occurred. [LFF502-UnexpectedError]

Details:
URL: /Forms/Form/resume/12/6849
Error: UnexpectedError
Date: 8/27/2018 4:37:35 PM (Central Standard Time)
HTTP Status Code: 500
Business Process ID: 0
Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36
Business Process Name: 

Stack Trace:
Caught exception: Laserfiche.Forms.CommonUtils.Exceptions.LFFormsException
Message: An unexpected error has occurred. [LFF502-UnexpectedError]


Inner exception: System.NullReferenceException
Message: Object reference not set to an instance of an object.
   at Laserfiche.Forms.Routing.VariableXMLGenerator.ValidateEntity(XElement entityElement, entity entityToValidate, String memberPath, List`1 attributePool)
   at Laserfiche.Forms.Routing.VariableXMLGenerator.GenerateXml(Int32 bpInstanceId, Nullable`1 formId, cf_user_snapshot initiator, Nullable`1 submissionId, Nullable`1 initiatedTime, Nullable`1 taskTime, Boolean includeSeparators, HashSet`1 includeAttrIds)
   at Laserfiche.Forms.Routing.VariableXMLGenerator.GetLatestDataBySubmission(Int32 mainInstanceId, Int32 formId, Nullable`1 submissionId, cf_user_snapshot initiator, Nullable`1 initiatedTime, Boolean includeSeparators)
   at E_Forms.Classes.FormGenerator.PopulateForm(FormSetting formSetting, Boolean prevXml, Boolean IsFriendlyName, HttpRequest request)
   at E_Forms.Models.ViewModels.Form.ResumeSubmission.PopulateForm()
   at ASP._Page_Views_Form__FormLayout_cshtml.Execute() in c:\Program Files\Laserfiche\Laserfiche Forms\Forms\Views\Form\_FormLayout.cshtml:line 349
   at System.Web.WebPages.WebPageBase.ExecutePageHierarchy()
   at System.Web.Mvc.WebViewPage.ExecutePageHierarchy()
   at System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage)
   at System.Web.WebPages.WebPageBase.<>c__DisplayClass3.<RenderPageCore>b__2(TextWriter writer)
   at System.Web.WebPages.WebPageBase.Write(HelperResult result)
   at System.Web.WebPages.WebPageBase.RenderSurrounding(String partialViewName, Action`1 body)
   at System.Web.WebPages.WebPageBase.PopContext()
   at System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context)
   at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult)
   at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult)
   at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult)
   at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList`1 filters, ActionResult actionResult)
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass21.<BeginInvokeAction>b__1e(IAsyncResult asyncResult)

0 0