Why does scheduled Automation Services job throw "Key not valid for use in specified state" error?

Why does scheduled Automation Services job throw "Key not valid for use in specified state" error?

book

Article ID: KB0078059

calendar_today

Updated On:

Products Versions
Spotfire Automation Services 7.5 and higher

Description

When running a scheduled Automation Services job through Windows task scheduler or through command line interface using "Spotfire.Dxp.Automation.ClientJobSender.exe", the following error may be seen.
=====
User-added image
=====
This error points towards an issue authenticating with the Spotfire server.

Issue/Introduction

Why does scheduled Automation Services job throw "Key not valid for use in specified state" error?

Environment

All supported environments

Resolution

If the above error is seen, make sure that the "Spotfire.Authentication.Basic.UserName" and "Spotfire.Authentication.Basic.Password" values are correct in the "Spotfire.Dxp.Automation.ClientJobSender.exe.config" and has access to the Spotfire Server

Note: If the password is encrypted in the "Spotfire.Dxp.Automation.ClientJobSender.exe.config", it can not be copied from one server/environment to the other for use. The copied "Spotfire.Dxp.Automation.ClientJobSender.exe.config" file with encrypted password in it will not work in another environment and a similar error as mentioned above will be seen.