Products | Versions |
---|---|
Spotfire Automation Services | All Versions |
When executing Automation Services jobs on the server with the Client Job Sender, you may see the following error message with an Automation ClientJobSender exception (Spotfire.Dxp.Automation.ClientJobSender):
Info;19-05-02 10:15:02.522;42516;Program;Starting application (Ver 37.0.13223.3459) using command line 'http://10.20.30.40:1010 C:\Users\myUser\Documents\AS workaround\1.xml' Info;19-05-02 10:15:02.545;42516;Console;Connecting to server http://10.20.30.40:1010. Info;19-05-02 10:15:02.559;44076;Console;Sending job to server http://10.20.30.40:1010. Error;19-05-02 10:15:02.606;44076;ServerConnectionManager;Could not authenticate with server, since setting for username or password is not set. Error;19-05-02 10:15:02.607;44076;Console;Error executing job: Error;19-05-02 10:15:02.611;44076;Console;System.Configuration.ConfigurationErrorsException: Could not authenticate with server, since setting for username or password is not set. (Spotfire.Dxp.ClientJobSender.exe.config) at Spotfire.Dxp.Automation.ClientJobSender.ServerConnectionManager.CreateTssWebRequest(Uri relativeUri) at Spotfire.Dxp.Automation.JobBuilder.SpotfireServerJobExecutor.CreateWebRequest(String relativeUri) at Spotfire.Dxp.Automation.JobBuilder.SpotfireServerJobExecutor.StartJob(String jobFileContent, String jobFilePath, Boolean useLibrary) at Spotfire.Dxp.Automation.ClientJobSender.ServerConnectionManager.ExecuteWithOAuth2Retry(Func`1 executer, Boolean isRetry) at Spotfire.Dxp.Automation.ClientJobSender.JobExecutionHandler.ExecuteServiceCall(ServerConnectionManager connectionManager, Func`1 executer) at Spotfire.Dxp.Automation.ClientJobSender.JobExecutionHandler.Run(CommandLineManager cmd)
<add key="Spotfire.Authentication.Basic.UserName" value=""/> <add key="Spotfire.Authentication.Basic.Password" value=""/>It should resemble as follows:
<add key="Spotfire.Authentication.Basic.UserName" value="sfadmin"/> <add key="Spotfire.Authentication.Basic.Password" value="sfadmin"/>3. Save the file and then try running the job again.