Product: TIBCO Spotfire®
Error: The task 'Set Data Source Credentials' could not be executed
While using 'Set Data Source Credentials' task in Automation Services, the following error can be seen if the correct x.509 certificate is not being used.
Running Set Data Source Credentials (1 of 1)
The task 'Set Data Source Credentials' could not be executed.
System.Security.Cryptography.CryptographicException: Unable to retrieve the decryption key.
at System.Security.Cryptography.Xml.EncryptedXml.GetDecryptionKey(EncryptedData encryptedData, String symmetricAlgorithmUri)
at Spotfire.Dxp.Automation.Tasks.Tasks.Implementation.X509Utilities.Decrypt(String encryptedData)
at Spotfire.Dxp.Automation.Tasks.Tasks.SetInformationModelCredentials.ExecuteCore(TaskExecutionContext context)
at Spotfire.Dxp.Automation.Extension.Task.Execute(TaskExecutionContext context)
If the certificate was not created with a valid CSR, this error can be seen. Make sure the certificate that is being used is the correct certificate. All the fields while generating the CSR must be correctly specified.
* Another reason behind the error could be that the local user(if the task fails locally) or the node manager service account(if the task fails on server) does not have access to this certificate.