Depending on the active passes in a scene, the render layers node in the respective compositor node tree will have different sockets.
Because of this, the scene is verified to have these passes, and if it does, the import is expected to succeed.
However, it is annoying to set up the scene to meet the requirements.
This could probably be automated.