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

Question

Question

Workflow - object reference not set to an instance of an object

asked on September 1, 2020

I am getting this error on the Invoke Business Process task, but there are no red exclamation marks showing I forgot to reference any of the configurations. Also when I publish there are no warnings.

Normally I only see this error in coding studios, when I forget to set a variable and then I try to reference it, I am not sure why I am getting it in the workflow designer. There is no reference to any object for me to check.

0 0

Replies

replied on September 1, 2020

If you're getting when the workflow runs, there should be a more complete error message in the activity errors log in the WF Admin Console\Monitoring\Error Logs. Paste the stack trace here or open a support case so we can take a closer look.

0 0
replied on September 2, 2020

It gives the following error but I can't make any sense of it. A null reference error means I am referencing something that is null, but I need to know where the reference is being made.

 

----------------------------------------
Timestamp: 2020-09-02 14:48:00.015
Local Time: 9/2/2020 7:48:00 AM
Category: Activity
Machine: LF
Severity: Error
Application Domain: Laserfiche.Workflow.Service.exe
Process Id: 2160
Process Name: C:\Program Files\Laserfiche\Laserfiche Workflow 10.4\Laserfiche.Workflow.Service.exe
Win32 Thread Id: 6116 - 
Thread Name: 
Message: <Exception handlingInstanceId="3c8b0963-87cc-4e09-a903-014e240f646d">
  <Description>An exception of type 'System.NullReferenceException' occurred and was caught.</Description>
  <DateTime>2020-09-02 07:48:00Z</DateTime>
  <ExceptionType>System.NullReferenceException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType>
  <Message>Object reference not set to an instance of an object.</Message>
  <Source>Laserfiche.Workflow.Activities.83.External</Source>
  <HelpLink />
  <Property name="ActivityName">CreateTaskInFormsForWOTC</Property>
  <Property name="ActivityType" />
  <Property name="InstanceId">2be577cc-dc9d-4478-9fa3-46c0e598ab28</Property>
  <Property name="TargetSite">Laserfiche.Workflow.Activities.Forms.Runtime.StartFormsProcessTaskOptions CreateTaskOptions(System.Workflow.ComponentModel.ActivityExecutionContext, Laserfiche.Workflow.Activities.ITokenService)</Property>
  <Property name="HResult">-2147467261</Property>
  <StackTrace>   at Laserfiche.Workflow.Activities.Forms.StartFormFieldValueActivity.CreateTaskOptions(ActivityExecutionContext executionContext, ITokenService tokenService)
   at Laserfiche.Workflow.Activities.Forms.StartFormFieldValueActivity.ExecuteTask(ActivityExecutionContext executionContext)
   at System.Workflow.ComponentModel.ActivityExecutorOperation.Run(IWorkflowCoreRuntime workflowCoreRuntime)
   at System.Workflow.Runtime.Scheduler.Run()</StackTrace>
  <additionalInfo>
    <info name="MachineName" value="LF" />
    <info name="TimeStamp" value="9/2/2020 2:48:00 PM" />
    <info name="FullName" value="Microsoft.Practices.EnterpriseLibrary.ExceptionHandling, Version=5.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
    <info name="AppDomainName" value="Laserfiche.Workflow.Service.exe" />
    <info name="ThreadIdentity" value="" />
    <info name="WindowsIdentity" value="NT AUTHORITY\SYSTEM" />
  </additionalInfo>
</Exception>
----------------------------------------

 

0 0
replied on September 2, 2020

Found the null reference. The workflow had input parameters, a new input parameter was added at a later date as well as a reference to that token. 

What is odd though, is that I chose to update existing workflows that are already running, so why was the parameter not included?

I verified that it does not show up in the parameters tab, it should at least show up with it's default value of <Blank> so that a reference error isn't thrown.

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

Sign in to reply to this post.