I recommend that you delete state A in your return, and then add and complete a non-resident state B tax return. As you go through the state B return you will be able to allocate different types of income to state B, you will allocate 100% of the gain (assuming there was one) on the sale of the second home located in state B. After you complete state B, then add and complete state A. This will ensure that you receive the proper credit for tax paid to another state on your state A return. You will then be able to e-file both state returns.
**Say "Thanks" by clicking the thumb icon in a post
**Mark the post that answers your question by clicking on "Mark as Best Answer"