Product: TIBCO Spotfire®
Export to PDF functionality in Automation services having a data connector exports a blank PDF.
The "Export to PDF" functionality in Automation services having a data connector is exporting a blank PDF. The analysis file based on the data connection successfully opens in the web player but, however, it prompts for the credentials of the data source. Because the credentials are not saved, the query is not executed at the back end when the automation service job is executed on server. This results in the blank export of the pdf file.
To avoid this, you may have to change the authentication mode. By default, all Spotfire connectors are listed in the configuration file, Spotfire.Dxp.Worker.Host.exe.config, and all connectors use Prompt as authentication mode.
You can replace the default authentication mode from prompt to the following modes according to the need:
The detailed description of these modes is given in the following documentation:
So we will have to export the configuration and then change the authentication mode and then import it back. Here are the steps to achieve it:
1) Export the configuration using the following command (in <server installation dir>/tomcat/bin):
config export-service-config --capability=AUTOMATION_SERVICES --deployment-area=Production
2) Edit the Spotfire.Dxp.Worker.Host.exe.config file and change the authentication mode of the desired connector and save the file.
3) Again import this configuration by using the following command:
config import-service-config --config-name=ServiceConfiguration
Once you import the configuration, make sure to select that configuration from (browse to Spotfire server URL >> Nodes & services >> select Automation Services >> Edit >> under 'Configuration' select the one which you have imported). Wait for the service to start again.
Refer the following link for detailed description of export-import command: