While executing the Automation Services job on Server, TIBCO Spotfire Automation Services throws the error, "System.UriFormatException: Invalid URI: The Authority/Host could not be parsed.."

While executing the Automation Services job on Server, TIBCO Spotfire Automation Services throws the error, "System.UriFormatException: Invalid URI: The Authority/Host could not be parsed.."

book

Article ID: KB0080426

calendar_today

Updated On:

Products Versions
Spotfire Automation Services 7.0 and lower

Description

This article describes how to resolve TIBCO Spotfire Automation Services error, "System.UriFormatException: Invalid URI: The Authority/Host could not be parsed."

While executing the Automation Services job on Server, the following error messages are reported:
-----------------------------------------------------------------
2017-05-17 07:16:10,331 ERROR [4504,1] Spotfire.Dxp.Automation.Launcher.Program: Failed to execute job.
System.UriFormatException: Invalid URI: The Authority/Host could not be parsed.
   at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind)
   at Spotfire.Dxp.Automation.CoreApplication.CreateServerInformationFromConfigFile()
   at Spotfire.Dxp.Automation.CoreApplication..ctor(String addInFile, String appConfigFile, Boolean enableCustomApplicationEventHandler)
   at Spotfire.Dxp.Automation.Launcher.Program.Run(String[] args)
-----------------------------------------------------------------
This error is caused due to invalid Spotfire Server URL syntax in the Automation Services configuration file 'Spotfire.Dxp.Automation.Launcher.exe.config'
The URL should be in the form of http[s]://<Spotfire_Server_URL>[:port]/

Issue/Introduction

While executing the Automation Services job on Server, TIBCO Spotfire Automation Services throws the error, "System.UriFormatException: Invalid URI: The Authority/Host could not be parsed.."

Environment

OS: All supported Operating Systems

Resolution

- Login to machine where you installed TIBCO Spotfire Automation Services server.
- Open the file "Spotfire.Dxp.Automation.Launcher.exe.config" located in the "<Automation Services Installation folder>\webroot\bin\" folder in an XML Editor.
- In this file, search for the following section and correct the Spotfire Server URL, using the correct syntax for 'serverUrl' parameter (The URL should be in the form of http[s]://<Spotfire_Server_URL>[:port]/)

----------------------------------
    <Spotfire.Dxp.Automation>
        <authentication serverUrl="" username="" password="">
            <!-- <proxy username="" password="" /> -->
            <!--<certificates useCertificates="false" storeName="My" storeLocation="LocalMachine" serialNumber="" />-->
             <!--<application enableCustomApplicationEventHandler="true" />-->
        </authentication>
    </Spotfire.Dxp.Automation>
-----------------------------------

-  Save this file and restart TIBCO Spotfire Automation Services application pool.

Additional Information

Refer section "Installing the Automation Services web service" from below 7.0 TIBCO Spotfire® Automation Services Installation and Configuration manual:
https://docs.tibco.com/pub/spotfire-automation-services/7.0.0/doc/pdf/TIB_sfire_autsvcs_7.0.0_installation.pdf