我在用writecell活动向excel输入信息,第一遍是正常的,再次运行就开始报错,(起初是说什么字典不存在还是常量不在字典中的,忘记了)后来是如下错误信息:
22.2.0-beta.7816+Branch.release-v22.2.0.Sha.9d6202aa928b369319173fc97a44f7a7c8b36d90
来源: 写入单元格 Sample Description
消息: 缺少根元素。
异常类型System.Xml.XmlException
RemoteException wrapping System.Xml.XmlException: 缺少根元素。
在 System.Xml.XmlTextReaderImpl.Throw(Exception e)
在 System.Xml.XmlTextReaderImpl.ParseDocumentContent()
在 System.Xml.XmlTextReaderImpl.Read()
在 System.Xml.Linq.XDocument.Load(XmlReader reader, LoadOptions options)
在 ClosedXML.Excel.XDocumentExtensions.Load(Stream stream) 位置 C:\Projects\ClosedXML\ClosedXML\Extensions.cs:行号 299
在 ClosedXML.Excel.XLWorkbook.GetCommentVmlFile(WorksheetPart wsPart) 位置 C:\Projects\ClosedXML\ClosedXML\Excel\XLWorkbook_Load.cs:行号 623
在 ClosedXML.Excel.XLWorkbook.LoadSpreadsheetDocument(SpreadsheetDocument dSpreadsheet) 位置 C:\Projects\ClosedXML\ClosedXML\Excel\XLWorkbook_Load.cs:行号 340
在 ClosedXML.Excel.XLWorkbook.LoadSheets(String fileName) 位置 C:\Projects\ClosedXML\ClosedXML\Excel\XLWorkbook_Load.cs:行号 45
在 UiPath.Excel.WorkbookFile.InitializeExistingWorbookFile()
在 UiPath.Excel.WorkbookFile..ctor(String workbookPath, String password, Boolean createNew)
在 UiPath.Excel.Activities.WorkbookActivity`1.ConstructWorkbook(String path, String password, Boolean createNew)
在 UiPath.Excel.Activities.WorkbookActivity`1.BeginExecute(AsyncCodeActivityContext context, AsyncCallback callback, Object state)
在 System.Activities.AsyncCodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager)
在 System.Activities.ActivityInstance.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)
在 System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)
在成功运行后我应该没做什么跟这一步有关的改动,请问这是什么原因?