Description:Spotfire user licenses and library folder permissions determine where a file can be saved and by whom. To publish (save to the library) a Spotfire analysis that contains a script or custom query, the user must have Script Author or Custom Query Author rights granted.
(The "Custom Query Author" group is a new Spotfire user group that was added in Spotfire 6.5 related to data connections.)
Symptoms:
When a user with only Spotfire Administrator or Library Administrator permissions attempts to save a Spotfire analysis that contains a script or custom query to the Spotfire library, this action will trigger the following stack trace:
Error message: Could not publish Test_Data_Report.
LibraryException at Spotfire.Dxp.Framework:
You do not have sufficient privileges for this action. (HRESULT: 80131500)
Stack Trace:
at Spotfire.Dxp.Framework.Library.InternalLibraryManager.StartServiceRequest(String operation, RequestStartExecuter executer)
at Spotfire.Dxp.Framework.Library.InternalLibraryManager.<>c__DisplayClass37.<Save>b__33()
at Spotfire.Dxp.Framework.ApplicationModel.Progress.ExecuteSubtask(String title, ProgressOperation operation)
at Spotfire.Dxp.Framework.Library.InternalLibraryManager.Save(LibraryEntry entry, Action`1 streamWriter, Fields fields)
at Spotfire.Dxp.Application.AnalysisApplication.SaveAs(LibraryEntry entry, Document document, LibraryItemMetadataSettings metadataSettings, DocumentSaveSettings saveSettings)
at Spotfire.Dxp.Forms.Application.FileUserActions.<>c__DisplayClass4.<SaveAsLibrary>b__2()
at Spotfire.Dxp.Forms.Application.FormsProgressService.ProgressThread.DoOperationLoop()
LibraryServiceException at Spotfire.Dxp.Services:
You do not have sufficient privileges for this action. (HRESULT: 80131509)
Stack Trace:
at Spotfire.Dxp.Services.WebServiceBase`1.InvokeService[T](ServiceMethod`1 serviceMethod, ExceptionFactoryMethod exceptionFactoryMethod)
at Spotfire.Dxp.Framework.Library.InternalLibraryManager.<>c__DisplayClass37.<Save>b__35()
at Spotfire.Dxp.Framework.Library.InternalLibraryManager.StartServiceRequest(String operation, RequestStartExecuter executer)
Cause:The Spotfire error message states that the user does not have sufficient privileges. The Spotfire analysis contains an untrusted script or a custom query, so the user's Spotfire username needs to be granted permissions that allow saving such an analysis (DXP file) to the Spotfire library, for this action to be allowed.