This error indicates that there is an invoice in Xero with the same invoice number.
You can resolve this error, by changing the invoice number to a number that doesn’t already exist in Xero.
You’ll then need to try publishing your document once more, despite the error message still showing.