Error opening Main.xaml in UiPath

I am not able to open my mail.xaml file its showing error.
Cannot open item: UiPath.Studio.Contracts.RecoverableException: The item ‘C:\Users\talib\OneDrive\ドキュメント\UiPath\Immigration Bot\Main.xaml’ could not be opened: Failed to create a ‘Version’ from the text

24.10.4-beta.17693+Branch.release-v24.10.4.Sha.23194d406b66452fd1dd41226b57a4ce8b842719.23194d406b66452fd1dd41226b57a4ce8b842719

The item ‘C:\Users\talib\OneDrive\ドキュメント\UiPath\Immigration Bot\Main.xaml’ could not be opened: Failed to create a ‘Version’ from the text ‘V4’…

Cannot open item: UiPath.Studio.Contracts.RecoverableException: The item ‘C:\Users\talib\OneDrive\ドキュメント\UiPath\Immigration Bot\Main.xaml’ could not be opened: Failed to create a ‘Version’ from the text ‘V4’…
—> RemoteException wrapping System.Xaml.XamlObjectWriterException: Failed to create a ‘Version’ from the text ‘V4’. —> RemoteException wrapping System.FormatException: V4 is not a valid value for NActivityVersion. —> RemoteException wrapping System.ArgumentException: Requested value ‘V4’ was not found.
at System.Enum.TryParseByName[TStorage](RuntimeType enumType, ReadOnlySpan1 value, Boolean ignoreCase, Boolean throwOnFailure, TStorage& result) at System.Enum.TryParseByValueOrName[TUnderlying,TStorage](RuntimeType enumType, ReadOnlySpan1 value, Boolean ignoreCase, Boolean throwOnFailure, TUnderlying& result)
at System.Enum.TryParse(Type enumType, ReadOnlySpan1 value, Boolean ignoreCase, Boolean throwOnFailure, Object& result) at System.ComponentModel.EnumConverter.ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, Object value) --- End of inner exception stack trace --- at System.ComponentModel.EnumConverter.ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, Object value) at MS.Internal.Xaml.Runtime.ClrObjectRuntime.CreateObjectWithTypeConverter(ServiceProviderContext serviceContext, XamlValueConverter1 ts, Object value)
at System.Xaml.XamlObjectWriter.Logic_CreateFromValue(ObjectWriterContext ctx, XamlValueConverter1 typeConverter, Object value, XamlMember property, String targetName, IAddLineInfo lineInfo) --- End of inner exception stack trace --- at System.Xaml.XamlObjectWriter.Logic_CreateFromValue(ObjectWriterContext ctx, XamlValueConverter1 typeConverter, Object value, XamlMember property, String targetName, IAddLineInfo lineInfo)
at System.Xaml.XamlObjectWriter.Logic_CreatePropertyValueFromValue(ObjectWriterContext ctx)
at System.Xaml.XamlObjectWriter.WriteEndMember()
at System.Xaml.XamlServices.Transform(XamlReader xamlReader, XamlWriter xamlWriter, Boolean closeWriter)
at System.Xaml.XamlServices.Load(XamlReader xamlReader)
at UiPath.Workflow.Operations.Serializer.Services.WorkflowXamlSerializer.CreateActivityBuilder(Stream stream)
at UiPath.Workflow.Operations.Serializer.Services.WorkflowXamlSerializer.CreateFromStream(Stream stream)
at UiPath.Workflow.Operations.Serializer.Services.WorkflowXamlSerializer.LoadFromFile(String file)
at UiPath.Studio.Plugin.Workflow.WorkflowHandling.DesignerBuilder.g__LoadActivityBuilderFromFile|45_0(String fileName)
at UiPath.Studio.Plugin.Workflow.WorkflowHandling.DesignerBuilder.LoadFileInDesigner(String fileName, WorkflowDesigner designer)
at UiPath.Studio.Plugin.Workflow.WorkflowHandling.DesignerBuilder.BuildInternal(DesignerEventsSubscriber eventsSubscriber, String workflowId, String fileName)
at UiPath.Studio.Plugin.Workflow.WorkflowHandling.DesignerBuilder.Build(DesignerEventsSubscriber eventsSubscriber, String workflowId, String fileName)
at UiPath.Studio.Plugin.Workflow.WorkflowHandling.DesignerWrapper.LoadAsync(String fileName)
at UiPath.Studio.Plugin.Workflow.Services.DesignerFileProjectEndpoint.<>c__DisplayClass11_0.<b__0>d.MoveNext()
— End of stack trace from previous location —
at UiPath.Studio.Plugin.Workflow.Services.DesignerFileProjectEndpoint.<>c__DisplayClass11_0.<b__0>d.MoveNext()
— End of stack trace from previous location —
at UiPath.Studio.Shared.MVVM.Services.DispatcherService.InvokeAsync(Func1 func) at UiPath.Studio.Plugin.Workflow.Services.DesignerFileProjectEndpoint.Load(String fileName) at UiPath.CoreIpc.Server.<>c__DisplayClass7_3.<<-ctor>g__InvokeMethod|6>d.MoveNext() --- End of stack trace from previous location --- at UiPath.CoreIpc.Server.<>c__DisplayClass7_1.<<-ctor>g__HandleRequest|3>d.MoveNext() --- End of stack trace from previous location --- at UiPath.CoreIpc.Server.<>c__DisplayClass7_2.<<-ctor>b__5>d.MoveNext() --- End of stack trace from previous location --- at UiPath.CoreIpc.Helpers.Timeout[TResult](TimeSpan timeout, List1 cancellationTokens, Func2 func, String message, Func2 exceptionHandler)
— End of inner exception stack trace —
at UiPath.Studio.Core.Services.PersistableServiceBase3.OnOpenAsyncInternal(String path, IFactory2 resolvedFactory, IOpenOptions options)
at UiPath.Studio.Core.Services.PersistableServiceBase3.OnOpenAsync(String path, IFactory2 resolvedFactory, IOpenOptions options)
at UiPath.Studio.Shell.Services.DocumentService.OnOpenAsync(String path, IFactory2 resolvedFactory, IOpenOptions options) at UiPath.Studio.Core.Services.PersistableServiceBase3.OpenAsync(OpenInformation openInfo)
at UiPath.Studio.App.Desktop.ProjectItems.Behaviors.FileProjectItemBehavior.TryToOpenFileAsync(String filePath)
at UiPath.Studio.App.Desktop.ProjectItems.Behaviors.FileProjectItemBehavior.ExecuteOpenAsync(IFileSystemProjectItemViewModel item)
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

I think is because the project is on one drive
Try to copy paste the project folder on system somewhere in c drive
And see if u r getting the same error ?
Also open the project from project.json while accessing it do not directly open from main.xaml

Sometimes I encounter that error too.

A UiPath Studio error dialog indicates that a specific item cannot be opened due to an exception thrown during the activation of a workflow handling component. (Captioned by AI)

Close the studio and Open Studio ;
image

Open the .json folder

@58_Talib_Qadri Is it resolved now ?

Having the same issue
An error message in UiPath indicates that the "Submit Loan Application Form.xaml" file could not be opened due to a failure in creating a version from the text "V4". (Captioned by AI)
@UiPath_Community @uipath
If it will not resolved then i need to design again from starting.

Check the package from where it’s calling all the packages
In the settings cross check once

I was able to resolve this error after searching and finding no one else seemed to solve without rebuilding. This occurred when copying a .xml from one project to another, I updated dependencies on both projects and closed them then I copied file in question into the destination project again and it worked. They were not using different dependencies either this just somehow magically fixed.