Can't save due to "Graph is linked to external private object"

The function looks correct. I’m sorry but there appears to be nothing left that I can do without repro steps that continue to reproduce this issue.

  • Have you attempted to reproduce the issue in the original project you supplied after making the code change?
  • In your current project, have you examined what the Outer of the created objects are and confirmed that those UObjects are in fact the ones being referenced by the Blueprint?
  • Does this issue only occur after PIE?

Something that is coming in 4.9 that may help you resolve this is a new node exposed for Blueprints which allows you to create generic UObjects safely and I recommend to use that to get around these problems.