Skip to main content

Fixed: "Can't Rename. This Name Is Already Being Used" in Power Apps

· 3 min read
Jagdish Kumawat
Founder @ Dewiride

You rename a control in Tree view, and Power Apps stops you: Can't rename. This name is already being used. Please try a different name. Another control in the app already has that name, possibly on a different screen.

The Error​

In the Career Development Plan app, a new Text control on the Response screen was renamed lblCompetencyRS with Tree view → … → Rename (How to Rename a Screen or Control in Power Apps). A dialog appeared instead:

A dialog titled Can't rename with the text This name is already being used. Please try a different name, and a Close button

Dialog
Can't rename
This name is already being used. Please try a different name.

Close dismisses it, and the control keeps its old name, Text3 in the example.

Why It Happens​

Microsoft's coding guidelines say it plainly: "Control names must be unique across an application" (Code readability). Formulas refer to controls by name from any screen, so two controls can't share one.

In the example, an earlier attempt had already added a Text control and named it lblCompetencyRS. The second one couldn't take the same name.

The Fix​

  1. Search Tree view for the name to see which control already has it.
  2. Decide which control should keep it:
    • If the other control is the right one, give the new control a different name.
    • If the new one should have it, rename the other control first.
  3. Rename again.

In the example, the existing lblCompetencyRS was the right one. The extra Text control wasn't wasted: it was renamed lblNoManagerRS and became the screen's no-manager warning.

Avoid It with Screen Suffixes​

The same control on several screens is common: a Back button, a title. Microsoft's guidelines suggest ending such names with a short screen code, as in galBottomNavMenuHS for the Home screen. This app uses HS, MPS and RS, so btnBackMPS and btnBackRS never clash (Power Apps Naming Conventions).

Common Mistakes​

MistakeWhat happensDo this instead
Looking for the clash on the current screen onlyThe other control is on another screenSearch the whole Tree view
Adding 1 or 2 to make it uniqueNames stop saying what the control isAdd the screen's code instead

Troubleshooting​

SymptomLikely causeFix
A pasted control got _1 at the endPower Apps renamed the copy because the name existedRename it to a name with the new screen's code

FAQ​

Does renaming break formulas?​

No. Power Apps updates the formulas that refer to a control when you rename it.

Conclusion​

Can't rename … already being used means another control in the app has the name. Find it, decide which one keeps the name, and give the other a new one, ideally with the screen's code at the end.

Additional Resources​

Stay Updated

Subscribe to our newsletter for the latest tutorials, tech insights, and developer news.

By subscribing, you agree to our privacy policy. Unsubscribe at any time.