# studio-duplicate-name

> Two objects share a name; references by name become ambiguous.

| | |
| --- | --- |
| Kind | Studio problem |
| Reported by | Studio validation: the Problems panel, Play, Publish and the MCP `validate` tool |
| Code in the Studio | `duplicate-name` |

This is a warning. Names must be unique for expressions and scripts to tell objects apart. Two values of one enumeration with the same name are an error, not a warning: the game tells values apart by name, so they would merge.

## Fix

- Rename one of the objects (F2 in the explorer), or one of the values.

## See also

- [Problems and validation](/studio/playtesting)
