Troubleshooting external network access

The following lists errors you might encounter, along with their likely cause and a suggested resolution.

Error: UnknownHostException or Temporary Failure in Name Resolution

This error can have one of multiple causes, as described below.

Cause:

The CREATE PROCEDURE or CREATE FUNCTION statement does not reference the external access integration when creating a procedure or UDF that accesses a URL specified by the network rule.

Resolution:

When creating the procedure or UDF, be sure to specify the external access integration as a value of the CREATE statement’s EXTERNAL_ACCESS_INTEGRATIONS parameter.

Cause:

The UDF or procedure is attempting to access a URL that is not part of the network rule included in the external access integration.

Resolution:

A user with the ACCOUNTADMIN role can add the host URL to the network rule included in the external access integration.

Error: Connect Timed Out or Receive Timed out

Cause:

You are attempting to access an IP address or port that is not part of the network rule included in the external access integration.

Resolution:

A user with the ACCOUNTADMIN role can add the IP address to the network rule included in the external access integration.

Error: Insufficient privileges on network rule

Cause:

The role that created the external access integration doesn’t have the network rule owner’s role in its role hierarchy. The CREATE statement succeeds, but users of the integration get an error about a missing privilege on the network rule when they use it.

Resolution:

Grant the network rule owner’s role to the role that created the integration, or recreate the integration with a role that has the owner’s role in its hierarchy. For more information, see Access control.