Invalid invoked workflow - Failed to create a Version from the text V3

Hello

I was working on an RPA process in the Studio. Now it can no longer be played.
When I click on the Workflow “BatchInputTestRun.xaml” I get the following error message (1)

That is also probably why I cannot publish the process:
image
I get the message “Failed to create a Version from the text V3” - Failed to create a Version from the text V3. Line number 262 and line position 2022. Row: 262, Column: 2022.

I work with Studio Version 2023.10.4 and my dependencies are:
image

Has anyone experienced the same problem?

It used to work smoothly and then somehow i get these messages.

(1)

Path of the invoked workflow… could not be opened: Document is invalid.

  • —> RemoteException wrapping System.IO.InvalidDataException: Document is invalid *
  • at UiPath.Studio.Plugin.Workflow.WorkflowHandling.DesignerBuilder.InitRootActivity(WorkflowDesigner designer, String filename)*
  • 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.Load(String fileName)*
  • at UiPath.Studio.Plugin.Workflow.Services.DesignerFileProjectEndpoint.<>c__DisplayClass8_0.<b__0>d.MoveNext()*
    — End of stack trace from previous location —
  • at UiPath.Studio.Plugin.Workflow.Services.DesignerFileProjectEndpoint.<>c__DisplayClass8_0.<b__0>d.MoveNext()*
    — End of stack trace from previous location —
  • at UiPath.Studio.Shared.MVVM.Services.DispatcherService.InvokeAsync(Func`1 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, Func`2 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, 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.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*

Hi @moritz.seiler

Is there an iteration of the code that you have already pushed into the orchestrator?
If available take this “BatchInputTestRun.xaml” from that iteration of that code replace it in the present one. You can download the last running package from orchestrator.

If the file has been updated or modified after the last deployment, retrieving the last package may not provide the desired results.

Hope this helps :slight_smile:

Unfortunately that didn’t work…

What does that mean:
‘Failed to create a ‘Version’ from the text ‘V3’.’ Line number ‘191’ and line position ‘465’. Row: 191, Column: 465?

Have you tried updating the packages to latest version that seems to have worked for other users

Could not be opened: Failed to create a ‘Version’ from the text ‘V3’ - Help / Studio - UiPath Community Forum

@AJ_Ask

Yes, I just updated all to the latest version.
Still does not work…


I hope I don’t need to start from the scratch and i can’t open this invoked workflow at all… so strange.

Uninstall automation and system activity and re-install them, try newest release and also try pre-release if newest release doesn’t work.

Not sure by exactly what this is caused, but I assume it is caused from copying or integrating activities that have newer dependency.

Try to close Studio, open the xaml in Notepad++ and look for these details ‘‘V3’.’ Line number ‘191’ and line position ‘465’. Row: 191, Column: 465, and try to change the V3 to V2 → save → try to open the Studio project.

I think you upgraded/downgraded some ui activities or you upgraded recently the UiPath.UIAutomation.Packages to 23.10.9.


You can provide the Studio project archived in a zip file to see if the above solution helped.

1 Like