ArchiveService.walk used a check-then-create pattern for cloudFolder, cloudFile and cloudVideo. When two concurrent passes (overlapping scans or a folder reachable through two paths) both query existing rows before either creates, the second create hits P2002 on @@unique([sourceId, fileId]) and aborts the whole scan, marking the source ERROR. Wrap each create in try/catch for P2002 and fall back to an update on the sourceId_fileId compound key, so a race no longer fails the scan. Adds vitest cases proving the cloudFile fallback updates the compound key and requeues, and that non-P2002 errors still rethrow. Paperclip-Issue: BIT-33532