# Can't save blueprint with custom component. Graph is linked to private object(s) in an external package

**URL:** <https://forums.unrealengine.com/t/cant-save-blueprint-with-custom-component-graph-is-linked-to-private-object-s-in-an-external-package/300363>\
**Category:** Blueprint\
**Tags:** unreal-engine, external-reference, Blueprint, question, CPP\
**Created:** [December 2, 2014, 3:14pm UTC](https://forums.unrealengine.com/t/cant-save-blueprint-with-custom-component-graph-is-linked-to-private-object-s-in-an-external-package/300363 "2014-12-02T15:14:43Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![BlackFangTech](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BlackFangTech](https://forums.unrealengine.com/u/BlackFangTech)\
**Post date:** [December 2, 2014, 3:14pm UTC](https://forums.unrealengine.com/t/cant-save-blueprint-with-custom-component-graph-is-linked-to-private-object-s-in-an-external-package/300363/1 "2014-12-02T15:14:43Z")

</div>

Can’t save …/…/…/…/UnrealProjects/SixenseAPI\_Project/Content/Weapons/AssaultRifle/BurstRifle/BurstRifle.uasset: Graph is linked to private object(s) in an external package.  
External Object(s):  
Item\_Grip  
BurstRifle\_C\_1  
PersistentLevel  
World\_2  
/Engine/Transient  
…

Try to find the chain of references to that object (may take some time)?

I have written code for a custom component in my game module. Item\_Grip is one such component. My actor adds this component in its constructor, specifying itself as the outer. However, if I try to make a blueprint of this class and save it, it get the error. I would really prefer to make blueprints of this class rather than several subclasses in code.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_8943aceb](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_8943aceb](https://forums.unrealengine.com/u/anonymous_user_8943aceb)\
**Post date:** [February 2, 2015, 3:20pm UTC](https://forums.unrealengine.com/t/cant-save-blueprint-with-custom-component-graph-is-linked-to-private-object-s-in-an-external-package/300363/2 "2015-02-02T15:20:24Z")

</div>

I’m having the same issue. Have you been able to find a solution? I get this error when tryint to save a level in which I spawned a custom actor that contains my custom object (a UCanvasRenderTarget2D subclass).

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_8943aceb](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_8943aceb](https://forums.unrealengine.com/u/anonymous_user_8943aceb)\
**Post date:** [February 2, 2015, 3:34pm UTC](https://forums.unrealengine.com/t/cant-save-blueprint-with-custom-component-graph-is-linked-to-private-object-s-in-an-external-package/300363/3 "2015-02-02T15:34:34Z")

</div>

To answer my own question, I had to create the canvas object like this:

RenderTarget2D = ObjectInitializer.CreateDefaultSubobject(this, TEXT(“RenderTarget”));

Instead of this:

RenderTarget2D = (UCanvasRenderTarget2D \*)UCanvasRenderTarget2D::CreateCanvasRenderTarget2D(this, UCanvasRenderTarget2D::StaticClass(), 256, 256);

Now I can save my level.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_8943aceb](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_8943aceb](https://forums.unrealengine.com/u/anonymous_user_8943aceb)\
**Post date:** [February 2, 2015, 3:45pm UTC](https://forums.unrealengine.com/t/cant-save-blueprint-with-custom-component-graph-is-linked-to-private-object-s-in-an-external-package/300363/4 "2015-02-02T15:45:20Z")

</div>

And now the editor crashes on launch and can’t load my level…

MachineId:7B1410024B5F8A1172BFD092EB2F8DC9  
EpicAccountId:0c439985bc904ae8aa673c0929588869

Unknown exception - code 00000001 (first/second chance not available)

Assertion failed: !GIsRoutingPostLoad [File:D:\BuildFarm\buildmachine\_++depot+UE4-Releases+4.7\Engine\Source\Runtime\CoreUObject\Private\UObject\ScriptCore.cpp] [Line: 799]  
Cannot call UnrealScript (CanvasRenderTarget2D //Game//Maps//Example\_Map.E

KERNELBASE + 24684 bytes  
UE4Editor\_Core + 3140052 bytes  
UE4Editor\_Core + 1614600 bytes  
UE4Editor\_Core + 1494994 bytes  
UE4Editor\_CoreUObject + 1478760 bytes  
UE4Editor\_Engine + 16702051 bytes  
UE4Editor\_Engine + 2233882 bytes  
UE4Editor\_Engine + 9088120 bytes  
UE4Editor\_CoreUObject + 934894 bytes  
UE4Editor\_CoreUObject + 1386885 bytes  
UE4Editor\_CoreUObject + 1467036 bytes  
UE4Editor\_UnrealEd + 2831250 bytes  
UE4Editor\_UnrealEd + 2761581 bytes  
UE4Editor\_UnrealEd + 2678685 bytes  
UE4Editor\_UnrealEd + 6364224 bytes  
UE4Editor\_UnrealEd + 3235445 bytes  
UE4Editor\_UnrealEd + 3234600 bytes  
UE4Editor\_UnrealEd + 6585037 bytes  
UE4Editor\_UnrealEd + 6358174 bytes  
UE4Editor!GuardedMain() + 285 bytes [d:\buildfarm\buildmachine\_++depot+ue4-releases+4.7\engine\source\runtime\launch\private\launch.cpp:123]  
UE4Editor!GuardedMainWrapper() + 26 bytes [d:\buildfarm\buildmachine\_++depot+ue4-releases+4.7\engine\source\runtime\launch\private\windows\launchwindows.cpp:126]  
UE4Editor!WinMain() + 249 bytes [d:\buildfarm\buildmachine\_++depot+ue4-releases+4.7\engine\source\runtime\launch\private\windows\launchwindows.cpp:202]  
UE4Editor!\_\_tmainCRTStartup() + 329 bytes [f:\dd\vctools\crt\crtw32\dllstuff\crtexe.c:618]

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2a0e1bb5](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2a0e1bb5](https://forums.unrealengine.com/u/anonymous_user_2a0e1bb5)\
**Post date:** [February 24, 2015, 1:51am UTC](https://forums.unrealengine.com/t/cant-save-blueprint-with-custom-component-graph-is-linked-to-private-object-s-in-an-external-package/300363/5 "2015-02-24T01:51:57Z")

</div>

Have you found a workaround yet? i have the exact same problem.

edit: the solution that worked for me is to go back to your original code except mark the canvas object as UPROPERTY(Transient) which will stop it interfering with the save process.

the bad news is the map you saved it on as a subobject is now broken and you’ll have to start again. You could possibly recover the map but that’s beyond me.

---

<div class="post-metadata">

**Author:** ![Daekesh](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/daekesh/32/918652_2.png) [@Daekesh](https://forums.unrealengine.com/u/Daekesh)\
**Post date:** [February 24, 2015, 2:22am UTC](https://forums.unrealengine.com/t/cant-save-blueprint-with-custom-component-graph-is-linked-to-private-object-s-in-an-external-package/300363/6 "2015-02-24T02:22:34Z")

</div>

Your level is probably unrecoverable (without engine modification.) However, setting the uproperty to transient and instantiating it in post init props or begin play will fix your issues for future maps.

---

<div class="post-metadata">

**Author:** ![undercover](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@undercover](https://forums.unrealengine.com/u/undercover)\
**Post date:** [March 4, 2015, 3:18pm UTC](https://forums.unrealengine.com/t/cant-save-blueprint-with-custom-component-graph-is-linked-to-private-object-s-in-an-external-package/300363/7 "2015-03-04T15:18:57Z")

</div>

I have the same problem. Seems like the level and blueprint systems are very fragile. This will not be the first time our content team will have to checkout older versions and try to recover as much as possible. Anyhow thanks for sharing!
