Skip to content
Bug Barometer

Inserting same hierarchy custom setting in both @testSetup and @isTest method now throws DUPLICATE_VALUE error

Salesforce says this is fixed.

Summary

The exact error:
System.DmlException: Insert failed. First exception on row 0; first error: DUPLICATE_VALUE, duplicate value found: SetupOwnerId duplicates value on record with id:{OrgID}:[]

Workaround

We haven't loaded the full details for this issue yet. Check the official page.

History

  1. First tracked here as Solution Deployed with 9 reports

    Nov 30, 2026

Also open in Uncategorized