# Deleted custom event restricts to use the same name for variables / functions

**URL:** <https://forums.unrealengine.com/t/deleted-custom-event-restricts-to-use-the-same-name-for-variables-functions/317966>\
**Category:** Community & Industry Discussion\
**Tags:** deletion, unreal-engine, bug-report, feedback, question\
**Created:** [May 9, 2015, 4:26am UTC](https://forums.unrealengine.com/t/deleted-custom-event-restricts-to-use-the-same-name-for-variables-functions/317966 "2015-05-09T04:26:22Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Azarus](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Azarus](https://forums.unrealengine.com/u/Azarus)\
**Post date:** [May 9, 2015, 4:26am UTC](https://forums.unrealengine.com/t/deleted-custom-event-restricts-to-use-the-same-name-for-variables-functions/317966/1 "2015-05-09T04:26:22Z")

</div>

If you create a new Custom Event and then delete it you can’t use the same name in variables/functions etc.  
**Reproduced in a blank project, Engine Version 4.7**

Steps to reproduce this bug:

- Create a new custom event
- Set any name to this event
- Delete this custom event
- Try to create a variable or a function with the same name…

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b9532c9a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b9532c9a](https://forums.unrealengine.com/u/anonymous_user_b9532c9a)\
**Post date:** [May 11, 2015, 8:11pm UTC](https://forums.unrealengine.com/t/deleted-custom-event-restricts-to-use-the-same-name-for-variables-functions/317966/2 "2015-05-11T20:11:28Z")

</div>

Hi ,

I was able to reproduce this on my end. However, the bug appears to have been fixed as of 4.8 preview 1.

---

<div class="post-metadata">

**Author:** ![Azarus](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Azarus](https://forums.unrealengine.com/u/Azarus)\
**Post date:** [June 13, 2015, 1:45pm UTC](https://forums.unrealengine.com/t/deleted-custom-event-restricts-to-use-the-same-name-for-variables-functions/317966/3 "2015-06-13T13:45:26Z")

</div>

The problem is still exist in 4.8. Functions are working now. But variables and all the other stuff still don’t work.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b9532c9a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b9532c9a](https://forums.unrealengine.com/u/anonymous_user_b9532c9a)\
**Post date:** [June 15, 2015, 5:24pm UTC](https://forums.unrealengine.com/t/deleted-custom-event-restricts-to-use-the-same-name-for-variables-functions/317966/4 "2015-06-15T17:24:54Z")

</div>

Hi ,

I haven’t been able to reproduce this on my end. Do you have any specific steps I can follow to cause this to occur?

---

<div class="post-metadata">

**Author:** ![Azarus](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Azarus](https://forums.unrealengine.com/u/Azarus)\
**Post date:** [June 15, 2015, 9:12pm UTC](https://forums.unrealengine.com/t/deleted-custom-event-restricts-to-use-the-same-name-for-variables-functions/317966/5 "2015-06-15T21:12:50Z")

</div>

Steps to reproduce:

- Create an Event
- Delete the Event
- Try to create a function or a variable with the same name. (It fails.)

Here is the video what i am doing:

[https://www](https://www)…com/watch?v=LDPH9cHYy-k

Length: 1:40

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b9532c9a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b9532c9a](https://forums.unrealengine.com/u/anonymous_user_b9532c9a)\
**Post date:** [June 16, 2015, 1:58pm UTC](https://forums.unrealengine.com/t/deleted-custom-event-restricts-to-use-the-same-name-for-variables-functions/317966/6 "2015-06-16T13:58:05Z")

</div>

Hi ,

Have you updated to 4.8.0 or are you on a preview build? I’ve attempted this on my end following along with the video however when I rename either functions or variables after creating and deleting a custom event it seems to work as intended. I’ve also tried compiling between steps to see if that caused the error, however it did not seem to make a difference.

---

<div class="post-metadata">

**Author:** ![Azarus](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Azarus](https://forums.unrealengine.com/u/Azarus)\
**Post date:** [June 17, 2015, 6:03am UTC](https://forums.unrealengine.com/t/deleted-custom-event-restricts-to-use-the-same-name-for-variables-functions/317966/7 "2015-06-17T06:03:37Z")

</div>

I am on the latest version (4.8)

I noticed that the problem can be somewhat solved by adding a new custom event and giving it a different name, then deleting it. (It unlocks the name, but locks the new one, so it’s not a permanent solution.)

I made an another video to show what i am exactly doing:

  
I get “test is in use by another variable or function!”

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b9532c9a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b9532c9a](https://forums.unrealengine.com/u/anonymous_user_b9532c9a)\
**Post date:** [June 17, 2015, 5:30pm UTC](https://forums.unrealengine.com/t/deleted-custom-event-restricts-to-use-the-same-name-for-variables-functions/317966/8 "2015-06-17T17:30:23Z")

</div>

Hi ,

While I could not reproduce it myself, this is clearly occurring in your videos. I have attached the second video you posted along with the information here to a bug report, UE-17225, to be assessed by the development staff.

---

<div class="post-metadata">

**Author:** ![Azarus](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Azarus](https://forums.unrealengine.com/u/Azarus)\
**Post date:** [June 18, 2015, 4:40am UTC](https://forums.unrealengine.com/t/deleted-custom-event-restricts-to-use-the-same-name-for-variables-functions/317966/9 "2015-06-18T04:40:56Z")

</div>

Thank you !

---

<div class="post-metadata">

**Author:** ![gamerkong007](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@gamerkong007](https://forums.unrealengine.com/u/gamerkong007)\
**Post date:** [August 12, 2022, 4:40am UTC](https://forums.unrealengine.com/t/deleted-custom-event-restricts-to-use-the-same-name-for-variables-functions/317966/10 "2022-08-12T04:40:08Z")

</div>

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/2/4/32450d9e8116f33489568cc03a504e64cc96582e.png)  
Same Issue

---

<div class="post-metadata">

**Author:** ![forgesheep](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@forgesheep](https://forums.unrealengine.com/u/forgesheep)\
**Post date:** [September 17, 2022, 11:19am UTC](https://forums.unrealengine.com/t/deleted-custom-event-restricts-to-use-the-same-name-for-variables-functions/317966/11 "2022-09-17T11:19:33Z")

</div>

Still present in ue5

---

<div class="post-metadata">

**Author:** ![Fear\_Wydk](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/fear_wydk/32/722678_2.png) [@Fear\_Wydk](https://forums.unrealengine.com/u/Fear_Wydk)\
**Post date:** [June 28, 2023, 3:13am UTC](https://forums.unrealengine.com/t/deleted-custom-event-restricts-to-use-the-same-name-for-variables-functions/317966/12 "2023-06-28T03:13:10Z")

</div>

You have to search for it within the side panel and delete it there then it will allow you to create a new event with the same name. In the image, you will search for the name and then right-click and delete it from the menu. Hope this helps

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/9/8/698ac062df9d9784a2f72ee1aead073e7f3e3fd5.png)

---

<div class="post-metadata">

**Author:** ![UTube\_MitchComer](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/utube_mitchcomer/32/619048_2.png) [@UTube\_MitchComer](https://forums.unrealengine.com/u/UTube_MitchComer)\
**Post date:** [January 5, 2024, 9:52pm UTC](https://forums.unrealengine.com/t/deleted-custom-event-restricts-to-use-the-same-name-for-variables-functions/317966/13 "2024-01-05T21:52:26Z")

</div>

Thank you so much. I had no idea I had the same event hidden somewhere random in my bp, unused. This helped me.
