Home > Forum > Known bugs > Error generating documentation from the process

Error generating documentation from the process

Hi,

When generating documentation from a process, I am getting the following error. What can it result from?

Message=Value cannot be null.
Parameter name: text
Source=Aspose.Words
StackTrace= at Aspose.Words.DocumentBuilder.(String , Boolean )
at WebCon.WorkFlow.Studio.Logic.Managers.ProcessDocumentationGeneration.AttributeDetailSectionGenerator.InsertAutoPostBackCell(String name)
at WebCon.WorkFlow.Studio.Logic.Managers.ProcessDocumentationGeneration.AttributeDetailSectionGenerator.GenerateDefaultSettingsTable(Attribute attribute)
at WebCon.WorkFlow.Studio.Logic.Managers.ProcessDocumentationGeneration.AttributeDetailSectionGenerator.GenerateAttributeDetailsSection(List`1 formFieldsToShow)
at WebCon.WorkFlow.Studio.Logic.Managers.ProcessDocumentationGeneration.WorkflowsDocxGenerator.GenerateWorkFlowsDocx()
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.b__0(Object o, DoWorkEventArgs args)

InnerException:

Message=Value cannot be null.
Parameter name: text
Source=Aspose.Words
StackTrace= at Aspose.Words.DocumentBuilder.(String , Boolean )
at WebCon.WorkFlow.Studio.Logic.Managers.ProcessDocumentationGeneration.AttributeDetailSectionGenerator.InsertAutoPostBackCell(String name)
at WebCon.WorkFlow.Studio.Logic.Managers.ProcessDocumentationGeneration.AttributeDetailSectionGenerator.GenerateDefaultSettingsTable(Attribute attribute)
at WebCon.WorkFlow.Studio.Logic.Managers.ProcessDocumentationGeneration.AttributeDetailSectionGenerator.GenerateAttributeDetailsSection(List`1 formFieldsToShow)
at WebCon.WorkFlow.Studio.Logic.Managers.ProcessDocumentationGeneration.WorkflowsDocxGenerator.GenerateWorkFlowsDocx()
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.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.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 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.Ribbon.Handler.BaseRibbonHandler.OnUnPressItem(DXMouseEventArgs e, RibbonHitInfo hitInfo)
at DevExpress.XtraBars.Ribbon.Handler.BaseRibbonHandler.OnMouseUp(DXMouseEventArgs e)
at DevExpress.XtraBars.Ribbon.Handler.RibbonHandler.OnMouseUp(DXMouseEventArgs e)
at DevExpress.XtraBars.Ribbon.RibbonControl.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.Utils.Controls.ControlBase.WndProc(Message& m)
at DevExpress.XtraBars.Ribbon.RibbonControl.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 WebCon.WorkFlow.Studio.Forms.Program.Main(String[] args)

-------------------------------------------------------------
Value cannot be null.
Parameter name: text

MVP

Hi Dariusz,

this is just a wild guess.
As I learned, 'Atribute' is the polish name for the fields. Therefore I'm guessing that the AttributeDetailSectionGenerator.GenerateDefaultSettingsTable fails when a table should be added to the word document. The passed name to "InsertAutoPostBackCell" throws the exception. So it may be that a column? no longer exist in the table may it be a data table field or item list.
at WebCon.WorkFlow.Studio.Logic.Managers.ProcessDocumentationGeneration.AttributeDetailSectionGenerator.InsertAutoPostBackCell(String name)
at WebCon.WorkFlow.Studio.Logic.Managers.ProcessDocumentationGeneration.AttributeDetailSectionGenerator.GenerateDefaultSettingsTable(Attribute attribute)
at WebCon.WorkFlow.Studio.Logic.Managers.ProcessDocumentationGeneration.AttributeDetailSectionGenerator.GenerateAttributeDetailsSection(List`1 formFieldsToShow)
at WebCon.WorkFlow.Studio.Logic.Managers.ProcessDocumentationGeneration.WorkflowsDocxGenerator.GenerateWorkFlowsDocx()

It would probably easier to recreate any tables in the template and see whether it will work again.

Best regards,
Daniel

Privacy overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognizing you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.


To see a full list of the cookies we use and learn more about their purposes, visit our Privacy Policy.