# Graph is linked to external private object when using custom class

**URL:** <https://forums.unrealengine.com/t/graph-is-linked-to-external-private-object-when-using-custom-class/383239>\
**Category:** Blueprint\
**Tags:** error, unreal-engine, external-reference, Blueprint, CPP, question\
**Created:** [January 28, 2017, 5:50pm UTC](https://forums.unrealengine.com/t/graph-is-linked-to-external-private-object-when-using-custom-class/383239 "2017-01-28T17:50:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thorwin99](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Thorwin99](https://forums.unrealengine.com/u/Thorwin99)\
**Post date:** [January 28, 2017, 5:50pm UTC](https://forums.unrealengine.com/t/graph-is-linked-to-external-private-object-when-using-custom-class/383239/1 "2017-01-28T17:50:08Z")

</div>

I created a custom C++ class actor and using a class reference for it in my Player BP. Everything is fine until I create the variable to hold the class. Then when i want to save it it says

> Can’t save  
> …/…/…/…/…/…/Users/Thorwin/Documents/Unreal  
> Projects/Project/Content/Blueprints/PlayerShipPawn.uasset:  
> Graph is linked to private object(s)  
> in an external package. External  
> Object(s): /Engine/Transient Try to  
> find the chain of references to that  
> object (may take some time)?

The code for my custom class header file:

```
#pragma once

#include "GameFramework/Actor.h"
#include "SmallShipClass.generated.h"

UCLASS()
class PROJECT_API ASmallShipClass : public AActor
{
	GENERATED_BODY()
	
public:	
	// Sets default values for this actor's properties
	ASmallShipClass();

	// Called when the game starts or when spawned
	virtual void BeginPlay() override;
	
	// Called every frame
	virtual void Tick( float DeltaSeconds ) override;

	UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Ship Data")
	FString Name;
	
};

```

---

<div class="post-metadata">

**Author:** ![MonsOlympus](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/monsolympus/32/619062_2.png) [@MonsOlympus](https://forums.unrealengine.com/u/MonsOlympus)\
**Post date:** [January 29, 2017, 1:16am UTC](https://forums.unrealengine.com/t/graph-is-linked-to-external-private-object-when-using-custom-class/383239/2 "2017-01-29T01:16:45Z")

</div>

Isnt Name already declared for all Objects?

---

<div class="post-metadata">

**Author:** ![Thorwin99](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Thorwin99](https://forums.unrealengine.com/u/Thorwin99)\
**Post date:** [January 29, 2017, 3:30pm UTC](https://forums.unrealengine.com/t/graph-is-linked-to-external-private-object-when-using-custom-class/383239/3 "2017-01-29T15:30:07Z")

</div>

Ok i found out, that it isnt that class which causes the problem. It is a non-public BPFuctionslibrary
