Can not reconcile line not valid

some times when we try to reconcile we face the msg_reconciliation_line_not_valid that should only be raised i if line.state != ‘valid’: (move.py) but the line we want to reconcile are valid.

how ca we find what we are doing wrong ?

Just debug to see from where the invalid line comes from.