Information flows from your federal return to your state return. If you have two state returns to prepare, you need to prepare the non-resident state first. And...you cannot e-file a state return unless the federal return has been e-filed and accepted.