Could Not Find a Part of the Path Error

<< Click to Display Table of Contents >>

Could Not Find a Part of the Path Error

When exporting data to LogPlot, the default filename for the *.DAT file will be the SYS_LOC_CODE selected from the Location tab in the EQuIS for LogPlot Interface. If a SYS_LOC_CODE contains a special character such as the forward slash "/", Windows will consider it a directory separator and convert it automatically to "\". This is because the "/" character is used in other operating systems such as Linux for the directory separator. Other special characters that should be used with caution are: / \ : * ? " | < >

 

Using special characters in the SYS_LOC_CODE may result in the following error message when exporting to LogPlot.

 

An error has occurred in EarthSoft.Interfaces.LogPlot, Version=5.6.2.12311:

 

System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\EarthSoftUser\Desktop\ARC_GIS\MW-07\001.logplot'.

 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, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)

 at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)

 at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize)

 at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding)

 at EarthSoft.Interfaces.LogPlot.LogPlot.CreateBatchFile(String batchFile, String formatFilename, String[] compileOptions)

 at EarthSoft.Interfaces.LogPlot.LogPlot.CreateDatFile(Hashtable htExportInfo, String selectedPath, DataTable locationTable, DataTable sampleDataTable)