# Actor Blueprint fails to compile if it includes a macro that calls one of its methods

**URL:** <https://forums.unrealengine.com/t/actor-blueprint-fails-to-compile-if-it-includes-a-macro-that-calls-one-of-its-methods/387339>\
**Category:** Blueprint\
**Tags:** macros, unreal-engine, Blueprint, question\
**Created:** [March 8, 2017, 7:11pm UTC](https://forums.unrealengine.com/t/actor-blueprint-fails-to-compile-if-it-includes-a-macro-that-calls-one-of-its-methods/387339 "2017-03-08T19:11:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![VitorCBSB](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@VitorCBSB](https://forums.unrealengine.com/u/VitorCBSB)\
**Post date:** [March 8, 2017, 7:11pm UTC](https://forums.unrealengine.com/t/actor-blueprint-fails-to-compile-if-it-includes-a-macro-that-calls-one-of-its-methods/387339/1 "2017-03-08T19:11:03Z")

</div>

Title explains it. To reproduce:

1. Create an actor blueprint.
2. Create a method inside this newly created actor blueprint.
3. Create a macro library (with Actor as base).
4. Create a macro inside the library, with an Exec pin and a reference to the created actor blueprint as inputs.
5. Inside the macro, call the method you created.
6. Include the macro somewhere in the Actor’s Event Graph (say, in the Tick event).
7. Try to compile the actor.

Expected: compiled sucessfully. The macro (should) simply expand to a call of a method that exists within the actor.  
Result: fails to compile. Complains about not being able to find the method.

An important note is that child blueprints do not fail to compile if they include the macro (assuming the macro does not have any of their methods).

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_41845f4a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_41845f4a](https://forums.unrealengine.com/u/anonymous_user_41845f4a)\
**Post date:** [March 9, 2017, 8:12pm UTC](https://forums.unrealengine.com/t/actor-blueprint-fails-to-compile-if-it-includes-a-macro-that-calls-one-of-its-methods/387339/2 "2017-03-09T20:12:50Z")

</div>

Hello VitorCBSB,

Thank you for reporting this issue. I’ve reproduced the issue and entered a bug report for it. You can find/track the bug report here: [UE-42735](https://issues.unrealengine.com/issue/UE-42735).

Have a nice day!
