﻿# Labelbox global keys: stable asset identity does not turn every upload into an upsert

Use Labelbox global keys with case-insensitive identity, explicit create-versus-upsert behavior and per-row reconciliation after partially successful uploads.

Author: Retrivium editorial team
Updated: 2026-11-04
Canonical URL: https://retrivium.ai/journal/fg2-labelbox-global-key-retry-identity/
Language: en

## Choose an identity that survives another upload attempt

An ingestion job uploads images, loses its connection and cannot tell which rows were created. The [Labelbox global-key guide](https://docs.labelbox.com/horizon/developer-guides/data-row-global-keys) describes user-defined keys and case-insensitive matching. Derive a stable identity from the asset naming policy instead of generating a new unrelated key on each retry. Decide whether source namespace and content revision belong in that identity before combining data from multiple storage locations.

## Separate identity from the operation performed

A repeated key does not imply that every upload function updates the existing row. The global-key guide documents duplicate-key failures, while the [data-row guide](https://docs.labelbox.com/horizon/developer-guides/data-row) distinguishes creation and upsert workflows. Select the operation intentionally. A retry meant to recover missing rows should not silently replace reviewed media or metadata. Conversely, a deliberate update needs a defined policy for which existing row and fields the new information is allowed to change.

## Treat partial results as a reconciliation problem

The [task-object guide](https://docs.labelbox.com/horizon/developer-guides/tasks) exposes task status, results and errors for asynchronous operations. Reconcile these against the intended global keys rather than treating a completed background task as an all-or-nothing transaction. Preserve the successful row identities and identify failed inputs before retrying. A batch containing a mixture of valid and conflicting keys needs per-row accounting even if the job-level request itself was accepted successfully.

## Keep mutable URLs outside the identity assumption

A global key pointing to an asset does not freeze the bytes served by its URL. If a source object can be overwritten, retain an appropriate version reference or content fingerprint in the release record. Changing the image beneath an existing reviewed data row can invalidate its annotation coordinates or semantic labels. A stable key is useful for lineage, but it cannot make an uncontrolled mutable source behave like an immutable dataset snapshot.

## Test recovery with distinguishable source records

Use a pilot with a known existing row, a genuinely new asset and a deliberately conflicting key. Inspect exact outcomes and verify that recovery leaves intended media and metadata intact. The guides on [annotation object identities](/journal/data-guide-coco-instance-caption-identities/) and [dataset removal lineage](/journal/data-guide-dataset-removal-lineage-tombstone/) provide related identity concepts. A reliable ingestion path can explain which asset every row represents and what happened during each retry, rather than only reporting that a bulk upload finished.
