Salesforce Troubleshooting¶
This page documents the known problems with a Salesforce datastore and the steps to resolve them. A Salesforce connection depends on two things in sequence, a complete set of connection settings and a successful sign-in as the Salesforce app, and the first sections below cover them in that order. The later sections cover what can go wrong once the connection works: syncing objects and reading records.
Problems every connector shares
A server that cannot be reached, a red status dot, a credential changed at the source, Secrets Management errors, an empty schema list, missing tables, and a blocked deletion are covered on Source Datastore Troubleshooting. This page covers the errors specific to Salesforce.
Connection Settings¶
These are refused before Qualytics contacts Salesforce, so the message appears as soon as you test the connection.
The Test Asks for the URL, the Client ID, or the Client Secret¶
The test fails with "Set the URL: your org's My Domain URL, such as https://acme.my.salesforce.com.", "Set the Client ID: the app's Consumer Key.", or "Set the Client Secret: the app's Consumer Secret."
Cause: The named field is empty.
Resolution: Fill it in. The Client ID and Client Secret are the Consumer Key and Consumer Secret of the Salesforce app; see Set up the app in Salesforce.
Maximum Parallel Jobs Is Refused¶
The test fails with a message that max_parallel_jobs must be a whole number above zero.
Cause: Maximum Parallel Jobs holds something other than a positive whole number.
Resolution: Enter a whole number such as 4, or clear the field to use the default of 4.
Signing In¶
The Test Asks for the My Domain URL¶
The test fails with "Use your org's My Domain URL (https://<domain>.my.salesforce.com), not ...".
Cause: URL holds a generic login address such as https://login.salesforce.com. Salesforce issues client credentials sessions only on an org's My Domain URL.
Resolution: Enter your org's My Domain URL, which your Salesforce admin finds under My Domain in Setup. See Use the My Domain URL.
Salesforce Rejects the Client ID or Client Secret¶
The test fails with "Salesforce rejected the client ID or client secret."
Cause: The Client ID or Client Secret does not match the app, often because one of them was copied incompletely or the secret was changed in Salesforce.
Resolution: Copy the Consumer Key and Consumer Secret from the Salesforce app again and enter them in Client ID and Client Secret.
The App Has No Run As User or No Client Credentials Flow¶
The test fails with "The Salesforce app has no Run As user for the client credentials flow." or "Enable the Client Credentials Flow on the Salesforce app."
Cause: The app's OAuth policies do not enable the Client Credentials Flow, or do not name a Run As user for it.
Resolution: In the app's OAuth policies, enable the Client Credentials Flow and choose a Run As user. See Set up the app in Salesforce.
API Access Is Not Enabled¶
The test fails with "API access is not enabled for this Salesforce org or its Run As user."
Cause: Either the org's edition does not include API access, or the Run As user lacks the API Enabled permission.
Resolution: Give the Run As user API Enabled, usually through a permission set. API access comes with Enterprise, Unlimited, and Developer editions, and with Professional edition through the API add-on. See What the Run As user needs.
The Run As User Does Not Have Access¶
The test or an operation fails with "The Salesforce Run As user does not have access to this data."
Cause: The Run As user lacks read access to an object or field Qualytics asked for.
Resolution: Grant the user read access to the objects and fields you monitor in a permission set. See What the Run As user needs.
The Org Offers No Suitable API Version¶
The test fails with a message that the org offers no API version Qualytics can use for Bulk API 2.0.
Cause: The URL points at a Salesforce environment that does not offer a recent enough API version.
Resolution: Confirm the URL is your org's My Domain URL. If it is, contact Qualytics support.
Syncing Objects¶
An Object Is Missing After the Sync¶
Cause: With Objects empty, the Sync lists only custom objects and the standard objects that have page layouts, and leaves out supporting objects such as sharing, history, and feed objects. An object is also missing when the Run As user cannot query it, and big objects (__b) and external objects (__x) are never synced. When Objects is filled in, only the objects named there are listed.
Resolution: Add the object's API name to Objects and run a Sync. If it still does not appear, check that the Run As user has read access to it. See What becomes a container.
A Name in Objects Is Not Synced¶
Cause: The name is not the object's API name (for example the label Contract Line instead of Contract_Line__c), the object is a big or external object, or the Run As user cannot query it.
Resolution: Use the API name shown in the object's settings in Salesforce Setup. Custom object API names end in __c.
A Field Is Missing from a Container¶
Cause: The Run As user cannot read the field because of field-level security, or the field is a file content (base64) field, which is not synced. Compound fields such as addresses appear through their component fields instead, for example BillingCity. A field added in Salesforce after the last Sync is not listed yet either.
Resolution: Grant the Run As user field-level read access to the field and run a Sync. See Which fields appear.
Many Objects Have No Records¶
Cause: With Objects empty, the Sync lists eligible objects whether or not they hold records, so an org with many unused objects shows many empty containers.
Resolution: List the objects you monitor in Objects and run a Sync. See Choosing the objects yourself.
Reading Records¶
An Operation Fails Because the Daily API Allowance Is Used Up¶
The operation fails under Source quota or rate limit reached, with "This Salesforce org has used its daily API request allowance, so Salesforce refused the request."
Cause: The org has used its daily API request allowance, which it shares with all its other integrations. Qualytics does not retry, since retrying would only spend more of the allowance.
Resolution: Run the operation again once the allowance has recovered; it is a rolling 24-hour window. Before a large scan or profile, click Estimate API usage on the Read Settings step to check it fits. See API Usage.
An Operation Fails Because a Bulk API Limit Is Reached¶
The operation fails under Source quota or rate limit reached, with "Salesforce refused the request because a Bulk API limit for this org is reached."
Cause: Too many Bulk API query jobs ran at once, or in the last 24 hours, across Qualytics and your other integrations.
Resolution: Try again later, or lower Maximum Parallel Jobs on the connection so each read runs fewer query jobs at once.
A Query Job Does Not Finish in Time¶
The operation fails with a message that Salesforce did not finish a Bulk API query job in time, so it was aborted.
Cause: Salesforce took too long to run the query, which can happen on very large objects or when the org is busy.
Resolution: Run the operation again, preferably at a quieter time. Incremental scans and filters reduce how much each query job has to read.
Salesforce Does Not Let the User Query an Object¶
The operation fails with "Salesforce does not let this user query this object."
Cause: The object exists, but Salesforce does not allow the Run As user to query it, either for lack of access or because the object cannot be queried through the Bulk API.
Resolution: Grant the Run As user read access to the object. If the object cannot be read in bulk, remove it from Objects.
An Object Can Only Be Read for Given Record IDs¶
The operation fails under The configuration is invalid, with "Salesforce answers queries on this object only for given record IDs, so it cannot be read in full."
Cause: Some Salesforce objects, such as ContentDocumentLink and ContentFolderItem, answer only queries that name specific records, so a scan, profile, or preview of the whole object is refused. Qualytics does not retry, since every attempt would be refused the same way. A Sync with Objects empty no longer lists these two, but it keeps a container it already made for one of them, and a datastore that names them in Objects still lists them.
Resolution: If the object is named in Objects, remove it there. Then delete its container, or run a Sync with Prune enabled (see Custom Sync Configuration). To read ContentDocumentLink in full instead, a Salesforce admin can give the Run As user the Query All Files permission, which needs View All Data, and you name ContentDocumentLink in Objects. ContentFolderItem has no such permission.
Limitations¶
- Salesforce datastores are read-only. Qualytics never writes to Salesforce, and a Salesforce datastore cannot be an enrichment datastore.
- Big objects (
__b) and external objects (__x) are not read. - Objects Salesforce answers only for given record IDs, such as
ContentFolderItem, are not read.ContentDocumentLinkis read only when the Run As user has the Query All Files permission. - File content (base64) fields are not read. Compound fields are read through their component fields only.
- Only the fields and records the Run As user can read are visible to Qualytics.
- The connection signs in with the OAuth client credentials flow only. Signing in as a user with a password, or with a JWT bearer token, is not supported.
- Salesforce Data Cloud is not supported.