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

Question

Question

Form Terminating Unexpectedly "Object reference not set to an instance of an object"

asked on July 7, 2017

I have a form that is terminating unexpectedly and I'm really coming up against a wall trying to figure it out.

My process is pretty complex, it's got a dozen paths running in parallel with different forms being used in each path.  I'm still in the process of building the forms and process.  I've built and tested 6 of the paths successfully.  But when I built the 7th, I've started getting an error each time I try to submit the form.

I think I've confirmed that it isn't the form, I've plugged in the form into other tasks in my process and it works fine, and if I plug in other forms (that I know work) into the failing task in the process they fail too.  I cannot see anything wrong with the task, and it it nearly identical to other tasks that are working just fine.  I even went as far as completely deleting the task from the process and completely recreating it, but it is still failing.

I'm really struggling here.  Has anyone see this particular error before and know how to resolve it?

<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="Laserfiche Forms" /> 
    <EventID Qualifiers="0">502</EventID> 
    <Level>2</Level> 
    <Task>0</Task> 
    <Keywords>0x80000000000000</Keywords> 
    <TimeCreated SystemTime="2017-07-08T06:04:58.000000000Z" /> 
    <EventRecordID>12371</EventRecordID> 
    <Channel>LFForms</Channel> 
    <Computer>CORPAPP12.VAMCU.local</Computer> 
    <Security /> 
  </System>
  <EventData>
    <Data>An unexpected error has occurred. [LFF502-UnexpectedError] Details: URL: Error: UnexpectedError Date: 7/8/2017 12:04:58 AM (Mountain Standard Time) HTTP Status Code: 500 Business Process ID: 0 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.InclusiveGateway.TryMerge(cf_bp_worker_instances processInstance, IRoutingContext routingContext) at Laserfiche.Forms.Routing.FlowObject.UpdateInclusiveMergeSteps(cf_bp_worker_instances instanceInMergeContext, IEnumerable`1 inclMergeSteps, IRoutingContext routingContext) at Laserfiche.Forms.Routing.RoutingContext.GetAllSubsequentRoutingSteps() at Laserfiche.Forms.Routing.RoutingDispatcher.GetSubsequentRoutingStepList() at Laserfiche.Forms.Routing.RoutingDispatcher.ExecuteSteps() at Laserfiche.Forms.Routing.RoutingEngineService.RunRouting(RoutingRequestParameters requestParam) at Laserfiche.Forms.Routing.RoutingEngineService.<>c__DisplayClass8_0.<StartRouting_Async>b__0()</Data> 
  </EventData>
</Event>

 

1 0

Replies

replied on July 9, 2017

Did you use inclusive gateway for merging after the user task? The error is for inclusive gateway and it looks like a known issue in Forms 10.2.1 initial release.

It should have been fixed in 10.2.1 Update 1, see https://support.laserfiche.com/kb/1013870/list-of-changes-for-laserfiche-forms-10-2-1-update-1-

Can you apply this update and try again?

If the issue still exists, can you open a support case and provide your process to us?

0 0
replied on July 10, 2017 Show version history

Thank you for the info @████████

Yes, I am using Inclusive Gateways.  But I'm not on 10.2.1, I'm on 10.2.0 Update 1.  I can still work with my I.T. Team to get the update if you believe it will help...

I have two gateways, one that splits and merges in my main process, and then another set that splits and merges in a sub-process.  

So basically, at the point I'm getting the error, I've had the message start event, followed by the first Inclusive Gateway split, followed by the start of the sub-process, followed by the second Include Gateway split, and then a user task has been processed and the user clicked Submit or Reject to move on - that's where the error occurs.  From this point, there is supposed to be several more user tasks, a Workflow Service Task, and a Save to Repository Service Task, prior to the Inclusive Gateway merge, the end of the sub-process, and then the other Inclusive Gateway merge.

Several other nearly identical paths have been working fine despite the gateways.

If we do the update, do we need to install 10.2.1 prior to installing 10.2.1 Update 1 - or will the 10.2.1 Update 1 work by itself to take us from 10.2.0 Update 1 to 10.2.1 Update 1?

0 0
replied on July 10, 2017

@████████- While doing some other testing on my process, I figured out what the difference was between the path that was failing and the others that were not.  The path failing, is the only one I've built (so far) that exists in multiple paths of the Inclusive Gateway on the main process in addition to the path it follows in the sub-process.  I tested by removing it from the secondary path on the main process, and it worked just fine getting through the entire sub-process.

So, that seems to support what you said about it being a bug with the Inclusive Gateway.  So I want to try the upgrade.

Going from 10.2.0 Update 1 to 10.2.1 Update 1 - Do we just install the hotfix, or do we need to install version 10.2.1 first?

Thanks!

0 0
replied on July 10, 2017

Yeah the issue was found on 10.2.0 update 1 as well, and it's related with sub-process. It does not quite like what you described but the error log looks similiar. The process with issue is like this and error occurred on Inclusive Gateway (3):

If you would like to try 10.2.1 update 1, the package downloaded from support site should already contain the update 1 fix (there is a update folder inside), so you just need to install that one.

0 0
replied on July 11, 2017

I've got to run the update through our I.T. guys and Change Management, so it may be a few days before they can install the upgrade, but I'll report back once they have and I've been able to test again.

0 0
replied on March 19, 2018

I'm having a very similar issue with an exclusive gateway. I'm running ver 10.2.1.246.  I am using an exclusive gateway and Approve and Reject are not working.  

 

This is the error I am seeing Below:  

Object reference not set to an instance of an object.
  Message: Exception encountered, stack trace:
  Laserfiche.WebAccess.Common.Util.HostedDefaults..ctor
  Laserfiche.WebAccess.Common.Util.HostedDefaults..cctor
  Laserfiche.WebAccess.Common.UserSettings.WAUserSettings..ctor
  Laserfiche.WebAccess.Common.UserSettings.TrusteeSettings..ctor
Exception details:
  Message: Object reference not set to an instance of an object.
  Stack trace:    at Laserfiche.WebAccess.Common.Util.HostedDefaults..ctor()

0 0
replied on March 19, 2018

Hi Ramika,

Your error was from WebAccess, which is not related with Forms. Can you double check the error log for Forms? Also it's better to open a new post so we could track your issue.

0 0
replied on March 19, 2020

Has anybody been able to route a form based on a value in a collection table.

I have a scenario where any one of my collections are > than 10000.00 the task needs to go for approval else the process can end.

I have set up my conditions however the process just keeps on failing.

The field on the form is currency and my routing rule is (/dataset/Claims/Claim_Amount)>10000.00

One the other path I have tried leaving the path as default with no ruling (but with this the process ends but does not route correctly)

I have tried setting a rules as (/dataset/Claims/Claim_Amount)<10000.00 but than the process terminates.

 

You are not allowed to follow up in this post.

Sign in to reply to this post.