How to change the xaml file name for invoke workflow file

hello.

I am trying to use Invoke Workflow File by variable Workflow file name.

It worked in windows-Legacy, but it doesn’t work with an error in windows.

There is an argument in the photo, but the same problem occurs even if the argument is removed.

Please help if anyone knows how to solve or bypass this problem.

If there is no way, is it okay to continue using Windows legacy as it is?

thank you!

Error Message

22.8.0-beta.10010+Branch.release-v22.8.0.Sha.ac740b686b8d59600219b7f03029129d3e745527

invokeElement

Error: UiPath.WorkflowProcessor.Common.Exceptions.UiPathLocalizedException: invokeElement
   at UiPath.WorkflowProcessor.Common.Preprocessing.WorkflowDocumentPreprocessor.GetDependencyTree(LoggingScope scope, String xamlFilePath)
   at System.Linq.Enumerable.SelectArrayIterator`2.MoveNext()
   at System.Linq.Enumerable.SelectManySingleSelectorIterator`2.MoveNext()
   at System.Linq.Enumerable.DistinctIterator`1.MoveNext()
   at System.Linq.Enumerable.Any[TSource](IEnumerable`1 source)
   at UiPath.Studio.Plugin.Workflow.Execution.Services.ExecutionCompilationService.Compile(String entryWorkflow)
   at UiPath.Studio.Plugin.Workflow.Execution.Services.ExecutionStartConfigurator.ConfigureAsync(Boolean firstExecutionInBatch, Boolean lastExecutionInBatch, 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.<<ProcessExecutionCommand>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.ExecuteDebugProject()
   at UiPath.Studio.App.Desktop.MVVM.Commands.TaskCommand`3.Execute(TExecuteParameter parameter, Boolean ignoreCanExecuteCheck)
   at UiPath.Studio.App.Desktop.MVVM.Commands.TaskCommand`3.Execute(TExecuteParameter parameter, Boolean ignoreCanExecuteCheck)
   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

Hey @sch6393

It is recommended to migrate to Windows from legacy.

So could you please mention the activity package versions to reproduce and check from our side…

Thanks
#nK

Are you receiving the error when running / debugging the workflow or does it throw an error when compiling?

Thank you
I’ll have to find a solution somehow

Occurs when compiling
windows doesn’t compiling (legacy is compile OK, running OK)
error message is as above

Hi @sch6393

Can you share your solution here, It will be helpful for other too.

Regards
Gokul