Issue running bot after moving the project to a different system

Hi Team,

I am using a free trial version, after finishing one task, trying to move the whole project folder along with UiPath reference screenshots for uiautomation etc, its not running at all.
Please suggest how can i stabilize, I see the studio version is higher than the old system. No way to downgrade also.

Error output-

Main.xaml: Internal constraint exception while running constraint with name ‘Constraint’ against activity of type System.Activities.Statements.Sequence with name ‘Sequence’. 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, IDictionary2 inputs, TimeSpan timeout, WorkflowInstanceExtensionManager extensions)
at System.Activities.WorkflowInvoker.Invoke(Activity workflow, IDictionary2 inputs) at System.Activities.Validation.ActivityValidationServices.RunConstraints(ChildActivity childActivity, ActivityCallStack parentChain, IList1 constraints, ProcessActivityTreeOptions options, Boolean suppressGetChildrenViolations, IList`1& validationErrors)

@Ranjit_Nayak1

Many many happy returns of the day

Please check this…it is mostly causing due to power shell/check app state activities try removing and recreating them…else the workaround is to copy each to new project and use

Hope this helps

Cheers

sorry missing something, couldn’t get this step.

Could you please share your screen which you are referrering.

Thanks!

@Ranjit_Nayak1

Which step you are facing issue with?

Did you happen to check the thread mentioned?

Cheers

Already checked, not clear the steps.

@Ranjit_Nayak1

Create a new file…and copy the activities from
Old one to new and use that caml instead of the faulty xaml

Cheers

Its main xaml file showing faulted.

Also If i copy the activities one by one, its not copying along with reference screenshots.

@Ranjit_Nayak1

You can copy .screenshot folder that might disply images

Cheers

its same, copied one by one also. validation error:

Error ERROR Validation Error Internal constraint exception while running constraint with name ‘Constraint’ against activity of type System.Activities.Statements.Sequence with name ‘Sequence’. 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, IDictionary2 inputs, TimeSpan timeout, WorkflowInstanceExtensionManager extensions)
at System.Activities.WorkflowInvoker.Invoke(Activity workflow, IDictionary2 inputs) at System.Activities.Validation.ActivityValidationServices.RunConstraints(ChildActivity childActivity, ActivityCallStack parentChain, IList1 constraints, ProcessActivityTreeOptions options, Boolean suppressGetChildrenViolations, IList`1& validationErrors) Main.xaml

@Ranjit_Nayak1

Validate the process after copying each activity so that you can identify which activity is causing error and do not copy that…instead drag a new activity instead of that corrupted one

Cheers

I am using analyze project option from top menu, there it’s showing the resultant error which i have mentioned.

Not able to figure out which activity causing the problem.

@Ranjit_Nayak1

For the same reason in the new project that you are creating copy the activities one by one…and analyze each time…

Cheers

Hi @Ranjit_Nayak1 ,

Could you show us the Screenshot of the Error that you are receiving ?

When Performed Analyze Project, you should get an Error List (If Errors are present) like below :

Then, we would be able to understand which workflow the error happens, narrowing down on the area to correct/Debug further.

After long time spent, found that issue was because of Check Activity, I have used this for radio buttons, check boxes. I have changed the activity based on version and this worked fine.

2 Likes

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.