Cannot save Editor Utility Widget when "Get Levels" node is in graph

Both in the Editor Utility Widget and Editor Utility Blueprint, every time i add the “get levels” node to the graph, it cannot save. I can compile, and run some code, the node works but saving fails. Even if the node is disconnected from the exec chain, it still cannot save. But as soon as I delete the node, I can save again.

I need to turn off and on select levels via the widget bp

The reason this fails to save is because there’s a reference to a level package, if you directly set the World input (ie using the asset picker to select a level from the browser).

Instead use Unreal Editor Subsystem > Get Editor World and link that into the input of Get Levels.