SmartSync can occasionally fail to upload invoices from SmartSoft Invoice with the following message:
"Invoice '447443' failed to upload to Zahara Total number of lines in table doesn't match total on invoice table: 12/04/2019 at 17:12"
The main cause of this issue is when a user deletes the empty "New" line in SmartSoft Invoices before exporting. By removing the line, the line above becomes the "New" Line. This causes the line item to be missed on export.
For reference, this is the correct format of the Items or VAT SUMMARY window:
This is the incorrect format, that will cause this error in SmartSync:
If you have already exported a number of invoices and they have this issue, you will need to reprocess them. This can either be done in SmartSoft Invoices by loading the invoice back up again, or from within SmartSync.
Find the invoice in the SmartSync Log, tick and edit it. You will see the line items that have been exported:
You can add the missing line and then SmartSync will attempt to push the invoice up on next run. If you need to see the invoice to find the detail of the missing line, you can you the "Files" tab to see the pdf of the invoice: