On 2019.10.0-beta.477 when I try to invoke snippet “Wait For All Form Tasks Completion.xaml” using Invoke Workflow File I get the following message :
RemoteException wrapping System.Activities.ValidationException: An extension of type ‘UiPath.Activities.Contracts.Persistence.IPersistenceBookmarks’ must be configured in order to run this workflow.
at System.Activities.Hosting.WorkflowInstanceExtensionCollection…ctor(Activity workflowDefinition,
WorkflowInstanceExtensionManager extensionManager)
at System.Activities.Hosting.WorkflowInstanceExtensionManager.CreateInstanceExtensions(Activity workflowDefinition,
WorkflowInstanceExtensionManager extensionManager)
at System.Activities.Hosting.WorkflowInstance.RegisterExtensionManager(WorkflowInstanceExtensionManager extensionManager)
at System.Activities.WorkflowApplication.EnsureInitialized()
at System.Activities.WorkflowApplication.Enqueue(InstanceOperation operation,
Boolean push)
at System.Activities.WorkflowApplication.SimpleOperationAsyncResult.Run(TimeSpan timeout)
at System.Activities.WorkflowApplication.BeginRun(AsyncCallback callback,
Object state)
at UiPath.Executor.InProcessRunner.<>c__DisplayClass6_0.g__StartWorkflow|1()
at UiPath.Executor.InProcessRunner.BeginExecute(AsyncCallback callback,
Object state)
at UiPath.Core.Activities.ExecutorInvokeActivity.BeginExecute(AsyncCodeActivityContext context,
AsyncCallback callback,
Object state)
at System.Activities.AsyncCodeActivity.InternalExecute(ActivityInstance instance,
ActivityExecutor executor,
BookmarkManager bookmarkManager)
at System.Activities.ActivityInstance.Execute(ActivityExecutor executor,
BookmarkManager bookmarkManager)
at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor,
BookmarkManager bookmarkManager,
Location resultLocation)
I’m able to launch the file directly not just invoke it. what can be the reason?
Right click on the invoke workflow activity and click on toggle break point. This will add a red color circle on that activity. Now run the program in debug mode. Once the execution reach there, it will stop there and give you the control of the execution to run it step by step. Now click on go to next step… keep doing that until you get the error. This will help you to locate from where the error is coming from…
I did a test with an empty sequence file without any issue and got the issue once I added the sequence from “Wait For All Form Tasks Completion” snippet.
In the other end, if I copy Wait For All Form Tasks Completion content in a sequence in Main.xaml, I have no issue…
For the time being, long-running workflows must be created using the Orchestration Process template in Studio (see below) due to slightly different settings in the project.json file.