I have a workflow I’m building and most of the time it runs fine. Occasionally when I run the workflow from Studio I get this compile error:
CrmProcessInvHistory.xaml: Internal constraint exception while running constraint with name ‘Constraint’ against activity of type UiPath.UIAutomationNext.Activities.NClick with name ‘Click ‘OK’’. Exception was: System.NullReferenceException: Object reference not set to an instance of an object.
at System.Activities.WorkflowApplication.Invoke(Activity activity, IDictionary2 inputs, WorkflowInstanceExtensionManager extensions, TimeSpan timeout) at System.Activities.WorkflowInvoker.Invoke(Activity workflow, IDictionary
2 inputs, TimeSpan timeout, WorkflowInstanceExtensionManager extensions)
at System.Activities.WorkflowInvoker.Invoke(Activity workflow, IDictionary2 inputs) at System.Activities.Validation.ActivityValidationServices.RunConstraints(ChildActivity childActivity, ActivityCallStack parentChain, IList
1 constraints, ProcessActivityTreeOptions options, Boolean suppressGetChildrenViolations, IList`1& validationErrors)
I have to restart Studio a couple of times, then it will compile and run without error. I’m not sure where to go with this because it happens occasionally. Thoughts?
Thanks,
Matthew