If your completed Unleashed transactions are failing to export to Xero or if there have been any syncing issues for your Supplier and Customer records, use the Connection Log and Failed Exports pages to identify and fix common errors that can occur.
Review failed exports to Xero
There are two ways to review the errors that can occur when data fails to sync successfully between Xero and Unleashed:
Review the Xero integration's Connection Log for errors or timestamps indicating when disconnection events occurred.
Click on the View Failed Exports link at the bottom of your Unleashed page.
π€ Tip: It's best practice to periodically review the Xero integration's Connection Log and Export Data tab and check that transactions have been exported successfully. Variances are easier to resolve when reviewed often.
Xero's Connection Log
You can review the Connection Log tab in your Xero integration to further investigate and resolve any issues that may have occurred whilst Unleashed attempted to export your transactions or sync your Suppliers and Customers with Xero.
From the main menu, navigate to Integration > Integration Store > Xero.
Select the Connection Log tab.
All sync updates from the previous 7 days will be listed in date order (newest first) in the grid below.
Filter the connection log's grid using the following filter options:
Log Level: Use the drop-down menu to filter the grid's log by type: All, Error, or Info.
Search: A free text field that will filter the log's details by the specific text entered.
View Failed Exports
When a transaction or record fails to export or sync with Xero, it will be highlighted in the blue "Xero Export Queue" banner that displays at the bottom of your Unleashed pages:
Click on the View Failed Exports link, available in the "Xero Export Queue" banner.
βYou will be redirected to the Manage Xero Queue page, which will display:
Current Xero Queue: A list of exports currently in process of exporting to Xero.
Failed Xero Exports: A list of exports that have failed to sync.
Within the Failed Xero Exports grid, each listed item will display the following information:
Failed Export: A description of the type of transaction or record attempting to export.
Exported Item: The transaction's, Customer's or Supplier's reference number (e.g. the transaction's order number or the customer's name).
Export Error: A description explaining why the transaction or record failed to export successfully.
Action Required: A description of the steps needed to resolve the error.
Export: A hyperlink that can be selected to re-attempt exporting the failed item.
Delete: A hyperlink that will remove the failed export from the queue.
Alternatively, click the Export All or Delete All hyperlinks to bulk export or delete items from the failed export list.
Common Xero Integration Errors and Solutions
When working with Unleashed and Xero integration, you may occasionally encounter errors that prevent transactions or data from exporting correctly to Xero. This section provides common troubleshooting steps to resolve such issues efficiently. If you continue to experience errors after following these steps, contact the support team.
Period Lock Date
Error message example: The document date cannot be before the period lock date, currently set at XX-XXX-20XX. The document date cannot be before the end of year lock date, currently set at XX-XX-20XX
Cause: The date the transaction is attempting to export is after the End of Year Lock Date set in Xero.
Solution: You will need to refer back to your Xero account and unlock the End of Year Lock Date, then re-export from Unleashed.
This error cannot be resolved in Unleashed directly.
Rate limit exceeded
Error message example: Response status code does not indicate success: 500 (Internal Server Error)
Cause: The number of transactions or records attempting to export and sync with Xero has exceeded its daily rate limit of 5000 requests.
Solution: The daily rate limit is a limitation set by Xero's API and cannot be extended by Unleashed. To resolve, wait 24 hours until the daily limit has reset, and then re-attempt exporting them from Unleashed.
For more details on Xero's integration limits, see Xero Rate limits.
Account code invalid
Error message example:
Account Code XXX is not a valid Code for this document.
Account code or ID must be specified.
Cause: The account has been archived or no longer exists in Xero.
Solution: Contact the Support team and request an account remap for the record to an existing account.
Account and Tax are invalid
Error message example: Account must be valid, Tax Rate must be valid.
Cause: One of the product lines, or the sum total value of the exporting journal transaction, is less than 0.005.
Solution: There is no fix for this error, as Xero is only able to import journals with a value of 0.01 or greater. Journals with a value of 0.005 or less are rounded to a value of 0.00 and therefore negligible to Xero's accounts. We therefore suggest deleting the error from your Failed Exports Queue.
Alternatively, if you have multiple lines of value on the same order that require exporting to Xero, credit the whole sales order and raise a new one. If you need to include the product which triggered the error, you would need to adjust its decimal value and/or discount it 100% if it is not something the customer pays for.
Please note: This workaround may not be suitable for all businesses.
Account Number already exists
Error message example: The Account Number already exists. Please enter a different Account Number.
Cause: The Customer Code already exists as an Account Number in Xero but the contact details don't match.
Solution:
Go to Integration > Xero > Configuration,
On Export Customers click Configure
Untick "Send Customer Code to Xero account number".
Click Save Configuration.
Alternatively, remove the Account Number from Xero's contact.
Unmapped accounting tax
Error message example: Export of XXX to Xero Invoices API failed - Details: [TaxCode XXX] is not mapped to an accounting tax.
Cause:
The Tax Code on the transaction is not mapped with a Tax set up in Xero.
The tax being used in the transaction is selected as both a Purchase and Sales tax.
The Customer record does not have Taxable enabled.
Solution:
Go to Settings > System > Taxes.
Confirm all taxes have an option selected in the "Accounting Tax" dropdown menu. If the field is empty and the appropriate tax isn't listed to select, create the tax in Xero.
Confirm all taxes only have either "Purchase" or "Sale" ticked. If the tax being used has both ticked, create a new tax for each transaction type.
Go to the Customer or Supplier's record and confirm the "taxable" setting is enabled.
If the transaction is already completed and the tax in use cannot be changed, contact the Support Team.
Xero validation error
Error message example: Export of XXX to Xero Contacts API failed - Details: Xero validation error.
Cause: The Customer or Supplier's GST or VAT Number is invalid.
Solution: Update the Customer or Supplier's GST or VAT Number in Unleashed and ensure it's in a valid format, matching the country specified in the contact's settings in Xero, then re-export from Unleashed.
Archived contact
Error message example: The specified contact details matched an archived contact. Archived contacts cannot currently be edited via the API.
Cause: The previously mapped contact in Xero has been deleted, merged or archived in Xero, disrupting it's sync with Unleashed.
Solution:
If the contact was archived in Xero, go to Xero's contact and un-archive it, then re-export from Unleashed to re-establish a successful mapping. For more details, see Archive or restore contacts.
If the contact was merged with another contact in Xero, obtain the merged contact's URL from Xero and request that the contact be re-mapped with the support team.
Contact email address is invalid
Error message example: API failed - Details: * Email address must be valid.
Cause: The email address for the Supplier or Customer contact is not given in a valid format in Unleashed.
Solution: Update the Supplier or Customer contact in Unleashed to ensure:
Only one email address is provided per contact.
No commas, spaces or additional characters are included in the email field, other than the email address.
The email address is in a valid format.
Duplicate contact name
Error message example: The contact name XXXX is already assigned to another contact. The contact name must be unique across all active contacts.
Cause: The email address for the contact already exists under another contact in Xero.
Solution: All mapped contacts from Unleashed must be unique across all contacts (both Suppliers and Customers) in Xero. To resolve the error:
Update the email address and name for the contact in Unleashed to ensure it's unique.
Remove the existing email address for the contact in Xero if it's no longer used for them.
