# Subsystem function call failure

**URL:** <https://forums.unrealengine.com/t/subsystem-function-call-failure/621245>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [August 4, 2022, 11:24am UTC](https://forums.unrealengine.com/t/subsystem-function-call-failure/621245 "2022-08-04T11:24:45Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![YB\_Wertolet](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/yb_wertolet/32/558511_2.png) [@YB\_Wertolet](https://forums.unrealengine.com/u/YB_Wertolet)\
**Post date:** [April 4, 2024, 11:33am UTC](https://forums.unrealengine.com/t/subsystem-function-call-failure/621245/5 "2024-04-04T11:33:24Z")

</div>

The solution to this issue was found by **Sebastian Kolbu**

First of all `UCLASS(Abstract)` was added to prevent the C++ implementation from being instantiated.  
The subsystem was not being picked up properly for asset scan. This was solved by going “Project Settings” → “Game” → “Asset Manager”, then adding a new entry to the `Primary Asset Types To Scan` . Just referencing the asset seemed to do the trick for me.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/b/e/bbe479cbf1dba0c787dcd60a2e429c8cb8130499.png)

_Exactly what subsystem instance we got prior to this, I don’t know. For some reason it would be a valid object to operate on, yet the methods returned nothing (even after locally changing the C++_ `GetMyString` _to default implementation_ `return TEXT("C++")`_)._

```auto
FString UMyGameInstanceSubsystemCpp::GetMyString_Implementation() const
{
	return TEXT("C++");
}

```

In the screenshot (Standalone) you can see that I am printing two things: BP and C++. This is done by explicitly getting the BP version of the Subsystem, as well as the C++ version. If set up properly, since the C++ version is abstract, it will return the BP version (which should be the only instantiated one). So now regardless of which type I am trying to get, I am given the BP

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/b/b/dbb83db201fdf77e30f03cde14afb82afb3f0a8c.png)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/c/9/9c94cca49f6ada15a598088853db84e257ed7df8.png)

---

_[View the full topic](https://forums.unrealengine.com/t/subsystem-function-call-failure/621245)._
