There are several possible reasons why Airbyte's full refresh from Salesforce returns fewer records (3756) than the count you see via the Salesforce API (4430): 1.
Connector or API Limitations: There have been known issues where Airbyte's Salesforce connector did not retrieve all records due to pagination or API handling bugs. For example, some users reported that only a fixed number of records (like 30,000 or 14,900) were pulled due to issues with the next page token or stream handling. These issues were fixed in later connector versions, so using an outdated connector could cause missing records. Make sure you are using the latest version of the Salesforce connector, as fixes have been released for similar problems in the past [Salesforce limit records to 30k per stream](
https://discuss.airbyte.io/t/929), [Salesforce connector retrieve only 14k records instead of 49k+ records](
https://discuss.airbyte.io/t/3094). 2.
Unsupported Streams or Fields: Some Salesforce objects or fields are not supported by the BULK API and are instead synced via the REST API, which may have different limitations or behaviors. Additionally, if your object contains unsupported field types, those records might be skipped or not fully synced. Check if your object or fields are listed as unsupported in the Airbyte documentation [Syncing Formula Fields](
https://docs.airbyte.com/integrations/sources/salesforce#syncing-formula-fields). 3.
Schema Validation or Data Issues: If there are schema validation errors (e.g., invalid date formats or unexpected fields), Airbyte may skip problematic records. Review your sync logs for any error messages indicating records were ignored due to schema issues [source-salesforce/destination-bigquery: Normalization failed](
https://github.com/airbytehq/airbyte/issues/28264). 4.
Rate Limiting or Sync Interruption: If the sync hits Salesforce's daily rate limits, Airbyte will end the sync early and resume on the next run. This can result in incomplete data if you are not using incremental sync mode [Rate limiting](
https://docs.airbyte.com/integrations/sources/salesforce#rate-limiting). 5.
Deleted or Filtered Records: If records have been deleted in Salesforce but are still counted in your API query, or if your Airbyte sync is configured to exclude deleted records, this could explain the difference. Also, check if any filters are applied in your Airbyte connection configuration.
What you can do: - Ensure you are using the latest Salesforce connector version. - Check the Airbyte sync logs for errors or warnings about skipped records. - Review your connection configuration for any filters or field selections. - If possible, try running the sync in incremental mode and compare results. - If the issue persists, consider opening a GitHub issue with detailed logs and configuration for further investigation. If you provide more details about your connector version, sync mode, and any error logs, I can help you troubleshoot further.