Issue with REF, REF duplicates variables reference object error

Dears, i have an issue. REF duplicate variables:

Details of error:
23.4.0-beta.12241+Branch.release-v23.4.0.Sha.be54cb29c47168fa58c4ddc437b353fa4a43364e

Object reference not set to an instance of an object.

Error: UiPath.WorkflowProcessor.Common.Exceptions.UiPathLocalizedException: Object reference not set to an instance of an object.
at UiPath.WorkflowProcessor.Common.Preprocessing.WorkflowDocumentPreprocessor.GetDependencyTree(LoggingScope scope, String xamlFilePath, IDictionary2 codeSourceFiles) at UiPath.Studio.ProjectCompiler.Services.ProjectCompilerService.<>c__DisplayClass9_0.<CalculateCompilationDependencies>b__1(String wf) at System.Linq.Enumerable.SelectEnumerableIterator2.MoveNext()
at System.Linq.Enumerable.SelectManySingleSelectorIterator2.MoveNext() at System.Linq.Enumerable.DistinctIterator1.MoveNext()
at System.Linq.Enumerable.WhereEnumerableIterator1.ToArray() at UiPath.Studio.Plugin.Workflow.Execution.Services.ExecutionCompilationService.CompileInternal(Boolean calculateWorkflowDependencies) at UiPath.Studio.Plugin.Workflow.Execution.Services.ExecutionCompilationService.Compile(String entryWorkflow) at UiPath.Studio.Plugin.Workflow.Execution.Services.ExecutionStartConfigurator.ConfigureAsync(Boolean firstExecutionInBatch, Boolean lastExecutionInBatch, IEnumerable1 batchedDocuments, String entryWorkflow)
at UiPath.Studio.Plugin.Workflow.Execution.Services.WorkflowExecutor.StartExecution(ExecutionConfig config)
at UiPath.Studio.Shell.Execution.Services.ExecutionManagerBaseService.TryStartExecution(ExecutionConfig executionConfig, Boolean validate)
at UiPath.Studio.Shell.Execution.Services.ExecutionManagerService.<>c__DisplayClass27_0.<g__StartExecutionAsync|1>d.MoveNext()
— End of stack trace from previous location —
at UiPath.Studio.Shell.Execution.Services.ExecutionManagerService.ProcessExecutionCommand(ExecutionCommand command, Object item, ExecutionParameters executionParameters)
at UiPath.Studio.Shell.Execution.ViewModels.DebugViewModel.ExecuteDebugAsync(IPersistableItem item, ExecutionParameters executionParameters)
at UiPath.Studio.Shell.ViewModels.DebugTabViewModel.ExecuteDebugFile()
at UiPath.Studio.App.Desktop.MVVM.Commands.TaskCommand`3.Execute(TExecuteParameter parameter, Boolean ignoreCanExecuteCheck)
at System.Threading.Tasks.Task.<>c.b__128_0(Object state)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler), HResult -2146233088

Hi @Senkyr_Gonzalez_Benjamin

Welcome to the UiPath Community Forum, :smiley:

This error occurs when the variable you are using in your flow does not have any values assigned to it,

in the debug mode check wheather your variables used in the flow are getting a values assigned in each step.

Regards
Vasanth Kumar

Hi @Senkyr_Gonzalez_Benjamin

Which task are you trying to perform? maybe you can create a new process and check if the issue persists?

Regards