Drag usd file to the scene, it shows "can not reference omniverse.....as it has no default prim."

I saved a usd file in houdini to localhost and when I try to drag this file in omniverse to the viewport, omniverse says can not reference omniverse… .as it has no default prim

Open the file directly in composer and then assign a default prim first. Then save. Then try again.

It works, thank you so much!

Great thanks

Hello, Is there a way to do this via the python API?

Let me ask

Usd.Stage.SetDefaultPrim or for a layer layer.defaultPrim = "Whatever"