> ## Documentation Index
> Fetch the complete documentation index at: https://support.servicem8.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Resolving Xero invoice number conflicts

> Learn about resolving Xero invoice number conflicts in ServiceM8.

When you send an invoice for approval, the invoice number must be unique. If the invoice number already exists in Xero, you will get an error icon in **Invoicing > Awaiting Approval** alerting you that the invoice number must be unique.

[<img src="https://mintcdn.com/servicem8/VhOYCaHc3iieBfzZ/images/004-263-211-medium-2e47f83e-02c7-4960-abd8-b1bb64b93c51.png?fit=max&auto=format&n=VhOYCaHc3iieBfzZ&q=85&s=33dd0fd7a836b35019267a48c390a78a" alt="“Invoice # must be unique” error" width="855" height="272" data-path="images/004-263-211-medium-2e47f83e-02c7-4960-abd8-b1bb64b93c51.png" />](/images/004-263-211-2e47f83e-02c7-4960-abd8-b1bb64b93c51.png)

**To find the conflicting invoice in Xero:**

1. Go to **Xero Business > Invoices > All > Search**.
2. Select *Include Deleted & Voided*.
3. Enter the invoice number under *Enter Number, Reference, Contact or Amount*.
4. Click **Search**.

[<img src="https://mintcdn.com/servicem8/VhOYCaHc3iieBfzZ/images/004-263-213-medium-a6140557-da2c-4e98-98b6-4a6989299e33.png?fit=max&auto=format&n=VhOYCaHc3iieBfzZ&q=85&s=39487cece70694147bb41ff619294f38" alt="Searching for an invoice" width="855" height="342" data-path="images/004-263-213-medium-a6140557-da2c-4e98-98b6-4a6989299e33.png" />](/images/004-263-213-a6140557-da2c-4e98-98b6-4a6989299e33.png)

Once you find the invoice, verify the status on top. It could be *Draft*, *Awaiting Approval*, *Awaiting Payment*, *Paid*, *Voided*, or *Deleted*.

**If the invoice status is** ***Draft*** **or** ***Waiting Approval:***

1. Either delete the invoice by clicking **Invoice Options > Delete**, or change the invoice number and click **Save**.

[<img src="https://mintcdn.com/servicem8/VhOYCaHc3iieBfzZ/images/004-263-215-medium-aa7822b1-4f73-4ea3-9e9a-18a89073c888.png?fit=max&auto=format&n=VhOYCaHc3iieBfzZ&q=85&s=612a48d204fc770dc04dbd571e06d4ca" alt="Deleting an invoice" width="855" height="439" data-path="images/004-263-215-medium-aa7822b1-4f73-4ea3-9e9a-18a89073c888.png" />](/images/004-263-215-aa7822b1-4f73-4ea3-9e9a-18a89073c888.png)

**If the invoice status is** ***Awaiting Payment*** **or** ***Paid:***

1. Edit the invoice number by clicking **Invoice Options > Edit**.
2. Change the invoice number and click **Save**.

[<img src="https://mintcdn.com/servicem8/VhOYCaHc3iieBfzZ/images/004-263-217-medium-d11bf257-7d58-40fc-a272-489ae1a1e86d.png?fit=max&auto=format&n=VhOYCaHc3iieBfzZ&q=85&s=dc94d50885b76e61d506894648cc8eb5" alt="Editing an invoice number" width="855" height="416" data-path="images/004-263-217-medium-d11bf257-7d58-40fc-a272-489ae1a1e86d.png" />](/images/004-263-217-d11bf257-7d58-40fc-a272-489ae1a1e86d.png)

**If the invoice status is** ***Voided*** **or** ***Deleted:***

1. Click **Invoice Options > Copy** to copy it to a new invoice.

[<img src="https://mintcdn.com/servicem8/VhOYCaHc3iieBfzZ/images/004-263-228-medium-1a876500-706f-43ed-a0d7-27c4ccb99642.png?fit=max&auto=format&n=VhOYCaHc3iieBfzZ&q=85&s=b1bc40374ddd97d477b7a46614e37324" alt="Copying to a new invoice" width="855" height="411" data-path="images/004-263-228-medium-1a876500-706f-43ed-a0d7-27c4ccb99642.png" />](/images/004-263-228-1a876500-706f-43ed-a0d7-27c4ccb99642.png)

1. Go to **Invoicing > Awaiting Approval**.
2. Select the job, right-click, and click **Approve job(s) without sending to Xero**.

[<img src="https://mintcdn.com/servicem8/DebDv9kllgU2gG1R/images/004-263-230-medium-71f007ff-82c6-4d45-9499-1be5ff63671d.png?fit=max&auto=format&n=DebDv9kllgU2gG1R&q=85&s=1f7b9a050d25adae1a478e041e53afc7" alt="Approve jobs without sending to Xero" width="855" height="293" data-path="images/004-263-230-medium-71f007ff-82c6-4d45-9499-1be5ff63671d.png" />](/images/004-263-230-71f007ff-82c6-4d45-9499-1be5ff63671d.png)

**If, after trying the above options, you still need assistance:**

Contact ServiceM8 Support at [support@servicem8.com](mailto:%20support@servicem8.com) and request that the job number be changed so you can sync the invoice to Xero.

## Avoiding future invoice number conflicts

Follow these best practices to avoid future conflicts:

* If you need to void or delete an invoice then re-sync it, edit the invoice number first (for example, "102void").
* Creating an invoice in Xero rather than ServiceM8 can also cause an invoice number conflict. To resolve this issue, go to **Settings > Preferences > Invoicing > Xero > Xero invoice number** and select *Let Xero issue invoice number.*

## Related FAQs

* [In Invoicing > Awaiting Approval, why do I get an "invoice must be unique" error when approving to Xero?](/questions/jobs/invoicing-awaiting-approval-select-job-1223-click-approve-send-xero-get)
