Royalty income is reported on schedule E, not schedule D. Are you certain that you entered the form correctly? If the software thinks this is a sale it may have been entered into the incorrect area.
Under wages and income you need to scroll down to 'Rental Property and Royalties' and enter any royalties received in that section.
@jenniferldoll
**Say "Thanks" by clicking the thumb icon in a post
**Mark the post that answers your question by clicking on "Mark as Best Answer"