Common Xero Errors and Warnings


#1

Below are the common errors and warnings you might encounter while working with Stock&Buy and Xero:

:warning:
Payment for SALE_ORDER not synced to Xero.
The corresponding invoice XERO_INVOICE is not Approved (current state is Draft)

Meaning: A Xero invoice must be approved so Stock&Buy can attach a payment to it.

How to fix: Approve the invoice in Xero. If you want to have Stock&Buy automatically do this for you then please change the invoice sync status to Approved under Integrations -> Xero integration settings -> Advanced settings


:warning:
Payment for SALE_ORDER not synced to Xero.
The corresponding invoice XERO_INVOICE is not Approved (current state is Submitted)

Meaning: A Xero invoice must be approved so Stock&Buy can attach a payment to it.

How to fix: Approve the invoice in Xero. If you want to have Stock&Buy automatically do this for you then please change the invoice sync status to Approved under Integrations -> Xero integration settings -> Advanced settings


:warning:
Payment for ORDER_NUMBER not synced to Xero.
The corresponding invoice LINK_TO_XERO_INVOICE is already Paid in Xero

Meaning: Stock&Buy tried to attach a payment to an invoice in Xero but the invoice is already marked as Paid in Xero.

How to fix: This warning is safe most of the time and is only meant to let you know that a payment has not been synced because the invoice is already Paid. You might want to double check the payment in Xero to make sure it is correct.


:warning: Could not change ORDER in Xero (INVOICE LINK) as it is locked.
Current bill status is Authorised

Meaning: Stock&Buy tried to update an order in Xero but it failed as the invoice/bill is locked. Invoices and Bills which are approved in Xero cannot be changed.

How to fix: As the invoice / bill is locked in Xero, any updates should be performed directly in Xero.


:no_entry:
Could not sync closed orders to Xero: Account code ‘CODE’ is not a valid code for this document.

Meaning: Stock&Buy failed to push a journal entry (either a COGS or SOH) to your Xero file.

How to fix: Make sure the COGS and SOH accounts under Integrations -> Xero integration settings are assigned to existing Xero ledger accounts and are correct.


:no_entry:
Could not push ORDER_ID to Xero.
oauth_problem=token_rejected&oauth_problem_advice=The%20access%20token%20has%20not%20been%20authorized%2C%20or%20has%20been%20revoked%20by%20the%20user

Meaning: Stock&Buy failed to sync data to Xero as the authentication failed.

How to fix: Stock&Buy keeps a list of orders which failed to sync and retries the sync operation every hour.
All you need to do is uninstall then reinstall the Xero integration for the missed orders to sync.
(Your might need to take a screenshot of the installation settings before uninstalling just in case you need to remember what ledger accounts where used)


:no_entry: Could not push payment for SALE_ORDER_ID to Xero.
You must specify and Account code or Account ID for the payment, Account could not be found

Meaning: Stock&Buy failed to sync a payment to Xero as the linked ledger account does not have a code defined.

How to fix: Log into your Xero account and set the payment account code. Once done, go to Stock&Buy and make sure the payment ledger account has a valid account code assigned to it.


:no_entry: Could not sync inventory adjustments to Xero: You cannot save this transaction using an inventory account type

OR

:no_entry: Could not sync closed orders to Xero: You cannot save this transaction using an inventory account type

Meaning: Stock&Buy failed to sync either adjustments or closed orders to Xero journals as the linked ledger account is reserved and cannot be used for such transactions (this usually happens with the Inventory ledger account in Xero which is reserved)

How to fix: Ensure the Stock On Hand, Cost Of Goods Sold and Adjustments are linked to accounts which are not of type Inventory.


:no_entry: Could not push PURCHASE_ORDER_ID.
An unexpected HTTP response was returned while performing OAuth operations

Meaning: Stock&Buy failed to sync a purchse order to Xero. This error is caused by a Xero outage.

How to fix: This error is caused by a Xero outage, Stock&Buy will keep trying to sync data every hour until Xero is back and the error will automatically get resolved.


:no_entry: Could not push payment for SALE_ORDER to Xero.
Account type is invalid for making a payment to/from

Meaning: Stock&Buy failed to sync a payment to Xero.

How to fix: The xero payment account used must be a either a bank account or a ledger account for which the “Enable payments to this account” option is ticked on. Please check out the Xero Integration Setup guide for more information.


:no_entry: Could not push SALE_ORDER to Xero.
The document date cannot be before the period lock date, currently set at XERO_ACCOUNT_LOCK_DATE, Invoice not of valid status for modification, This document cannot be edited as it has a payment or credit note allocated to it.

Meaning: Stock&Buy failed to send an update of a sale order to Xero.

How to fix: Please review your organization settings with your accountant. You can also take a look at this Xero help article on working with lock dates.


:no_entry: Could not push TRANSACTION to Xero.
Tax rate must be Active.

Meaning: Stock&Buy failed to send a transaction (can be an adjustment, purchase order, sale order or a credit note) to Xero. This error occurs when a previously synced tax rate has been deleted in Xero.

How to fix: Please create a new tax rate within Stock&Buy and use that instead of the one being used in the transaction which failed to sync through. If the transaction cannot be edited then please contact us.


Xero tax rate issue