Breakpoint condition throwing error

In my REFramework project, I have put a breakpoint on the Check Stop Signal activity in the Get Transaction Data state. I added the condition TransactionNumber>1, and every time this activity throws the error

22.10.5+Branch.support-v22.10.Sha.79bc7c61a909d990afd07620b3005b3a35eb1f1b

Failed to evaluate condition: TransactionNumber>1
Executed condition returned: Exception has been thrown by the target of an invocation.

Why is this throwing this error?

image

@joe.foster

Please click on open loga and check the full logs to understand…

Also can you check in variables if transactionnumber variable is initialized with 1 or is it removed

Cheers

TransactionNumber is initialized to 1

This is from the UiPath Studio log:
12:48:33.5657 => [ERROR] [UiPath.Studio] [139] RemoteException wrapping System.Exception: Cannot evaluate ‘TransactionNumber>1’ at current context. —> RemoteException wrapping System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. —> RemoteException wrapping System.InvalidOperationException: Compilation failures occurred:

‘System.Activities.Statements.StateMachineEventManager’ is inaccessible due to its protection level Inconsistent accessibility: property type ‘System.Activities.Statements.StateMachineEventManager’ is less accessible than property ‘__evalWorkflow_CompiledExpressionRoot.__evalWorkflow_CompiledExpressionRoot_TypedDataContext1.EventManager’ ‘System.Activities.Statements.StateMachineEventManager’ is inaccessible due to its protection level Inconsistent accessibility: property type ‘System.Activities.Statements.StateMachineEventManager’ is less accessible than property ‘__evalWorkflow_CompiledExpressionRoot.__evalWorkflow_CompiledExpressionRoot_TypedDataContext1_ForReadOnly.EventManager’

Complete results are contained in the Data property of this exception. Please correct the errors in the source and retry the Load.
at System.Activities.XamlIntegration.ActivityXamlServices.Compile(IDynamicActivity dynamicActivity, LocationReferenceEnvironment environment)
— End of inner exception stack trace —
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object parameters, Object arguments)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object parameters, CultureInfo culture)
at ReflectionMagic.PrivateReflectionDynamicObjectBase.InvokeMethodOnType(Type type, Object target, String name, Object args, Type typeArgs)
at ReflectionMagic.PrivateReflectionDynamicObjectBase.TryInvokeMember(InvokeMemberBinder binder, Object args, Object& result)
at CallSite.Target(Closure , CallSite , Object , DynamicActivity , Object )
at System.Dynamic.UpdateDelegates.UpdateAndExecuteVoid3[T0,T1,T2](CallSite site, T0 arg0, T1 arg1, T2 arg2)
at UiPath.Activities.Debugger.ActivityXamlServicesProxy.Compile(DynamicActivity dynamicActivity)
at UiPath.Activities.Debugger.CsharpRValueEvaluator.Evaluate(String expressionString, Type locationValueType, IList1 referencedAssemblies, IList1 includedNamespaces)
— End of inner exception stack trace —
at UiPath.Activities.Debugger.CsharpRValueEvaluator.Evaluate(String expressionString, Type locationValueType, IList1 referencedAssemblies, IList1 includedNamespaces)
at UiPath.Activities.Debugger.DebugInfo.EvaluateExpression(String expressionString, IList1 referencedAssemblies, IList1 includedNamespaces, ExpressionLanguage expressionLanguage)
at UiPath.Executor.Tracking.DebugTrackingParticipant.EvaluateExpressionInternal(String expression)
at UiPath.Executor.Tracking.DebugTrackingParticipant.EvaluateExpression(String expression)
at UiPath.Executor.DebuggerPlugin.EvaluateExpression(String expression, CancellationToken cancellationToken)
at lambda_method(Closure , Object , Object )
at UiPath.CoreIpc.Server.Method.Invoke(Object service, Object arguments)
at UiPath.CoreIpc.Server.<>c__DisplayClass7_3.<.ctor>g__MethodCall|8()
at UiPath.CoreIpc.Server.<>c__DisplayClass7_3.<<-ctor>g__InvokeMethod|6>d.MoveNext()
— End of stack trace from previous location where exception was thrown —
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at UiPath.CoreIpc.Server.<>c__DisplayClass7_1.<<-ctor>g__HandleRequest|3>d.MoveNext()
— End of stack trace from previous location where exception was thrown —
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at UiPath.CoreIpc.Server.<>c__DisplayClass7_2.<<-ctor>b__5>d.MoveNext()
— End of stack trace from previous location where exception was thrown —
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at UiPath.CoreIpc.Helpers.d__9`1.MoveNext()

Hi joe.foster,
This is because the TransactionNumber variable is null. Please check if you are passing the TransactionNumber value as argument value to the desired workflow.

Cheers!

TransactionNumber is not null - it is equal to 1 - I can see that in the Locals panel.

However, for some inexplicable reason, it has decided to start working. I made no changes whatsoever…

1 Like

Hi Joe,

If the error appear on GetTransactionData workflow then you need to use the in_TransactionNumber argument instead of TransactionNumber.
Cheers!

This is in the Get Transaction Data state of Main, NOT the GetTransactionData workflow.

Also, it has stopped working after it DID work for a short period. I made no relevant changes…

I have added a Log Message activity that shows that TransactionNumber is 1, and that the condition “TransactionNumber > 1” is false. It just seems that Conditional Breakpoint does not work as advertised…

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