Home > Forum > Processes > Error generating documentation

Error generating documentation
0

Hi, I get the following error message while genereting documentation. Any idea what should I look for? The proces has no errors, can be exported and imported fine.


Message=Sekwencja zawiera więcej niż jeden pasujący element. (The sequence contains more than one match)
Source=System.Core
StackTrace= at System.Linq.Enumerable.SingleOrDefault[TSource](IEnumerable`1 source, Func`2 predicate)
at WebCon.WorkFlow.Studio.Logic.Helpers.UsageSearch.NodeCriterion.NodeOwnerCriterionFactory.GetAutomationCriterion(Automation automation)
at WebCon.WorkFlow.Studio.Logic.Helpers.UsageSearch.NodeCriterion.NodeOwnerCriterionFactory.GetOwnerCriterion(DbNodeType type, IExportableEntity entity)
at WebCon.WorkFlow.Studio.Logic.Helpers.UsageSearch.BranchGenerator.CreateMissingBranch(DbNodeCriterion criterion, String columnInfo)
at WebCon.WorkFlow.Studio.Logic.Helpers.UsageSearch.MappingRowsToTreeNodesConverter.GenerateLeaf(EntityUsage entityUsage)
at WebCon.WorkFlow.Studio.Logic.Helpers.UsageSearch.MappingRowsToTreeNodesConverter.GetTreeModel()
at WebCon.WorkFlow.Studio.Logic.Managers.ProcessDocumentationGeneration.UsagesGenerator.TransformToFlatUsagesList(ISearchableEntity searchable, Int32 processID, Boolean processUsagesOnly, Boolean filterOtherProcesses)
at WebCon.WorkFlow.Studio.Logic.Managers.ProcessDocumentationGeneration.DataSourcesDocumentationGenerator.PopulateUsages(Int32 processID)
at WebCon.WorkFlow.Studio.Logic.Managers.ProcessDocumentationGeneration.DataSourcesDocumentationGenerator.GenerateDataSourcesDocx(Process process, UsagesGenerator usagesGenerator)
at WebCon.WorkFlow.Studio.Logic.Managers.ProcessDocumentationGeneration.DocumentationDocxAsposeManager.GenerateDocumentationDocx(Process process, List`1 allProcesses, String path, List`1 plugins, List`1 allRules, List`1 dataSourcesList, List`1 dataConnectionsList, Func`5 bmpGenAction)
at WebCon.WorkFlow.Studio.Forms.ModuleReports.Documentation.ProcessDocumentationGenerator.Generate(String path, String templatePath, CultureInfo dataLanguage)
at WebCon.WorkFlow.Studio.Forms.ModuleReports.Documentation.LanguagePicker.<>c__DisplayClass8_0.<saveButton_Click>b__0(Object o, DoWorkEventArgs args)

InnerException:

