Exception occurred while executing operation Cloud REST Query. Custom operation Failed to run script due to the following error: JAVASCRIPT_CODE_FAILURE: com.snc.sw.exception.CommandFailureException: Failed to execute cloud request. Reason: SSLHandsh

RamSagar
Tera Guru

Hi,

Am trying to do the cloud discovery, but not sure why am getting the below error.

=============

Exception occurred while executing operation Cloud REST Query. Custom operation Failed to run script due to the following error: JAVASCRIPT_CODE_FAILURE: com.snc.sw.exception.CommandFailureException: Failed to execute cloud request. Reason: SSLHandshakeException:sun.security.validator.ValidatorException: PKIX path building failed: java.security.cert.CertPathBuilderException: Unable to find certificate chain. (script_include:AzureApiCommand; line 111). Custom operation Failed to run script due to the following error: JAVASCRIPT_CODE_FAILURE: com.snc.sw.exception.CommandFailureException: Failed to execute cloud request. Reason: SSLHandshakeException:sun.security.validator.ValidatorException: PKIX path building failed: java.security.cert.CertPathBuilderException: Unable to find certificate chain. (script_include:AzureApiCommand; line 111)
=======================

Could you please help and provide any suggestion on this.
5 REPLIES 5

SiD2
ServiceNow Employee
ServiceNow Employee

Hi @subbu76 

 

This error seems different from what discussed in the main subject.

However it seems the referenced credential record is not available and might be deleted. Can you check whether you have a cred record with that sys id.

 

You can even check if the same sys id is being referred in the service account record for which this discovery is triggered.

 

Check these things and if you see everything is linked and records exist just do a pattern sync to mid which would also sync the creds to mid and hopefully this reference issue be resolved.

 

Please mark Helpful / Accept Solution so that it helps others with similar questions.