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)