Message=Sekwencja zawiera więcej niż jeden pasujący element.
Source=System.Core
StackTrace= at System.Linq.Enumerable.SingleOrDefault[TSource](IEnumerable`1 source, Func`2 predicate)
at WebCon.WorkFlow.Studio.Logic.Helpers.UsageSearch.NodeCriterion.NodeOwnerCriterionFactory.GetAutomationCriterion(Automation automation)
at WebCon.WorkFlow.Studio.Logic.Helpers.UsageSearch.NodeCriterion.NodeOwnerCriterionFactory.GetOwnerCriterion(DbNodeType type, IExportableEntity entity)
at WebCon.WorkFlow.Studio.Logic.Helpers.UsageSearch.BranchGenerator.CreateMissingBranch(DbNodeCriterion criterion, String columnInfo)
at WebCon.WorkFlow.Studio.Logic.Helpers.UsageSearch.MappingRowsToTreeNodesConverter.GenerateLeaf(EntityUsage entityUsage)
at WebCon.WorkFlow.Studio.Logic.Helpers.UsageSearch.MappingRowsToTreeNodesConverter.GetTreeModel()
at WebCon.WorkFlow.Studio.Logic.Managers.ProcessDocumentationGeneration.UsagesGenerator.TransformToFlatUsagesList(ISearchableEntity searchable, Int32 processID, Boolean processUsagesOnly, Boolean filterOtherProcesses)
at WebCon.WorkFlow.Studio.Logic.Managers.ProcessDocumentationGeneration.DataSourcesDocumentationGenerator.PopulateUsages(Int32 processID)
at WebCon.WorkFlow.Studio.Logic.Managers.ProcessDocumentationGeneration.DataSourcesDocumentationGenerator.GenerateDataSourcesDocx(Process process, UsagesGenerator usagesGenerator)
at WebCon.WorkFlow.Studio.Logic.Managers.ProcessDocumentationGeneration.DocumentationDocxAsposeManager.GenerateDocumentationDocx(Process process, List`1 allProcesses, String path, List`1 plugins, List`1 allRules, List`1 dataSourcesList, List`1 dataConnectionsList, Func`5 bmpGenAction)
at WebCon.WorkFlow.Studio.Forms.ModuleReports.Documentation.ProcessDocumentationGenerator.Generate(String path, String templatePath, CultureInfo dataLanguage)
at WebCon.WorkFlow.Studio.Forms.ModuleReports.Documentation.LanguagePicker.<>c__DisplayClass8_0.<saveButton_Click>b__0(Object o, DoWorkEventArgs args)

Outer stack trace:

at WebCon.WorkFlow.Common.Logging.BaseLogger.WriteToEventLog(WriteToSystemLogParams args)
at WebCon.WorkFlow.Studio.Forms.ModuleReports.Documentation.LanguagePicker.<>c__DisplayClass8_0.<saveButton_Click>b__1(Object o, RunWorkerCompletedEventArgs args)
at System.ComponentModel.BackgroundWorker.OnRunWorkerCompleted(RunWorkerCompletedEventArgs e)
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Delegate.DynamicInvokeImpl(Object[] args)
at System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry tme)
at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)
at System.Windows.Forms.Control.InvokeMarshaledCallbacks()
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Form.ShowDialog(IWin32Window owner)
at WebCon.WorkFlow.Studio.Forms.MainForm.GenerateProcessDocumentation(Process selectedProcess)
at WebCon.WorkFlow.Studio.Forms.ModuleProcess.ProcessPanel.bbiProcessGenerateDocumentation_ItemClick(Object sender, ItemClickEventArgs e)
at DevExpress.XtraBars.BarItem.OnClick(BarItemLink link)
at DevExpress.XtraBars.BarButtonItem.OnClick(BarItemLink link)
at DevExpress.XtraBars.BarItemLink.OnLinkClick()
at DevExpress.XtraBars.BarButtonItemLink.OnLinkAction(BarLinkAction action, Object actionArgs)
at DevExpress.XtraBars.ViewInfo.BarSelectionInfo.UnPressLink(BarItemLink link)
at DevExpress.XtraBars.Controls.CustomLinksControl.OnMouseUp(MouseEventArgs e)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at DevExpress.XtraBars.Controls.CustomControl.WndProc(Message& msg)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at WebCon.WorkFlow.Studio.Forms.Program.Main(String[] args)

MVP

Hey there,

I've come across this very error on Webcon version 2022.1.4.127 myself. It seemed to occur specifically when an automation was copied and pasted. If you can identify which automation was copy-pasted, I'd recommend deleting it and then manually recreating it.

Interestingly, this issue is actually resolved in version 2022.1.3.47. In my case though, I was experiencing the problem after this version, but that was due to an automation that had already been cloned in the previous versions and remained untouched for a while.

So, double-check any automations you might have copied or cloned as they could be the culprit. Once they are deleted and manually recreated, the problem should no longer persist.

Hope this helps and happy troubleshooting!

Cheers!