When executing a Pipeline Pilot protocol that creates a Spotfire Automation Services job, a 401 Unauthorized error occurs.
Details
The error occurs due to a permission mismatch between the user executing the Pipeline Pilot protocol and the service account used by Spotfire to execute the Automation Services jobs.
Example of error:
Error executing task 2 of 16: Add a Data Table from a URL File download failed : The remote server returned an error: (401) Unauthorized.
When a Pipeline Pilot protocol is executed, it runs under the credentials of the connected user and generates data files that are stored on the Pipeline Pilot server. For Spotfire to incorporate this data into a document, the Automation Services job must access these generated files. However, Automation Services jobs are executed by a Spotfire service account (called 'Automation Services System Account'), not by the original user.
If the Pipeline Pilot server's security configuration has the "Download > Job Directory Web Access" option set to "Restricted", only the user who originally ran the protocol is allowed to access files in that job folder. This restriction prevents the Spotfire Automation Services System Account from accessing the required data files, resulting in a 401 Unauthorized error.
Resolution
To resolve this issue, change the "Download > Job Directory Web Access" setting to "Unrestricted" in the Security Configuration page of the Pipeline Pilot server administration. This allows the Spotfire Automation Services System Account to access the job folder files regardless of which user executed the protocol.
