Today we upgraded to the new Forms 12 on our Forms Dev server. All the forms and workflows run well except for one.
Basically, the form goes through several user tasks as part of an onboarding process. The first user task, Onboarding, completes as expected. Then the process waits for a workflow to complete. This signals the staff members probation date being reached and starts the second user task. Probation Review (x days), filling in the form fails upon submission.
This is the Event Viewer log ..
An unexpected error has occurred. [LFF502-UnexpectedError]
Details:
URL: /Forms/form/submit?IsTriggerPublic=True
Error: UnexpectedError
Date: 7/11/2024 3:44:59 PM (W. Australia Standard Time)
HTTP Status Code: 500
Business Process ID: 139
User: RAAFAWA\jonathan.roberts
IP: 192.168.107.2
Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36 Edg/132.0.0.0
Business Process Name: Onboarding & Probation Review(1)
Stack Trace:
Caught exception: Laserfiche.Forms.CommonUtils.Exceptions.LFFormsException
Message: An unexpected error has occurred. [LFF502-UnexpectedError]
Inner exception: System.ArgumentNullException
Message: Value cannot be null.
Parameter name: source
at System.Linq.Enumerable.Where[TSource](IEnumerable`1 source, Func`2 predicate)
at E_Forms.Models.ViewModels.Form.Submit.getLatestSubmissionData(cf_bp_worker_instnc_to_resume current)
at E_Forms.Models.ViewModels.Form.Submit.ValidateForm(HttpRequestBase request, cf_forms form, Dictionary`2 Lookupdata, FormDataSet formdata, Dictionary`2 FieldsToIgnore, NameValueCollection formFields, Dictionary`2 ItemsInSection, Dictionary`2 submissionChoices, Mode mode)
at E_Forms.Models.ViewModels.Form.Submit.RetrieveDataFromForm(HttpRequestBase request, FormDataSet formdata, List`1& NoChangedElements, Boolean SaveAll)
at E_Forms.Controllers.FormController.Submit(FormCollection collection)
at lambda_method(Closure , ControllerBase , Object[] )
at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters)
at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c.<BeginInvokeSynchronousActionMethod>b__9_0(IAsyncResult asyncResult, ActionInvocation innerInvokeState)
at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult`2.CallEndDelegate(IAsyncResult asyncResult)
at System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethod(IAsyncResult asyncResult)
at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass11_0.<InvokeActionMethodFilterAsynchronouslyRecursive>b__0()
at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass11_2.<InvokeActionMethodFilterAsynchronouslyRecursive>b__2()
at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass11_2.<InvokeActionMethodFilterAsynchronouslyRecursive>b__2()
at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass11_2.<InvokeActionMethodFilterAsynchronouslyRecursive>b__2()
at System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethodWithFilters(IAsyncResult asyncResult)
at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass3_6.<BeginInvokeAction>b__4()
at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass3_1.<BeginInvokeAction>b__1(IAsyncResult asyncResult)
The same form process works fine on our Prod Forms 11 server.
LFDS, Workflow, Repository and Forms (DEV) are all on LF12.