Repository navigation
Duplicate Detection
When importing dives — whether from a file or over Bluetooth — BlueDive tries to avoid creating duplicate entries for a dive you've already logged.
BlueDive compares each incoming dive with the dives already in your logbook, using the most reliable evidence first. The first test that finds a match decides; the less reliable tests are used only when the more reliable ones find nothing.
During a Bluetooth sync, BlueDive looks for logbook dives from the same dive computer (same serial number) whose sync fingerprint is identical to the incoming dive's. Only dives from 24 hours before the oldest downloaded dive to 24 hours after the newest one are compared. This needs a real serial number: some computers report a placeholder such as 0, 00000000, unknown or n/a, and their dives aren't checked for duplicates during a sync.
No duplicate review is shown after a sync. A matched dive is skipped during a normal sync, or updated with the computer's data when you use Download All Dives (see Importing Dives via Bluetooth Sync).
When importing from a file (BlueDive, MacDive XML, UDDF, Subsurface or Garmin FIT), BlueDive tries up to six tests in this order. The reason shown in the review tells you which one matched:
| Order | Reason shown | Confidence | What is compared |
|---|---|---|---|
| 1 | BlueDive ID | High | The dive's own BlueDive record ID, written in every file BlueDive exports. It matches only the same logbook entry. |
| 2 | Same logbook record (Legacy) | High | The same record ID, found where files exported by older versions of BlueDive stored it. |
| 3 | Same dive computer & fingerprint | High | The dive computer's serial number and the dive's sync fingerprint, with a check that the maximum depth is within 1 m and the duration within 2 minutes. The time of the dive isn't compared. |
| 4 | Same dive ID & serial | Medium | The dive ID the dive computer or the other app gave the dive (not your logbook's dive number), the same serial number on both sides, and start times within 3 minutes. |
| 5 | Same dive ID & profile | Medium | The same dive ID as above, serial numbers that don't contradict each other (they may be missing on one side), start times within 24 hours when both serial numbers are the same (2 hours otherwise), maximum depth within 1 m and duration within 2 minutes. |
| 6 | Same date, depth and duration | Low | Start time within 3 minutes, maximum depth within 1 m and duration within 2 minutes. |
Some rules keep different dives apart:
- In the last test, two dives that both have a site name, a serial number or a diver name are not matched when those values differ — for example a buddy's dive at the same time and depth.
- In tests 4 and 5, a dive with the same dive ID but a different diver name (without matching serial numbers) or a different serial number is ruled out, and the last test won't match it either. The same applies when its depth or duration doesn't fit.
- Each logbook dive can be matched by only one dive in the file.
- Depths are compared in metres, whatever unit each dive was recorded in.
- Durations are compared in whole minutes. Since BlueDive 2.1, a file's dive time is rounded to the nearest minute (30 seconds round up) instead of having its seconds dropped, and a dive imported by an earlier version with the seconds dropped is still recognized.
- Dives in the file without a date aren't imported and aren't compared.
A file exported by BlueDive always carries each dive's record ID, so its dives are recognized by the first test whenever they're still in your logbook.
The confidence level tells you how certain BlueDive is that the matched dive is genuinely the same dive:
- High — a unique record ID or the dive computer's fingerprint was matched; false matches are extremely unlikely.
- Medium — a dive ID was matched along with the serial number and the time, or with the depth and duration; reliable for files from dive computers and dive log apps.
- Low — only the date, depth and duration were matched. Correct for most dives, but more likely to be wrong when several dives at the same site are very similar.
When BlueDive finds one or more dives in a file that already appear in your logbook, it shows a Duplicates Detected review before anything is imported, so you stay in control of what gets added.
At the top, a summary card gives you the counts at a glance:
- In file — the number of dives parsed from the file with a valid date; dives without a timestamp are excluded before matching begins.
- Duplicates — how many of those dives already exist in your logbook.
- New — how many dives are not yet in your logbook.
Tapping the Duplicates or New tile filters the list below to show only that category, making it easier to track progress and review what's new before importing. The list always shows one category at a time — it opens on Duplicates; tap New to switch.
If the file has a name, it is shown beneath the counts so you can confirm you're reviewing the right import.
Below the summary, BlueDive lists every dive it flagged as already in your logbook. Each entry shows:
- The dive site name.
- The date and time of the dive.
- The maximum depth and duration.
- The dive number from your logbook, when one exists.
- The reason it was matched — one of the six reasons in the table above.
When there are many duplicates, only the first few are shown at first. Use See All to expand the full list and Show Less to collapse it again.
The review offers three choices:
- Skip Duplicates and Import the Rest — adds only the new dives and leaves your existing dives untouched, so nothing is overwritten. When every dive in the file is already in your logbook, this option instead reads "Skip — Nothing New to Import" and there is nothing to add.
- Import All Anyway — imports every dive in the file, including the ones flagged as duplicates. This creates a second copy of each matched dive, so use it only when you intentionally want the duplicates added.
- Cancel — closes the review without importing anything.
Because "Import All Anyway" creates additional copies rather than combining dives, importing the same file more than once can leave you with repeated entries. Don't use Merge Dives to clean up a duplicate pair — it's built for combining two genuinely different dives (for example, a manual placeholder entry and a later Bluetooth-synced copy of the same real-world dive), and appends one dive's full profile after the other's with a time offset. Run on two copies of the same already-imported dive, it would splice a second copy of the same profile onto the first as if they were sequential dives, corrupting the data. If a duplicate carries a detail — a note, a photo, a tag — you want to keep, copy it over by hand and delete the extra copy; there's no automated way to combine an imported duplicate into an existing dive.
Gear, certifications, insurance policies, species catalogues and sync fingerprints each have their own import review, which lists what's new and what's already there and skips what you already have:
- Gear — see Gear Deduplication.
- Species — a species already in your catalogue (same species, or one known by the same name) is never duplicated or changed; see Species Catalogue & iNaturalist.
- Sync fingerprints — a dive computer already stored is recognized by its serial number and skipped; see Dive Computer Sync & Fingerprints.
- Photos — a photo imported again is recognized and updated rather than added a second time. When BlueDive can't tell for sure, it asks whether to update the stored photo, keep both or skip the file; see Dive Photos.
Not every file carries every kind of information, so the tests that can match depend on where the file came from. They are always tried in the order of the table above.
| File | Tests that can match |
|---|---|
| BlueDive file exported by BlueDive 2.0 or another recent version | BlueDive ID first. If the dive isn't in your logbook under that ID (for example, it was deleted and logged again), the other tests follow, depending on what the dive carries — Same dive computer & fingerprint for Bluetooth-synced dives, Same dive ID & serial and Same dive ID & profile for dives first imported from another app, and Same date, depth and duration for all of them. |
| BlueDive file from an older version | Same logbook record (Legacy) when the file stored the record ID; otherwise the same tests as above, without BlueDive ID. |
| BlueDive file made by the MacDive conversion script | The script writes MacDive's own ID for each dive, so dives with a serial number are matched with Same dive ID & serial or Same dive ID & profile, and every dive with Same date, depth and duration. Importing the same converted file twice is recognized this way. |
| MacDive XML | Same dive ID & serial and Same dive ID & profile using MacDive's dive ID when the dive has a serial number; otherwise Same date, depth and duration. |
| Subsurface | Subsurface's dive ID (written for dives downloaded from a dive computer) with Same dive ID & serial and Same dive ID & profile when the file records the computer's serial number; dives without a dive ID or serial number (for example, dives entered by hand in Subsurface) through Same date, depth and duration only. |
| UDDF | Same date, depth and duration only. |
| Garmin FIT | The FIT file's dive ID is made from the watch's serial number and the dive's start time. With a serial number: Same dive ID & serial, then Same dive ID & profile, then Same date, depth and duration. Without one: Same date, depth and duration only. |
Earlier versions of BlueDive stored a Garmin dive's start time converted from UTC; BlueDive 2.0 stores the local time shown on the watch (see Importing Dives From a File). The FIT dive ID doesn't change, but the two start times differ by the watch's time zone offset. When you import such a file again without deleting the older dive first:
- File with the watch's serial number — the dive is still recognized, with the reason Same dive ID & profile. Choosing Skip Duplicates and Import the Rest keeps the older dive with its earlier time.
- File without a serial number — the times are more than 3 minutes apart, so the dive is not recognized and is imported as a second copy (unless the watch was set to UTC).
To correct an older Garmin dive's time, delete it and then import its FIT file again.