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:
20.4.1
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)
at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable1 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.
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.
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.
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?