Uobject data fails to construct Uobject properly

I have basically made a spatial inventory system that uses Uobjects as the base data storage and so each item has a Uobject constructed specifically for that. Now this is all good.

I then made a crafting system that basically works like the resi games and two items can be selected which are then checked by a data Table which has recipes and then produces that item.

Now the issue is that when I use the “construct object from class” function to spawn the Uobject, it does not work properly. Basically, i refresh the constructor by making the base object class as None and then setting it back, it starts working but when I restart the client, it doesn’t work anymore.

I really need help. This is the craft function in question.

ISSUE WAS FIXED:

The solution is posted below: [Seperating the Structure and introducing it after the object is created seems to have solved the bug.