KB‎ > ‎

Excel Export - Error when the specified Excel file is in use

Ref: 2633348 (201104271359)
Last Edited: April 27th, 2011
 
 
Description:
An unanticipated error is reported when exporting to Excel when the specified Excel file is in use.
 
27/04/2011 13:54:49
Failure exporting selected maps to Excel XML.
=== Begin For Triaster Support ===
The following content may be useful to the Triaster support team.
Please copy and paste it into an e-mail to support@triaster.co.uk
and attach any referenced files if you would like help understanding
how to avoid this issue reoccurring.
The process cannot access the file 'C:\Documents and Settings\User Name\My Documents\Process Navigator\Multi-Map Root\Excel Map.xml' because it is being used by another process.
Failure exporting selected maps to Excel XML.
System.IO.IOException: The process cannot access the file 'C:\Documents and Settings\User Name\My Documents\Process Navigator\Multi-Map Root\Excel Map.xml' because it is being used by another process.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
   at System.Xml.XmlTextWriter..ctor(String filename, Encoding encoding)
   at System.Xml.XmlDocument.Save(String filename)
   at Triaster.ProcessNavigator.Common.ProcessObjects.Maps.ExportToExcel(String strExcelXMLFile)
=== Finish For Triaster Support ===
 
Cause:
The Excel file specified is already open.
 
Workaround:
Either:
  • Ensure the file is closed, and try the export again.
     
  • Choose a different Excel file to which to export.
 
Applies to:
  • Process Navigator 4.6x, 9.x, 10.1
     
Comments