Error: The task 'Set Data Source Credentials' could not be executed
book
Article ID: KB0080573
calendar_today
Updated On:
Products
Versions
Spotfire Server
7.5 and later
Description
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 System.Security.Cryptography.Xml.EncryptedXml.DecryptDocument() 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) =====
Cause: If the certificate was not created with a valid CSR, this error can be seen.
Issue/Introduction
Error: The task 'Set Data Source Credentials' could not be executed
Environment
All supported environments
Resolution
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.