How do I resolve Xero sync errors due to incorrect organization linkage?
Related Scenarios
- What to do when a Xero sync job fails with an account number error?
- How to re-authenticate Xero connection to select the correct organization?
Solution
If Xero sync or journal export fails with an error that an account number or account code was not found, one common cause is that the integration is authorized against the wrong Xero organization (for example, NZ instead of AU). Use this guide to reconnect and select the correct organization. If the intended account is missing in all Xero organizations, create or restore that account in the intended organization, or map to a valid existing account in Journal Account Mapping, then retry.
- Switch to the intended RevRec environment, then click Accounting.
- Open the Xero Journal Posting connection (Connect on the Accounting page, or Settings if that is the control on your site — confirm the live label before publish). Click Xero.
- Click Re-authenticate or Connect your data (confirm the live label) so Xero prompts you to sign in.
- Sign in to Xero and select the correct organization (for example, the AU organization, not the NZ organization).
- Return to RevRec and confirm the linked Xero organization is the intended one. Do not close an accounting period or post journals until that check passes.
The Xero connection shows the intended organization, and a later journal export no longer fails with account number or account code not found for that wrong-org case.
Important Notes
- Re-authentication does not correct journals already posted to the wrong Xero organization. If that already happened, stop retrying this flow and contact RevRec Support. See Journal Posting and Closing for deleting incorrect accounting entries, regenerating journals in RevRec, and reposting.
- If the error continues after the correct organization is linked, confirm the account exists in that Xero organization and that journal account mapping points at a valid account, or contact RevRec Support.
Was this article helpful?