Error: The remote server returned an error: (403) Forbidden, while running an automation job.
book
Article ID: KB0077104
calendar_today
Updated On:
Products
Versions
Spotfire Automation Services
7.5 and higher
Description
While running an automation job from the Command Line or Windows task Scheduler, the following error can be seen in the Command Line/Spotfire.Dxp.Automation.ClientJobSender.exe.log.
System.Net.WebException: The remote server returned an error: (403) Forbidden. at System.Net.HttpWebRequest.GetResponse() at Spotfire.Dxp.Automation.JobBuilder.SpotfireServerJobExecutor.StartJob(String jobFileContent, String jobFilePath) at Spotfire.Dxp.Automation.ClientJobSender.JobServiceHandler.StartJob(String jobFileContent, String path) at Spotfire.Dxp.Automation.ClientJobSender.JobExecutionHandler.Run(CommandLineManager cmd)
Resolution
Make sure that the user account mentioned in the "Spotfire.Dxp.Automation.ClientJobSender.exe.config" file, which is used to run the automation job is a part of "Automation Services" group. Below is a screenshot showing the user account used in the "Spotfire.Dxp.Automation.ClientJobSender.exe.config".
Note: To avoid other issues, make sure that this account has access to all the library items being used in the Automation task.
Issue/Introduction
Error: The remote server returned an error: (403) Forbidden, while running an automation job.