# Undo deleted macro causes "Can't save ... Graph is linked to private object(s) in an external package" of BPs

**URL:** <https://forums.unrealengine.com/t/undo-deleted-macro-causes-cant-save-graph-is-linked-to-private-object-s-in-an-external-package-of-bps/331212>\
**Category:** Blueprint\
**Tags:** unreal-engine, bug-report, UE4, question, Blueprint\
**Created:** [September 6, 2015, 4:23am UTC](https://forums.unrealengine.com/t/undo-deleted-macro-causes-cant-save-graph-is-linked-to-private-object-s-in-an-external-package-of-bps/331212 "2015-09-06T04:23:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marooney](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Marooney](https://forums.unrealengine.com/u/Marooney)\
**Post date:** [September 6, 2015, 4:23am UTC](https://forums.unrealengine.com/t/undo-deleted-macro-causes-cant-save-graph-is-linked-to-private-object-s-in-an-external-package-of-bps/331212/1 "2015-09-06T04:23:28Z")

</div>

I reproduced a problem with delete and undo of macros  
(and even got/reported same crash mentioned here ^^ :  
[Crash opening a BP containing a deleted CustomMacro - Platform & Builds - Epic Developer Community Forums](https://answers.unrealengine.com/questions/295880/crash-opening-a-bp-containing-a-deleted-custommacr.html))

1. I created a macro in an macro library, added it into an actor blueprint.
2. Saved and compiled.
3. Deleted macro and did an UNDO - saved
4. BPs where this macro is added causing this error when saving:  
Can’t save …/…/…/…/…/…/UnrealEngine/Test/Content/Test/NewBlueprint.uasset: Graph is linked to private object(s) in an external package.  
External Object(s):  
NewMacro\_0

If i get this error due to modified or just saved C++ functions that I am using for Blueprints, i just refresh BP nodes.  
But this did not work. Refreshing nodes of macro BP graph did not work as well.  
So what i tried next:

1. Deleting Macro Node in BP, compile, save, add it back again. Save failed.
2. A **Duplicated** Macro in Library causes same issue, even when whole Macro Library is duplicated.

Recreating Macro worked around Crash-Issue and it works here as well but can cause a crash too^^.

1. NewMacroLibary (Actor), NewBlueprint (Actor) with NewMacro\_0 added. - save, **compile** , both windows still open.
2. Delete/Undo Macro
3. Save NewBlueprint fails
4. Delete and create (save) NewMacro\_0. **Compiling** of BP causes Editor Crash.
5. Problem gone - after opening editor of course.

In my project I accidentally deleted macro when failing to mark a reroute node. I am not surprised that an undo can cause issues and maybe those issues are already fixed. But a delete confirmation message when macro is in use, would be nice 🙂 I created a new macro and copied graph and deleted few macro nodes in de BPs (therefore I had no crash at all)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_33800a51](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_33800a51](https://forums.unrealengine.com/u/anonymous_user_33800a51)\
**Post date:** [September 9, 2015, 9:03pm UTC](https://forums.unrealengine.com/t/undo-deleted-macro-causes-cant-save-graph-is-linked-to-private-object-s-in-an-external-package-of-bps/331212/2 "2015-09-09T21:03:42Z")

</div>

Hey Marooney,

Thanks for report! I was able to reproduce this save error in 4.8.3, 4.9.0, and our main internal build. I’ve created a bug report for issue (UE-20922), and I’ll post here when I see any update. Thanks again!
