Skip to main content

Error: 'Input string was not in a correct format.'

How to clear the error 'Input string was not in a correct format.'

Brian Carolan avatar
Written by Brian Carolan
Updated over a week ago

You are seeing the following error message after trying to publish an invoice.

Input string was not in a correct format.

This error can occur if an unknown character or symbol is included in an Invoice number, line item, reference, or description. Some accounts packages do not allow some characters. e.g: { } [ ] ' ~, among others, to be exported.

The eror can also occur because you haven't selected a default VAT for Sales and Purchases on the company's Integrate page.

Check for special characters

Open the invoice and delete any special characters from the extracted fields.

Check default VAT codes

Click Integrate on the Home page.

Make sure you've assigned a default VAT code for both:

  • Purchases VAT code

  • Sales VAT code

Purchases VAT code and Sales VAT code option in Integrate page.


After you've made these checks, republish the invoice.

Did this answer your question?