Has anyone had an issue with junction objects in S...
# replication-troubleshooting
d
Has anyone had an issue with junction objects in Salesforce not syncing fully? I have
opportunitycontactrole
setup and I'm only getting ~2300 records in Snowflake but there are over 8000 in Salesforce itself. I've tried doing a full overwrite but I"m still missing most of the data. Running the most recent version of the connector on cloud
k
Yes, this kind of “partial sync” with Salesforce objects (including junction-like objects such as
OpportunityContactRole
) has come up before. From the forum, there was a case where Salesforce streams (including
OpportunityContactRole
and
OpportunityLineItem
) were capped at exactly 30,000 records per stream; the remaining records only arrived on subsequent incremental syncs. This was traced to a bug in the pagination (
next_page_token
) logic of the Bulk API implementation and was fixed in the Salesforce source connector v1.0.10. [[Salesforce 30k limit](https://discuss.airbyte.io/t/929)] Separately, another user reported that a specific Salesforce object (not queryable / not supported by Bulk API) caused the sync to fail or return no data for that stream until it was deselected. [[Salesforce & Mongo failing](https://discuss.airbyte.io/t/737); [Salesforce Bulk unsupported entity](https://discuss.airbyte.io/t/1082)] Given your symptoms and the available info, here’s what you can do: 1. Confirm connector version & pagination bug - Double‑check the exact
source-salesforce
version in your Airbyte Cloud workspace. The 30k cap bug is known and fixed in ≥ v1.0.10, but if you’re on an older or custom-pinned version it could explain missing records. [[Salesforce 30k limit](https://discuss.airbyte.io/t/929)] 2. Try Incremental Append + Deduped - Salesforce source officially supports
Incremental - Append + Deduped
, and it’s the recommended mode for handling rate limits and large volumes. [[SF source sync modes](https://docs.airbyte.com/integrations/sources/salesforce#supported-sync-modes)] - Set the stream to
Incremental - Append + Deduped
, reset the stream, and run a fresh sync. This can also help if the connector is resuming from rate-limit “partial” runs. [[SF rate limiting](https://docs.airbyte.com/integrations/sources/salesforce#rate-limiting)] 3. Check for API / Bulk API limitations - Ensure the object is actually supported by the Bulk API, or try toggling the
Force Use Bulk API
option; if unsupported fields or entities are involved, the connector may silently fall back or error on that stream. [[Usage of Bulk vs REST](https://docs.airbyte.com/integrations/sources/salesforce#rate-limiting); [Bulk unsupported entity example](https://discuss.airbyte.io/t/1082)] 4. Inspect logs for caps or errors on that stream - Look in the sync logs for that specific stream (
OpportunityContactRole
) for signs of: - “Giving up … after X tries” or Bulk API errors. [[Salesforce & Mongo failing](https://discuss.airbyte.io/t/737)] - Exact round numbers of records (e.g., 30,000 or a fixed page size) suggesting pagination stopping early. [[Salesforce 30k limit](https://discuss.airbyte.io/t/929)] 5. If counts still don’t match - Given there is no explicit known issue about
OpportunityContactRole
specifically in the docs/issues you provided, if after the above steps you still only get ~2.3k / 8k, I’d recommend opening an Airbyte Cloud support ticket or a GitHub issue with: - Connector version - Exact object name and sync mode - Record counts in Salesforce vs Snowflake - Relevant log excerpts for that stream The knowledge sources don’t mention a current open bug for
OpportunityContactRole
with exactly your numbers, so I can’t point to a confirmed defect beyond the past pagination issue and general Bulk/REST/limit behaviors.
d
@kapa.ai I have an open support ticket number 15160 with additional details as well. The logs don't show any helpful information and this issue doesn't seem to be happening on other large Salesforce objects
k
A message from kapa.ai
Given what’s in the knowledge you provided, there isn’t a documented, object‑specific bug for
OpportunityContactRole
behaving the way you describe (2.3k rows synced vs ~8k in Salesforce) on recent Salesforce connector versions. The closest known issues are: - A past bug where some Salesforce streams (including
OpportunityContactRole
and
OpportunityLineItem
) were “capped” per sync due to Bulk API pagination logic; this was fixed in
source-salesforce
v1.0.10. [[Salesforce 30k limit](https://discuss.airbyte.io/t/929)] - Cases where certain Salesforce objects or report-based streams fail or return no/partial data when not supported by Bulk API or not queryable; deselecting that stream resolved the failures. [[Salesforce & Mongo failing](https://discuss.airbyte.io/t/737); [Bulk unsupported entity example](https://discuss.airbyte.io/t/1082)] - General rate‑limit behavior, where a sync can end early but only for incremental syncs does Airbyte “pick up where it left off” on subsequent runs; for full refresh overwrite you’d expect the full object (subject to any connector bugs). [[SF rate limiting](https://docs.airbyte.com/integrations/sources/salesforce#rate-limiting)] Given that: 1. You’re on Airbyte Cloud and “most recent” connector The specific 30k‑cap pagination bug is documented as fixed and should not affect current versions. [[Salesforce 30k limit](https://discuss.airbyte.io/t/929)] Since your count (~2.3k) is neither 30k nor a documented page‑size boundary, the known bug does not directly match your symptom. 2. Other large Salesforce objects sync fine The knowledge you supplied doesn’t include any case where only junction objects (or
OpportunityContactRole
specifically) partially sync while other large objects behave normally, so there’s no explicit documented root cause I can reuse. 3. Logs “look clean” In similar cases, support has asked users to: - Validate whether the object is fully queryable via the Salesforce API (SOQL) using the same user/permissions Airbyte uses. [[Salesforce & Mongo failing](https://discuss.airbyte.io/t/737)] - Check if Bulk vs REST API behavior or unsupported entities/fields are involved. [[Usage of Bulk vs REST](https://docs.airbyte.com/integrations/sources/salesforce#rate-limiting); [Bulk unsupported entity example](https://discuss.airbyte.io/t/1082)] Because of these limits in the available docs: - I can’t definitively say why you’re missing ~70% of
OpportunityContactRole
records—there’s no explicit mention of this pattern with this object in the sources you provided. - With an open Cloud ticket (15160) and non‑diagnostic logs on your side, the correct next step is for Airbyte support to: - Compare exact SOQL row counts vs Airbyte’s per‑stream raw counts in storage. - Check the connector version and Bulk/REST configuration. - Inspect the internal job logs for that connection, which aren’t in the public docs or issues. In short: the public knowledge you shared doesn’t yet document your exact issue; resolution likely depends on deeper, tenant‑specific investigation already underway in your support ticket rather than a known, documented fix.