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

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)

  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):

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 :slight_smile: I created a new macro and copied graph and deleted few macro nodes in de BPs (therefore I had no crash at all)

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!