You are viewing limited content. For full access, please sign in.

Question

Question

Error while saving the business process in LFForms 10.1

asked on May 1, 2016 Show version history

Hi,I installed the version of Laserfiche Forms 10.1 directly ,when i try to save the business process,it gives me the following error.

An unexpected error has occurred. [LFF502-UnexpectedError] Details: URL: /Forms/BusinessProcess/SaveNewRouting Error: UnexpectedError Date: 5/1/2016 1:08:46 PM (Arabian Standard Time) HTTP Status Code: 500 User: ADMIN IP: ::1 Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2486.0 Safari/537.36 Edge/13.10586 Stack Trace: Caught exception: Laserfiche.Forms.CommonUtils.Exceptions.LFFormsException Message: An unexpected error has occurred. [LFF502-UnexpectedError] Inner exception: Laserfiche.Forms.CommonUtils.DeserializeException Message: Failed to deserialize object 'RoutingViewModel' in function 'SaveRoutingDiagram' with error: ValueType 'System.Int32' cannot be null. at E_Forms.Controllers.BusinessProcessController.SaveRoutingDiagram(String flow) at lambda_method(Closure , ControllerBase , Object[] ) at System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters) at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters) at System.Web.Mvc.Async.AsyncControllerActionInvoker.<BeginInvokeSynchronousActionMethod>b__39(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.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3d() at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f() at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f() at System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethodWithFilters(IAsyncResult asyncResult) at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass21.<>c__DisplayClass2b.<BeginInvokeAction>b__1c() at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass21.<BeginInvokeAction>b__1e(IAsyncResult asyncResult)

 

Note:It happens only when installing 10.1 version directly not in 10.0 version.

0 0

Replies

replied on May 6, 2016

Hello,

I'm receiving a similar message when trying to save changes in the Process Modeler (only occurs on one process).

Error log below - any suggestions on what I can do to resolve?

An unexpected error has occurred. [LFF502-UnexpectedError]

Details:
URL: /Forms/BusinessProcess/ValidateNewRouting
Error: UnexpectedError
Date: 5/6/2016 10:27:57 AM (Pacific Standard Time)
HTTP Status Code: 500
User: LAMARCHE
IP: 10.10.28.203
Browser: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0

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


Inner exception: Laserfiche.Forms.CommonUtils.DeserializeException
Message: Failed to deserialize object 'RoutingViewModel' in function 'MoveNext' with error: ValueType 'System.Int32' cannot be null.
   at E_Forms.Controllers.BusinessProcessController.<ValidateRoutingDiagram>d__19.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Mvc.Async.TaskAsyncActionDescriptor.EndExecute(IAsyncResult asyncResult)
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass37.<BeginInvokeAsynchronousActionMethod>b__36(IAsyncResult asyncResult)
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3d()
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f()
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f()
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass33.<BeginInvokeActionMethodWithFilters>b__32(IAsyncResult asyncResult)
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass21.<>c__DisplayClass2b.<BeginInvokeAction>b__1c()
   at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass21.<BeginInvokeAction>b__1e(IAsyncResult asyncResult)

1 0
replied on May 9, 2016

Hi, Can you open a support case with exported process for the process that can reproduce this issue? Thanks.

0 0
replied on May 9, 2016

Hello,

We have forwarded the exported process onto our VAR for troubleshooting.

Thanks!

0 0
replied on May 25, 2016

Was there a resolution for this issue?

0 0
replied on May 25, 2016

Yes, there was.  Here was the instruction we received and followed from our VAR.

  1. Perform a backup of the Forms database before moving to the next step.
  2. Go into SQL Server Management Studio and run this query against their Forms database
    1. select b.bp_id,p.process_id,m.milestone_id,m.name FROM [dbo].[cf_business_processes] as b,[dbo].[cf_bp_processes] as p,[cf_bp_milestones] as m WHERE b.is_deleted!=1 and b.bp_id=p.bp_id and p.is_global = 1 and m.is_deleted=1 and p.process_id=m.process_id

      This will return a list of processes that could potentially have this problem.

  3. Confirm that the processes from above are missing stages and if so, correct the issue:

    1. Open the process diagram with the bp_id from the above query: http://[formsserver]/Forms/bp/routing/[bp_id
    2. Try and save the process design and see if there is an error
    3. Find out the process_id for the affected bp_id values from the above query and run the following query to fix it update[dbo].[cf_bp_milestones]set is_deleted=0 where process_id=[process_id]
2 0
replied on May 26, 2016 Show version history

We are working on an update fro  Forms 10.1 now which will address the above issue., it will be available in coming two weeks. The workaround is what Melissa posted.

0 0
replied on May 26, 2016

Did you mean Forms 10.2? Forms 10.1 is already released.smiley

0 0
replied on May 26, 2016

Sorry, typo issue, I mean an update for Forms 10.1.

0 0
replied on May 27, 2016

Hello Xiuhong Xiang,

I'm getting the same message that Melissa and in the same situation.

It is available the update for "Forms 10.1." ?

 

0 0
replied on May 27, 2016

The update to Forms 10.1 should be available in a few weeks. For now, please follow the workaround that Melissa posted.

0 0
replied on May 27, 2016

Ok.

Thanks

0 0
replied on May 1, 2016

Did you open the Forms Configuration app after the installation and check to see if the DB may require upgrading. There mill be a message that appears in green in forms config if it is needed. If so select to perform the upgrade, only takes a minute.

0 0
replied on May 3, 2016

Are you able to reproduce it if you download the process first, then upload the process and save on the uploaded process? If do, can you open an support case with the downloaded process xml so that we can do further troubleshooting?

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.