# \[Bug\] Cannot use same Local Variable name twice in two functions!

**URL:** <https://forums.unrealengine.com/t/bug-cannot-use-same-local-variable-name-twice-in-two-functions/293257>\
**Category:** Blueprint\
**Tags:** unreal-engine, bug-report, question, Blueprint\
**Created:** [September 9, 2014, 9:45am UTC](https://forums.unrealengine.com/t/bug-cannot-use-same-local-variable-name-twice-in-two-functions/293257 "2014-09-09T09:45:40Z")\
**Posts on this page:** 4\
**Page:** 2

<div class="post-metadata">

**Author:** ![Dalgaard.Alex](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Dalgaard.Alex](https://forums.unrealengine.com/u/Dalgaard.Alex)\
**Post date:** [April 11, 2019, 1:31pm UTC](https://forums.unrealengine.com/t/bug-cannot-use-same-local-variable-name-twice-in-two-functions/293257/21 "2019-04-11T13:31:02Z")

</div>

There is a work around for this that i can explain very simple.  
DO NOT NAME THE FUNCTION BEFORE YOU ADD VARIABLES!

When i set a name/copy a name to the function from a different BP character, i can’t change the names on the variables.  
But if i add the variabels first, then change the name of the function. The variable names stay.

---

<div class="post-metadata">

**Author:** ![e.alemdar](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@e.alemdar](https://forums.unrealengine.com/u/e.alemdar)\
**Post date:** [August 3, 2022, 1:38pm UTC](https://forums.unrealengine.com/t/bug-cannot-use-same-local-variable-name-twice-in-two-functions/293257/22 "2022-08-03T13:38:19Z")

</div>

I am facing the same issue in Unreal Engine 5.0.3. I cannot create a local variable with the same name in two different functions within the same blueprint.

---

<div class="post-metadata">

**Author:** ![normal\_ST](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@normal\_ST](https://forums.unrealengine.com/u/normal_ST)\
**Post date:** [November 7, 2022, 10:14pm UTC](https://forums.unrealengine.com/t/bug-cannot-use-same-local-variable-name-twice-in-two-functions/293257/23 "2022-11-07T22:14:25Z")

</div>

Same problem, seems like some bugs was ignored since 2014. Big surprise )

Current workaround: Rename your variables in “MyBlueprint” tab, instead of “Details”.

Unreal version 5.0.3.

---

<div class="post-metadata">

**Author:** ![Zetheros](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Zetheros](https://forums.unrealengine.com/u/Zetheros)\
**Post date:** [January 22, 2023, 9:45am UTC](https://forums.unrealengine.com/t/bug-cannot-use-same-local-variable-name-twice-in-two-functions/293257/24 "2023-01-22T09:45:58Z")

</div>

you are a lifesaver normal\_ST

[Previous page](https://forums.unrealengine.com/t/bug-cannot-use-same-local-variable-name-twice-in-two-functions/293257.md?page=1)
