Empty path name is not legal in global variable

test.zip (5.3 KB)

@Anil_G

pls find attached file.

Attaching logs also:

Error: System.Exception: Empty path name is not legal.
at System.IO.Strategies.FileStreamHelpers.ValidateArguments(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, Int64 preallocationSize)
at Roslyn.Utilities.StandardFileSystem.OpenFile(String filePath, FileMode mode, FileAccess access, FileShare share)
at Roslyn.Utilities.CommonCompilerFileSystemExtensions.OpenFileWithNormalizedException(ICommonCompilerFileSystem fileSystem, String filePath, FileMode fileMode, FileAccess fileAccess, FileShare fileShare)
at UiPath.Studio.Plugin.Workflow.GlobalVariables.GlobalVariablesCompiler.<>c__DisplayClass13_0.b__2(String location)
at UiPath.Shared.Extensions.CollectionExtensions.ForEach[TItem](IEnumerable1 collection, Action1 action)
at UiPath.Studio.Plugin.Workflow.GlobalVariables.GlobalVariablesCompiler.GetMetadataReferences(IEnumerable1 dependencies) at UiPath.Studio.Plugin.Workflow.GlobalVariables.VisualBasicGlobalVariablesCompiler.CreateCompilation(String assemblyName, IEnumerable1 syntaxTrees, IEnumerable1 dependencies) at UiPath.Studio.Plugin.Workflow.GlobalVariables.GlobalVariablesCompiler.Run(IEnumerable1 globalVariables, String outputDirectory, String assemblyName, String& assemblyPath)
at UiPath.Studio.Workflow.GlobalVariables.GlobalVariablesAssemblyManager.GenerateAssembly(ExpressionLanguage language, String projectDirectory, IEnumerable1 variables, String& assemblyPath) at UiPath.Studio.Workflow.GlobalVariables.GlobalVariablesAssemblyManager.GenerateCorrespondingAssembly(ExpressionLanguage language, String projectDirectory, IEnumerable1 variables)
at UiPath.Studio.Plugin.Workflow.GlobalVariables.GlobalVariablesInstallerProjectService.InstallInternal(String projectDirectory, ExpressionLanguage expressionLanguage, String assemblyPath, IEnumerable1 variables) at UiPath.Studio.Plugin.Workflow.GlobalVariables.GlobalVariablesInstallerProjectService.Install(String projectDirectory, ExpressionLanguage expressionLanguage, IEnumerable1 variables)
at UiPath.Studio.Plugin.Workflow.GlobalVariables.GlobalVariablesProjectEndpoint.OnGlobalVariablesChanged(IEnumerable1 variables) at UiPath.Studio.Plugin.Workflow.GlobalVariables.GlobalVariablesProjectEndpoint.StoreVariables(IEnumerable1 variables)
at UiPath.Studio.Plugin.Workflow.Business.DataManager.Services.GlobalVariablesDesignerService.StoreGlobalVariablesWithValidDefaultValuesOnly()
at UiPath.Studio.Plugin.Workflow.Business.DataManager.Services.GlobalVariablesDesignerService.GlobalDesigner_ModelChanged(Object sender, EventArgs e)
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 -2147024809