I was able to solve this issue by adjusting a few things:
1) Make sure that you select something for undeposited funds. It doesn’t say that this field is required, but it is
2) Make sure that the AR account matches with the AR account on the invoice that you are applying to. If these differ then this error will come up.