Loading

You receive the error "That object name is already in use" when creating a custom element

Publiseringsdato: Oct 1, 2024
Beskrivelse

You can see this error in many different scenarios. The error occurs when the API name of the custom element you create has the same API name as another custom element.

 

Here’s an example scenario.

  1. You create a custom setting with a Label of App Config and an Object Name of AppConfig.

  2. You try to create a custom metadata type with a label of App Config and an Object Name of AppConfig.

  3. On the custom metadata type page, you see this error: "That object name is already in use"

 

This error occurs because the custom setting and the custom metadata type both have the same API name.

Løsning

API names must be unique across these custom elements within a single org:

  • Big objects

  • Custom events

  • Custom metadata types

  • Custom objects

  • External objects

  • Custom settings

  • Knowledge article types

Knowledge-artikkelnummer

002330968

 
Laster
Salesforce Help | Article