# Why am I getting an error of "\_\_\_\_\_\_ should not be called from a Blueprint" when I restart the Editor?

**URL:** <https://forums.unrealengine.com/t/why-am-i-getting-an-error-of-should-not-be-called-from-a-blueprint-when-i-restart-the-editor/281628>\
**Category:** Blueprint\
**Tags:** unreal-engine, functions, Blueprint, question\
**Created:** [April 25, 2014, 5:57pm UTC](https://forums.unrealengine.com/t/why-am-i-getting-an-error-of-should-not-be-called-from-a-blueprint-when-i-restart-the-editor/281628 "2014-04-25T17:57:03Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kaonashi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kaonashi](https://forums.unrealengine.com/u/Kaonashi)\
**Post date:** [April 25, 2014, 5:57pm UTC](https://forums.unrealengine.com/t/why-am-i-getting-an-error-of-should-not-be-called-from-a-blueprint-when-i-restart-the-editor/281628/1 "2014-04-25T17:57:03Z")

</div>

After struggling with this issue regarding my project I decided to submit my question to propper assistance. I created this Blueprint consisting of a Box for simple Overlap Events. This Blueprint acts as my Area Volume ( _ICON\_Area_ ) and its function is to store variables and gameplay elements for a particular area inside the level. In this particular case, a Variable Array called RegisteredPlayerStart.

My PlayerStart ( a Blueprint with a cylindrical mesh) on BeginGame event checks for any ICON\_Area that it’s overlaping and try to add itself to the RegisteredPlayerStart Array.

When the player Dies, he will respawn in some PlayerStart found in the ICON\_Area’s RegisteredPlayerStart Array. For that, before the SpawnActor command  
I check if we should use Ramdon Respawn points or Linear Respawn points and then, from my PlayerController, I Call a function inside the ICON\_Area to select a PlayerStart.

Everything works fine until I restart the editor… Everytime the Editor opens I get the following error:

**LogBlueprint:Error: [compiler] Error Function ‘ICON\_SelectNextPlayerStart’ called from ICON Select Next Player Start should not be called from a Blueprint**

**LogBlueprint:Error: [compiler] Error Function ‘ICON\_SelectRandonPlayerStart’ called from ICON Select Randon Player Start should not be called from a Blueprint**

If I recompile the Blueprints everything start to work again aside from trying to play as StandAlone Game, which crashes on StartUp.

The Function “ICON\_SelectNextPlayerStart” and “ICON\_SelectRandonPlayerStart” are inside my ICON\_Area but is called from my PlayerController blueprint.

My Player is a Ball that uses a peculiar gravity logic and, in order to do so, I need every ball used by the player is registered inside a Array, So I can pass any command related to  
every ball that belongs to the player. So, on Begin Game, every spawned ball adds itself to an Array in the PlayerController, for that I have a function, inside the PlayerController called  
“ICON\_RegisterBall” and, when the ball is destroyed, “ICON\_UnRegisterBall”.  
Before the Update to the 4.1 version, these last two functions worked fine, but now they show an error on Editors start up and, as the first issue above, as soon I Recompile the blueprints,  
everything starts working again.

**LogBlueprint:Error: [compiler] Error Function ‘ICON\_RegisterBall’ called from ICON Register Ball should not be called from a Blueprint**

**LogBlueprint:Error: [compiler] Error Function ‘ICON\_UnRegisterBall’ called from ICON Un Register Ball should not be called from a Blueprint**

Everything I’m trying to do with the Blueprints, was done before with UDK and UScript. I’m just trying to port my work to Unreal 4. So far I’ve managed to get things working  
and I’m really impressed with the quick results I’m getting with the Blueprint System, aside for these problems when I restart the Editor or try to play the game as a Standalone.

Screeshots:

Blueprint error at Editor Startup

 ![4829-blueprint_error_respawn.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/4/9/64917ab1593aaff99d5f9d45db141de6294723b3.jpeg)

Function declaration:

 ![4830-blueprint_error_select_random_playerstart.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/3/d/33d927d38ae23771936821ac16bc0dac2ac3ecd0.jpeg)

Thanks in advance for the help.

---

<div class="post-metadata">

**Author:** ![TomShannon](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tomshannon/32/1145428_2.png) [@TomShannon](https://forums.unrealengine.com/u/TomShannon)\
**Post date:** [May 3, 2014, 7:05pm UTC](https://forums.unrealengine.com/t/why-am-i-getting-an-error-of-should-not-be-called-from-a-blueprint-when-i-restart-the-editor/281628/2 "2014-05-03T19:05:08Z")

</div>

I had a similar issue going from the Beta to 4.0. I toiled with it for a while and the only thing that worked was rebuilding the bluepritns from scratch 😕 Luckily my blueprints weren’t horribly complicated to begin with.

have you tired making a copy/duplicate of the Blueprint and seeing if that ‘holds’ the compiling?

---

<div class="post-metadata">

**Author:** ![Kaonashi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kaonashi](https://forums.unrealengine.com/u/Kaonashi)\
**Post date:** [May 5, 2014, 2:18pm UTC](https://forums.unrealengine.com/t/why-am-i-getting-an-error-of-should-not-be-called-from-a-blueprint-when-i-restart-the-editor/281628/3 "2014-05-05T14:18:22Z")

</div>

Hi , in fact I did copied/duplicated the blueprints more than once (on of the first approaches I took). I also tried to restart all the programming from scratch, but the problem eventually poped in after a while and in randomic form.  
I noticed that after renaming and recompiling everything seem to work for some time but, again, just for a little while. Based on the behaviour and the random nature of these occurences I can only assume that this is an engine bug, though no one from Epic staff has given me any answer yet. Any thoughts?

---

<div class="post-metadata">

**Author:** ![TomShannon](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tomshannon/32/1145428_2.png) [@TomShannon](https://forums.unrealengine.com/u/TomShannon)\
**Post date:** [May 12, 2014, 3:13pm UTC](https://forums.unrealengine.com/t/why-am-i-getting-an-error-of-should-not-be-called-from-a-blueprint-when-i-restart-the-editor/281628/4 "2014-05-12T15:13:51Z")

</div>

I’m getting this issue as well from a Blueprint that’s basically not been changed. However I DID make a MINOR change to the blueprint a few days ago. I moved a node in the blueprint. Now it fails the ‘raw’ compiling (It compiles fine if I open the BP and hit compile).

Reverting to previous versions that didn’t trigger the error doesn’t seem to help. Luckily, I don’t need these particular blueprints anymore, but This is a real issue if it were to happen to my active code!

here’s the Log line and Diff:

```
LogBlueprint:Error: [compiler] Error Function 'FindNextgate' called from Find Nextgate should not be called from a Blueprint

```

 ![](https://d3kjluh73b9h9o.cloudfront.net/original/3X/0/c/0c2d26cb27030dde93e3fa6df0a5b082f7ad02c3.png)

---

<div class="post-metadata">

**Author:** ![TomShannon](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tomshannon/32/1145428_2.png) [@TomShannon](https://forums.unrealengine.com/u/TomShannon)\
**Post date:** [May 12, 2014, 3:26pm UTC](https://forums.unrealengine.com/t/why-am-i-getting-an-error-of-should-not-be-called-from-a-blueprint-when-i-restart-the-editor/281628/5 "2014-05-12T15:26:44Z")

</div>

This isn’t a really comprehensive answer as it doesn’t explain why this seems to crop up out of nowhere, but it’s a workaround.

The way i fixed it, rather than rewriting my classes was to replace the function calls with Custom Event calls that simply activate the functions:

 ![](https://d3kjluh73b9h9o.cloudfront.net/original/3X/b/2/b270e9da1aa9416a0fe8455955e763aaf02d4984.png)

---

<div class="post-metadata">

**Author:** ![Vaporlynx](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Vaporlynx](https://forums.unrealengine.com/u/Vaporlynx)\
**Post date:** [May 21, 2014, 7:04am UTC](https://forums.unrealengine.com/t/why-am-i-getting-an-error-of-should-not-be-called-from-a-blueprint-when-i-restart-the-editor/281628/6 "2014-05-21T07:04:05Z")

</div>

I am also getting this error. Another work around is to rename the function, compile it, save the whole thing and then reload.  
It seems to work again (albeit with some console spam about the names not matching) until something else gets changed.

---

<div class="post-metadata">

**Author:** ![Kaonashi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kaonashi](https://forums.unrealengine.com/u/Kaonashi)\
**Post date:** [May 21, 2014, 1:44pm UTC](https://forums.unrealengine.com/t/why-am-i-getting-an-error-of-should-not-be-called-from-a-blueprint-when-i-restart-the-editor/281628/7 "2014-05-21T13:44:22Z")

</div>

Thanks for the reply.

Renaming the function was my workaround as well.

I tried everything I could think of. Starting the class blueprint from the scratch, reinstalling the engine, pasting the same blueprint in another project, programming a new blueprint in a new project, but I always end up getting this issue (related to comunication between blueprints).

Renaming the function, compiling, saving all and restarting the editor until there is no more errors was the only workaround I’ve found to keep working…

---

<div class="post-metadata">

**Author:** ![Asminthe](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Asminthe](https://forums.unrealengine.com/u/Asminthe)\
**Post date:** [June 20, 2014, 9:22pm UTC](https://forums.unrealengine.com/t/why-am-i-getting-an-error-of-should-not-be-called-from-a-blueprint-when-i-restart-the-editor/281628/8 "2014-06-20T21:22:26Z")

</div>

I’m having this issue also. Originally I wasn’t calling a function from another blueprint, but was instead trying to read the contents of an array. This would compile fine in the editor, but every time I exited everything and restarted the editor it would break, fail to compile and pins would get disconnected. I thought I’d created a temporary fix by creating a function that returned the array that I could call instead of trying to access it directly, but as soon as I made another change to the blueprint I started to get this error.

While I’m glad that some people have been able to find workaround that fit their particular scenario, I’d really like to get a better answer for this.

Does anyone else think it might be related to the engine trying to compile blueprints in the wrong order when starting play? I have a somewhat complicated set of dependencies for my blueprints right now, to the point where I assumed this problem was my fault for quite a while before modifying things to the point where the blueprint making the function call is not referenced by any other blueprint in the game and should be fine to compile last.

---

<div class="post-metadata">

**Author:** ![TJ\_V](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tj_v/32/1008648_2.png) [@TJ\_V](https://forums.unrealengine.com/u/TJ_V)\
**Post date:** [December 15, 2014, 5:28pm UTC](https://forums.unrealengine.com/t/why-am-i-getting-an-error-of-should-not-be-called-from-a-blueprint-when-i-restart-the-editor/281628/9 "2014-12-15T17:28:04Z")

</div>

Hi Kaonashi,

Have you tested this issue in the most current engine version (4.6.0)? If the issue is still present, please let us know and we will try to help you find a solution.

Thanks,

TJ

---

<div class="post-metadata">

**Author:** ![WDIScottC](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/wdiscottc/32/1011750_2.png) [@WDIScottC](https://forums.unrealengine.com/u/WDIScottC)\
**Post date:** [December 19, 2014, 5:21am UTC](https://forums.unrealengine.com/t/why-am-i-getting-an-error-of-should-not-be-called-from-a-blueprint-when-i-restart-the-editor/281628/10 "2014-12-19T05:21:01Z")

</div>

Unfortunately, it is still a problem.  
I’m creating a blueprint only game, and this error message keeps popping up in 4.6.1.  
I’ve tried a bunch of things to work around, but the only solution that seems to have worked is creating an event that then calls the erronious function. Still not 100% reliable, though.

---

<div class="post-metadata">

**Author:** ![TJ\_V](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tj_v/32/1008648_2.png) [@TJ\_V](https://forums.unrealengine.com/u/TJ_V)\
**Post date:** [December 19, 2014, 5:56pm UTC](https://forums.unrealengine.com/t/why-am-i-getting-an-error-of-should-not-be-called-from-a-blueprint-when-i-restart-the-editor/281628/11 "2014-12-19T17:56:06Z")

</div>

Hi WDIScottC,

So far I haven’t been able to reproduce this error in-house. If you have a reliable way to reproduce it, could you post some steps-by-step instructions and screenshots for us?

Or if you have a self contained asset that produces this error, please feel free to upload it here or PM me a download link on the Forums.

---

<div class="post-metadata">

**Author:** ![TJ\_V](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tj_v/32/1008648_2.png) [@TJ\_V](https://forums.unrealengine.com/u/TJ_V)\
**Post date:** [December 26, 2014, 7:06pm UTC](https://forums.unrealengine.com/t/why-am-i-getting-an-error-of-should-not-be-called-from-a-blueprint-when-i-restart-the-editor/281628/12 "2014-12-26T19:06:12Z")

</div>

Hi WDIScottC,

We haven’t heard back from you in a few days, so we are marking this post as resolved for tracking purposes. If you’re still experiencing this issue, please feel free to post back here with additional information.

Cheers,

TJ

---

<div class="post-metadata">

**Author:** ![Baylil](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Baylil](https://forums.unrealengine.com/u/Baylil)\
**Post date:** [June 4, 2024, 8:39pm UTC](https://forums.unrealengine.com/t/why-am-i-getting-an-error-of-should-not-be-called-from-a-blueprint-when-i-restart-the-editor/281628/13 "2024-06-04T20:39:33Z")

</div>

I had the same issue with UE 5.3.2 and fixed it.

Short answer: function was missing `BlueprintCallable` specifier but it was visible in the BP code. Adding the missing specifier fixed the issue.

```auto
UCLASS()
class UDTS_API UUDTSWaitForTrafficEvent : public UBlueprintAsyncActionBase
{
	GENERATED_BODY()
 
public:
	// Will keep listening to the Traffic Event until the traffic rule is finished.
	UFUNCTION(Category="UDTS|Traffic", meta=(DefaultToSelf = "TrafficRule", HidePin="TrafficRule"))
	static UUDTSWaitForTrafficEvent* WaitForTrafficEventTrigger(const UUDTSTrafficRule* 
	
	...
	
};

```

Event though I forgot to add the `BlueprintCallable` specifier, I could call the function from BP and that was throwing the same error. I don’t know why a function which is not exposed to the BP can be called like this. Maybe there is a bug in the engine?
