Products | Versions |
---|---|
Spotfire Analyst | 11.2 and lower |
TIBCO Cloud Spotfire | 11.2 and lower |
If the TIBCO Spotfire Analyst client has been open for a long time, the following error may be seen while saving the analysis file:
Error message: Unable to save the file test_analysys_file.dxp.FileNotFoundException at mscorlib:Could not find file 'C:\Users\test_user\AppData\Local\Temp\TIBCO\Spotfire\<version>\xxxx-xxxx\xxxxxxx.xxx.tmp'.Stack Trace: 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, Boolean useLongPath, Boolean checkHost) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share) at Spotfire.Dxp.Framework.Persistence.EmbeddedResource.OpenRead() at Spotfire.Dxp.Framework.Persistence.ImmutableEmbeddedResource.Save(Stream stream) at Spotfire.Dxp.Application.AnalyticItems.PersistedBookmarks.WriteToZip(ZipWriter zipWriter, CxxSession session) at Spotfire.Dxp.Application.AnalyticItems.BookmarkManager.Spotfire.Dxp.Framework.Persistence.IDxpFileContributor.OnWriteToDxp(DocumentLocationType documentLocationType, ZipWriter zipWriter) at Spotfire.Dxp.Framework.Persistence.DxpFileContributorRegistry.OnWriteToDxp(DocumentLocationType documentLocationType, ZipWriter zipWriter) at Spotfire.Dxp.Framework.Persistence.PersistenceManager.Save(DocumentTypes documentType, DocumentNode doc, IDocumentSaveSettings settings, Stream targetStream) at Spotfire.Dxp.Framework.Persistence.PersistenceManager.Save(DocumentTypes documentType, DocumentNode doc, IDocumentSaveSettings settings, String fileName) at Spotfire.Dxp.Framework.DocumentModel.DocumentManager`1.<>c__DisplayClass63_0.<Save>b__0() at Spotfire.Dxp.Forms.Application.FormsProgressService.ProgressThread.DoOperationLoop()
This error is complaining about a missing ".tmp" file under the path mentioned in the above error message. Spotfire creates temporary files while analysis files are being built. When saving the analysis file, Spotfire uses those temporary files. If there is an anti-virus or garbage collection program running on the machine, it might end up deleting these temporary files on regular basis. As a result, Spotfire will not be able to find these temporary files while saving the analysis file and will throw this error.