I am getting this error when I needed to .create a global variable in UiPath Studio.
“An error has occurred while generating the global variables assembly.”
Thank you for your response.
I have tried this solution, but the error still consists even though I have imported them.
Would you have any solution for this error?
I checked, it only happens with this specific project I am currently working on. I can create global variables in other projects, but I’m wondering why this issue arises only in this project.
Thank you for your response. Although the issue didn’t resolve yet, I created a new project and copied the processes into it. Sometimes, it indicate an error infront of the imported GlobalVariablesNamesapce. Could you please tell me the path, where I can access this .json file? I can’t seem to locate it within my project.
Hi, was this issue resolved and if so how? I’m getting an error with one project where getting same namespace error.
I tried deleting the namespace and the content of the globalVariables.json, saving the changes and closing the project. However, did not resolve anything.
In Data Manager panel, I don’t see ‘Global’ under ‘Variables’. When I try to add a new GV I get the error
An error has occured while generating the global variables assembly.
Error: System.Exception: An error has occured while generating the global variables assembly.
at UiPath.Studio.Plugin.Workflow.GlobalVariables.GlobalVariablesProjectEndpoint.StoreVariables(IEnumerable`1 variables)
at UiPath.Studio.Plugin.Workflow.Business.DataManager.Services.GlobalVariablesDesignerService.StoreGlobalVariablesWithValidDefaultValuesOnly()
at UiPath.Studio.Plugin.Workflow.Business.DataManager.Services.GlobalVariablesDesignerService.ModelService_ModelChanged(Object sender, ModelChangedEventArgs 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 -2146233088
I have another project created pretty much at the same time with the same age package dependencies, and that one has no issues and used Gobal Variables. That one also had the same error when I opened it, closing and re-opening the project solved it.
Any assistance to resolve, short of creating an empty new project and copying in all the workflows from the failing one, much appreciated.