|
| 1 | +--- |
| 2 | +title: Troubleshoot the Snowflake connector |
| 3 | +titleSuffix: Azure Data Factory & Azure Synapse |
| 4 | +description: Learn how to troubleshoot issues with the Snowflake connector in Azure Data Factory and Azure Synapse Analytics. |
| 5 | +author: jianleishen |
| 6 | +ms.service: data-factory |
| 7 | +ms.subservice: data-movement |
| 8 | +ms.topic: troubleshooting |
| 9 | +ms.date: 06/21/2022 |
| 10 | +ms.author: jianleishen |
| 11 | +ms.custom: has-adal-ref, synapse |
| 12 | +--- |
| 13 | + |
| 14 | +# Troubleshoot the Snowflake connector in Azure Data Factory and Azure Synapse |
| 15 | + |
| 16 | +[!INCLUDE[appliesto-adf-asa-md](includes/appliesto-adf-asa-md.md)] |
| 17 | + |
| 18 | +This article provides suggestions to troubleshoot common problems with the Snowflake connector in Azure Data Factory and Azure Synapse. |
| 19 | + |
| 20 | +## Error message: IP % is not allowed to access Snowflake. Contact your local security administrator. |
| 21 | + |
| 22 | +- **Symptoms**: The copy activity fails with the following error: |
| 23 | + |
| 24 | + `Job failed due to reason: net.snowflake.client.jdbc.SnowflakeSQLException: IP % is not allowed to access Snowflake. Contact your local security administrator. ` |
| 25 | + |
| 26 | +- **Cause**: It's a connectivity issue and usually caused by firewall IP issues when integration runtimes access your Snowflake. |
| 27 | + |
| 28 | +- **Recommendation**: |
| 29 | + |
| 30 | + - If you configure a [self-hosted integration runtime](create-self-hosted-integration-runtime.md) to connect to Snowflake, make sure to add your self-hosted integration runtime IPs to the allowed list in Snowflake. |
| 31 | + - If you use an Azure Integration Runtime and the access is restricted to IPs approved in the firewall rules, you can add [Azure Integration Runtime IPs](azure-integration-runtime-ip-addresses.md) to the allowed list in Snowflake. |
| 32 | + - If you use a managed private endpoint and a network policy is in place on your Snowflake account, ensure Managed VNet CIDR is allowed. For more steps, refer to [How To: Set up a managed private endpoint from Azure Data Factory or Synapse to Snowflake](https://community.snowflake.com/s/article/How-to-set-up-a-managed-private-endpoint-from-Azure-Data-Factory-or-Synapse-to-Snowflake). |
| 33 | + |
| 34 | +## Error message: Failed to access remote file: access denied. |
| 35 | + |
| 36 | +- **Symptoms**: The copy activity fails with the following error: |
| 37 | + |
| 38 | + `ERROR [42501] Failed to access remote file: access denied. Please check your credentials,Source =SnowflakeODBC_sb64.dll..` |
| 39 | + |
| 40 | +- **Cause**: The error pops up by the Snowflake COPY command and is caused by missing access permission on source/sink when execute Snowflake COPY commands. |
| 41 | + |
| 42 | +- **Recommendation**: Check your source/sink to make sure that you have granted proper access permission to Snowflake. |
| 43 | + |
| 44 | + - Direct copy: Make sure to grant access permission to Snowflake in the other source/sink. |
| 45 | + - Staged copy: The staging Azure Blob storage linked service must use shared access signature authentication. When you generate the shared access signature, make sure to set the allowed permissions and IP addresses to Snowflake in the staging Azure Blob storage. To learn more about this, see this [article](https://docs.snowflake.com/en/user-guide/data-load-azure-config.html#option-2-generating-a-sas-token). |
| 46 | + |
| 47 | +## Next steps |
| 48 | + |
| 49 | +For more troubleshooting help, try these resources: |
| 50 | + |
| 51 | +- [Connector troubleshooting guide](connector-troubleshoot-guide.md) |
| 52 | +- [Data Factory blog](https://azure.microsoft.com/blog/tag/azure-data-factory/) |
| 53 | +- [Data Factory feature requests](/answers/topics/azure-data-factory.html) |
| 54 | +- [Azure videos](https://azure.microsoft.com/resources/videos/index/?sort=newest&services=data-factory) |
| 55 | +- [Microsoft Q&A page](/answers/topics/azure-data-factory.html) |
| 56 | +- [Stack Overflow forum for Data Factory](https://stackoverflow.com/questions/tagged/azure-data-factory) |
| 57 | +- [Twitter information about Data Factory](https://twitter.com/hashtag/DataFactory) |
0 commit comments