Synopsis:
I have several users who are reporting issues with saving a forms submission as a draft and also once a task is assigned to a user they receive an error message that doesn't allow them to view the form or work on it. Their business need requires them to save a specific form submission as a draft in order to continue to update the particular submission.
Here is the breakdown :
A user will create a monthly contact log for a client and add the necessary information for that interaction. Once they conclude they may or may not have to save the submission as a draft in preparation for either more information or for the next contact. Beginning more recently, after we updated to Forms 10.3, users are getting an error "Laserfiche has encountered an error" that will either eradicate the information they input or it will leave that draft in a state that it cannot be accessed by them anymore even though they are assigned to the task. Another user with access to the task(s) can view it so long as they are not assigned to it. Once the creator or assigned user re-assigns the task it becomes visible for that user, but now the newly assigned user get the message. I have checked into the event viewer on the server to get details but the error is one of Laserfiche's generic error message "Object reference is not set to an instance of an object".
Here is the full error code:
An unexpected error has occurred. [LFF502-UnexpectedError]
Details:
URL: /Forms/form/avsubmission?RemoveHead=true&clientHandlesRedirect=true&routingResumeId=f2b3794e-21be-44f8-b5f6-f2d5f89c24e3&submissionId=&readonly=false&hideHeader=true
Error: UnexpectedError
Date: 1/4/2019 9:48:33 AM (Central Standard Time)
HTTP Status Code: 500
Business Process ID: 0
User: RISOFFICE\KDallman
IP: 208.87.239.180
Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 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, Nullable`1 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.Approval.PopulateForm()
at ASP._Page_Views_Form__FormLayout_cshtml.Execute() in c:\Program Files\Laserfiche\Laserfiche Forms\Forms\Views\Form\_FormLayout.cshtml:line 372
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)