ERP 9 apply debit memo

I am trying to apply a debit memo. I have rejected the parts, have a debit memo and an AP invoice. When I use AP>General>Apply Debit Memo / Prepayment, and enter the invoice #, it says “Not a valid invoice.”

Am I in the wrong menu option?