Troubleshoot the Salesforce Data Cloud Zero-Copy connector¶
This topic describes the most common problems with the Salesforce Data Cloud Zero-Copy connector and the catalog-linked databases created from it.
The connector doesn’t reach CONNECTED¶
After your Salesforce administrator saves the Snowflake V2 Data Share Target, Snowflake retries the
connection for a while. Run DESCRIBE ZEROCOPY CONNECTOR and check the status and connection_error
columns. The status in Snowflake is the one to rely on, because Salesforce can show the target as
connected before the connection is established in Snowflake.
If the connector still isn’t connected after Snowflake stops retrying, ask your Salesforce administrator to save the Data Share Target again, using the Enrollment ID that SYSTEM$GET_ZEROCOPY_CONNECTOR_CONFIG returns. For more information, see Set up the Salesforce Data Cloud Zero-Copy connector.
A data share, schema, or view doesn’t appear¶
Check that your Salesforce administrator linked the data share to the Data Share Target and added the object to the data share. External data lake objects, and data model objects mapped to them, can’t be shared. See Set up Salesforce Data Cloud for Zero-Copy.
Snowflake picks up new shares and objects periodically, and a view appears shortly after its object is discovered. To pick up new objects now, call SYSTEM$SYNC_ZEROCOPY_OBJECTS. See Explore data products from Salesforce Data Cloud.
Data looks stale¶
Snowflake reads the data from Salesforce Data Cloud and doesn’t copy it, so Snowflake shows what Salesforce has shared. Changes to a discovered object appear after the connector’s table metadata refresh interval. To read or change the interval, see SYSTEM$GET_ZEROCOPY_METADATA_AUTO_REFRESH_INTERVAL and SYSTEM$SET_ZEROCOPY_METADATA_AUTO_REFRESH_INTERVAL. Dropping and recreating the catalog-linked database doesn’t change the data, and removes the grants on it.
Each object appears as two views¶
By default, Snowflake creates a full-named view and a short-named view for each object
(SALESFORCE_USER_FRIENDLY_NAME = TRUE). To keep only the full-named views, set the option to FALSE with
ALTER DATABASE … UPDATE LINKED_ZEROCOPY_CONNECTOR. Queries
that use the short names stop working. See
View and column names.
A role can’t query the views¶
Grant the role USAGE on the catalog-linked database and its schemas, and SELECT on the views. Query the views; the
tables that the views read from aren’t accessible.
Grants made with ON ALL don’t cover views added later, so run them again after new views appear.
After you transfer ownership of the database, make sure the new owner role has USAGE on the
connector. See Explore data products from Salesforce Data Cloud and
Salesforce Data Cloud Zero-Copy connector: Security and privileges.