Help: Not able to open Workflow

I have developed one workflow in “Legacy” now I have transferred that code to another system where I am using the community version but I am not able to open the workflow and I am getting this error.

image

Also i want to convert the entire workflow to “Windows”

image

Cannot open item: UiPath.Studio.Contracts.RecoverableException: The item 'C:\Users\vinit\Desktop\Vendor_Complaince\Process_1\Main.xaml' could not be opened: Cannot set unknown member '{http://schemas.microsoft.com/netfx/2009/xaml/activities}VisualBasic.Settings'..
 ---> RemoteException wrapping System.Xaml.XamlObjectWriterException: Cannot set unknown member '{http://schemas.microsoft.com/netfx/2009/xaml/activities}VisualBasic.Settings'. 
   at System.Xaml.XamlObjectWriter.WriteStartMember(XamlMember property)
   at System.Xaml.XamlWriter.WriteNode(XamlReader reader)
   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.<LoadFileInDesigner>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>d__257.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at UiPath.Studio.Plugin.Workflow.Services.DesignerFileProjectEndpoint.<>c__DisplayClass10_0.<<Load>b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at UiPath.Studio.Plugin.Workflow.Services.DesignerFileProjectEndpoint.<>c__DisplayClass10_0.<<Load>b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at UiPath.Studio.Shared.MVVM.Services.DispatcherService.<InvokeAsync>d__18.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at UiPath.Studio.Plugin.Workflow.Services.DesignerFileProjectEndpoint.<Load>d__10.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at UiPath.CoreIpc.Server.<>c__DisplayClass7_3.<<-ctor>g__InvokeMethod|6>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at UiPath.CoreIpc.Server.<>c__DisplayClass7_1.<<-ctor>g__HandleRequest|3>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at UiPath.CoreIpc.Server.<>c__DisplayClass7_2.<<-ctor>b__5>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at UiPath.CoreIpc.Helpers.<Timeout>d__9`1.MoveNext()
   --- End of inner exception stack trace ---
   at UiPath.Studio.Core.Services.PersistableServiceBase`3.OnOpenAsyncInternal(String path, IFactory`2 resolvedFactory, IOpenOptions options)
   at UiPath.Studio.Core.Services.PersistableServiceBase`3.OnOpenAsync(String path, IFactory`2 resolvedFactory, IOpenOptions options)
   at UiPath.Studio.Shell.Services.DocumentService.OnOpenAsync(String path, IFactory`2 resolvedFactory, IOpenOptions options)
   at UiPath.Studio.Core.Services.PersistableServiceBase`3.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.<ThrowAsync>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

Regards,
Vinit Mhatre

Hi @Vinit_Mhatre

Please check the below thread:

Regards

I dont get it , what i need to do here

@Vinit_Mhatre,

It’s due to Legacy to Windows Compatibility issue.

From your your Legacy project, right click on project name in project folder and click on Convert to Windows.

Once converted then, copy the workflow to windows project.

Thanks,
Ashok :slight_smile:

Hi @ashokkarale ,

Actually, I got this issue while converting from legacy to Windows.

image

Regards,
Vinit Mhatre

@Vinit_Mhatre,

It means there is some error in some workflow. Fix the code or comment out that code and retry.

Thanks,
Ashok :slight_smile:

@ashokkarale I tested the entire workflow in legacy on the development server and it was successfully executed; now I want to convert it into Windows but I am unable to open the “main.xaml”

@Vinit_Mhatre

do you mean the project is not getting loaded correctly in Legacy as well? Try restoring all the dependencies if not already.

Check the project.json for any unintentional changes done.

Thanks,
Ashok :slight_smile: