Please check that the saved invoice, factura.txt is complete You could compare it with a previous saved file _Originally posted by @reingart in https://github.com/PyAr/pyafipws/pull/71#discussion_r682234516_