Skip to content

Records and data

0x80040237

DuplicateRecord

The operation failed because of a SQL integrity violation.

Hex
0x80040237
Decimal
-2147220937
Name
DuplicateRecord

Common causes

  • A record with the same primary key or unique value already exists.
  • Two parallel requests created the same record.

How to fix it

  1. 01Check for an existing record first, or use an upsert with an alternate key.
  2. 02If this happens in a retry loop, make the operation safe to repeat.

Causes and fixes are practical guidance, not an official statement. The code and name come from Microsoft's Dataverse error reference. This site is independent and not affiliated with Microsoft.