Issues when trying to export library items when the Library Directory is set to some shared drive location

Issues when trying to export library items when the Library Directory is set to some shared drive location

book

Article ID: KB0080551

calendar_today

Updated On:

Products Versions
Spotfire Analyst 7.5 and Higher

Description

One may face issues when trying to export the Library items from the Spotfire Analyst Library Administration. One of the possible reasons could be when the Library Directory is set to some shared drive location and you are trying to run the Export for particular Library items. The error message logged is as shown below:
 
Error message: An Internal Server Error has occurred.

LibraryException at Spotfire.Dxp.Framework:
An Internal Server Error has occurred. (HRESULT: 80131500)

Stack Trace:
   at Spotfire.Dxp.Framework.Library.InternalLibraryManager.ListServerDirectory(String path)
   at Spotfire.Dxp.Forms.Application.Library.ExportLibraryDialog.okButton_Click(Object sender, EventArgs e)

LibraryServiceException at Spotfire.Dxp.Services:
An Internal Server Error has occurred. (HRESULT: 80131509)

Stack Trace:
   at Spotfire.Dxp.Services.WebServiceBase`1.InvokeService[T](ServiceMethod`1 serviceMethod, ExceptionFactoryMethod exceptionFactoryMethod)
   at Spotfire.Dxp.Services.Library.LibraryImportExportService.ListServerDirectory(String path)
   at Spotfire.Dxp.Framework.Library.InternalLibraryManager.ListServerDirectory(String path)

SoapException at System.Web.Services:
An Internal Server Error has occurred. (HRESULT: 80131501)

Stack Trace:
   at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
   at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
   at Spotfire.Dxp.WebServices.LibraryImportExportService.listServerDirectory(String path)
   at Spotfire.Dxp.Services.WebServiceBase`1.InvokeService[T](ServiceMethod`1 serviceMethod, ExceptionFactoryMethod exceptionFactoryMethod)


When checking the server.log for this issue you could find the below error message:
 
ERROR 2018-06-25T17:01:45,598+0100 [USER_NAME] ws.library.LibraryImportExportService: An exception occurred in method 'listServerDirectory'.
com.spotfire.ws.library.StorageException, IO_ERROR, Problem listing server directory, com.spotfire.ws.library.StorageException, IO_ERROR, Cannot create base directory \\SHARED DRIVE LOCATION\PATH for import export
    at com.spotfire.ws.library.LibraryManagerImpl.listServerDirectory(LibraryManagerImpl.java:892)
    at com.spotfire.ws.library.LibraryImportExportService.listServerDirectory(LibraryImportExportService.java:88)

Issue/Introduction

Issues when trying to export library items when the Library Directory is set to some shared drive location

Resolution

This error message says that a directory cannot be created at this path which you have set as your Library Directory \\SHARED DRIVE LOCATION\PATH

We need to check if the user running the Spotfire Server service has sufficient permissions(read/write permissions) to this shared drive directory.

By default, the TIBCO Spotfire Server service runs as "Local System" and this account shall not have access to a shared drive. Make sure the shared drive is accessible (with appropriate read/write permissions) by the user that runs the TIBCO Spotfire Server service (you may need to run Spotfire Server Service using a custom user account in some scenarios).

Also, make sure you are using a UNC path notation to this shared drive.