This error is caused by the document type being changed after the smart extract or map is applied to the invoice. As such, It is attempting to process using the wrong smart extract or map.
To fix this, you will need to return the invoice all the way to Processing and then re-process the invoice.
