I was wondering if anyone could help me. This appears to be a bug with UiPath but I definitely could be wrong. Basically I have a very long process and I am trying to test individual portions. Way down in the flow I have a portion that I am trying to test. When I right click it and click ‘Run from this Activity’ I get thrown this error message:
Message: Object reference not set to an instance of an object.
Exception Type: System.NullReferenceException
RemoteException wrapping System.NullReferenceException: Object reference not set to an instance of an object.
at UiPath.Executor.Debugger.FlowControl.JumpToChild.FlowChartJumpHandler.<>c__DisplayClass9_0.b__2(FlowNode node)
1 source, Func2 predicate)
at UiPath.Executor.Debugger.FlowControl.JumpToChild.FlowChartJumpHandler.SetStartActivity(String childId)
at UiPath.Executor.Debugger.FlowControl.JumpToChild.JumpHandlerFactory.Create(IActivityScheduledRecord record, JumpToChildActivity action)
at UiPath.Executor.Debugger.FlowControl.FlowControlService.HandleJumpToChild(IActivityScheduledRecord record, JumpToChildActivity jumpAction)
at UiPath.Executor.Debugger.FlowControl.FlowControlService.HandleTrack(IActivityScheduledRecord record)
at UiPath.Executor.Tracking.DebugTrackingParticipant.OnTrack(TrackingRecord record, TimeSpan timeout)
at UiPath.Executor.Tracking.SynchronizedTrackingParticipant.Track(TrackingRecord record, TimeSpan timeout)
It allows me to click ‘Step Into’ one single time when I click run from this activity. Another thing of note is that I am able to right click and use the ‘Test Activity’ just fine.
The reason that Test Activity doesn’t help me in this game is because this sequence is just grabbing something and I wanted to test how it follows the flowchart downwards.
Any help would be appreciated
That mean you are not assigning any value to the object that can be any variable, datatable or any argument etc
That is why it is giving object reference not set … because you are assigning null value mean you are not assigning any value.
If you use the variable in that activity so you have to run from the step where the variable is assign to a value
As you are running the flow in middle, so make sure that you are not passing any variable to Null value
Hope this helps
Even if I do the run from this activity on the very first sequence it still throws the same error.
This happens even when trying with the first sequence in the bot.
The only thing inside of this sequence is two assign activities
check the value in the 2nd assign “globalStartTim” are you correctly assigning the value?
Can you check the scope of the variables also check with single assign and check the variables are returning the values without null
OR you can Debug and go step into to check the values are returning fine
Hope this helps you
The scope of the variables would be back to the flowchart as I use those later.
The values return fine as I can right click → ‘Test Activity’ just fine. Also tested through debug and they return fine.
what you are assigning in the 2nd assign activity? seems like nothing is assign to it.
instead of using multiple assign use 2 assign activity then run the process.
Yes. You can see here it shows the values for both showing that they returned values fine when debugging.
As I said, the bot runs perfectly fine. It’s only erroring when I try to use the ‘Run from this Activity’
when you are debug the code on which point it gives “object reference” error. Share screenshot of that part.
May be after multiple assign you are using any log message and in that you are printing the value but not assigning any value to that log message.
Also instead of using multiple assign use 2 assign activities,
It does not do it at any point when debugging the code. It is ONLY when I right click a sequence in my flowchart and select the ‘Run from this Activity’.
I right click and click it and I am able to click step into a single time before it throws me that error. It is not executing any activities inside of the sequence. Here as a further example see below:
I commented out the multiple assign in my first sequence.
I then click on the ‘Run from this Activity’
At this point, I am in debugging mode as we can see from this screenshot.
As soon as I click step into:
If I am using the ‘Run from this Activity’ I don’t need to initialize every single variable prior to starting it, do I…? Even if it’s not being used in the current sequence?
remove below highlight arrow which is connecting your “Build Data” sequence and run the bot like you are running it before.