Greetings,
I was experimenting with Run Local Trigger activity and it seems that the are issues preventing robot from starting when this activity is found in any file of the project.
Steps to reproduce
- Create new project with RoboticEnterprizeFramework
- Update all packages to the newest version
- Add Run Local Triggers as first activity in Init State (or anywhere else)
- Press Run
By my testing - You should get an error - Duplicate Attribute with the following message
Error: RemoteException wrapping System.InvalidOperationException: Duplicate attribute.
at System.Xml.Linq.XContainer.AddContentSkipNotify(Object content)
at System.Xml.Linq.XContainer.AddContentSkipNotify(Object content)
at System.Xml.Linq.XContainer.AddContentSkipNotify(Object content)
at UiPath.TriggersProcessor.LocalTriggers.XmlTransform.TriggerXmlGenerator.BuildGeneratedWorkflow(TriggerWorkflowModel startingWorkflow, List`1 otherWorkflows, WorkflowModel mergedWorkflowModel, String secondTemplatePart)
at UiPath.TriggersProcessor.LocalTriggers.XmlTransform.TriggerXmlGenerator.GenerateBigParallel(TriggerWorkflowModel startingTriggerModel, List`1 otherWorkflowModels)
at UiPath.TriggersProcessor.LocalTriggers.Transforms.TriggerTransform.Transform(TransformArgs transformArgs)
at UiPath.Studio.Plugin.Workflow.LocalTriggers.Services.LocalTriggersTransformServiceProjectEndpoint.Transform(String startingWorkflowPath, IEnumerable`1 otherWorkflowPaths, CancellationToken cancellationToken)
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, List`1 cancellationTokens, Func`2 func, String message, Func`2 exceptionHandler), HResult -2146233088
From what I have deducted - the file causing this error is …\Framework\RetryCurrentTransaction.xaml
After deleting this file - the problem stops.
What is even more interesting - this particular file is unable to see Global variables defined in the project. And after opening this file in Studio, You now can not see the Global variables option in data manager until You restart studio.
I am looking for a solution (rather than recreating whole file) for this scenario.
Please inform if You can recreate the same error as on my end - it seems this problem occurs 100% when creating/reusing projects.