The find-analysis-scripts command fails to print report when authors have been deleted

The find-analysis-scripts command fails to print report when authors have been deleted

book

Article ID: KB0077963

calendar_today

Updated On:

Products Versions
Spotfire Server 10.3

Description

If any users, that have created analysis files in the Library that contain scripts or data functions, have been deleted from the user directory, running the find-analysis-scripts command can result in errors like the following:

File 'somefilename' (b806a4b3-f1d8-4a24-b81f-d36162610e28) analyzed, 0 scripts, data functions and custom queries found
Writing a report to: /opt/tibco/tss/10.3.0/tomcat/spotfire-bin/find-analysis-scripts/report_2019-05-07.csv
The 'guid' argument must not be null.
Shutdown detected - saving progress

In the server.log, you will see an error similar to this:

ERROR 2019-05-07T10:09:43,328+0200 config.tool.ConfigApp: Error executing command find-analysis-scripts
java.lang.IllegalArgumentException: The 'guid' argument must not be null.
        at com.spotfire.util.Robustness.validateArgumentNotNull(Robustness.java:45) ~[spotfire-server.jar:?]
        at com.spotfire.server.userdir.UserDirectoryImpl.getPrincipal(UserDirectoryImpl.java:405) ~[spotfire-server.jar:?]
        at com.spotfire.ws.library.trust.LibraryFile.getPrincipal(LibraryFile.java:443) ~[spotfire-server.jar:?]
        at com.spotfire.ws.library.trust.LibraryFile.asRow(LibraryFile.java:295) ~[spotfire-server.jar:?]
        at com.spotfire.ws.library.trust.FindAnalysisScriptsCommand.writeReport(FindAnalysisScriptsCommand.java:836) ~[spotfire-server.jar:?]
        at com.spotfire.ws.library.trust.FindAnalysisScriptsCommand.run(FindAnalysisScriptsCommand.java:280) ~[spotfire-server.jar:?]
        at com.spotfire.ws.library.AbstractLibraryCommand.run(AbstractLibraryCommand.java:114) ~[spotfire-server.jar:?]
        at com.spotfire.server.config.tool.AbstractUserDirectoryCommand.run(AbstractUserDirectoryCommand.java:109) ~[spotfire-server.jar:?]
        at com.spotfire.server.config.tool.ConfigApp.executeCommand(ConfigApp.java:368) [spotfire-server.jar:?]
        at com.spotfire.server.config.tool.ConfigApp.main(ConfigApp.java:457) [spotfire-server.jar:?]

Issue/Introduction

The find-analysis-scripts command fails to print report when authors have been deleted

Resolution

This is a known issue in TIBCO Spotfire Server 10.3.0.  Upgrade to version 10.3.1 or higher to resolve this issue.

Additional Information

Doc: find-analysis-scripts command (TIBCO Spotfire Server 10.3.1 Installation and Administration manual)