This article explains what to do if you see a Xero export error message mentioning a lock date, 3MB limit, or an issue with the specified bank account.

Error: The document date cannot be before the period lock date

Another error message with the same cause and solution looks like this:

The cause:

This error comes up when an expense (or expenses) has a presentment date that falls within a locked period. This can happen when:

  • The Pleo expense was not exported in time (i.e., before the books were closed for the respective timeframe).

  • There is a discrepancy between the UTC timestamp of presentments versus the date of the purchase in your timezone. For example, a presentment from May 31st at 23:30 should go into the May books in Xero. However, Pleo will have stamped it as June 1st.

The solution:

Log into Xero and open the books for the specific date range (under Accounting - Advanced - Financial settings).

Error: The attachment must be less than 3MB

The cause:

Xero does not accept expenses with receipt attachments that are larger than 3MB.

The solution:

Replace the receipt attachment(s) with a smaller one in Pleo.

Error: The specified bank account details do not match a known bank account

The cause:

When you select the direct integration with Xero, the account names will automatically appear in Pleo (under Settings - Accounting - Setup). Two accounts are called “PLEO” and “PLEOBANK” and, if your organisation is using Pocket, a third account will be called “PLEOPOCKET:”

If someone changes or archives these account names (i.e., nominal codes) in Xero, the entire Pleo export will fail, and you will see the above error message.

The solution:

The nominal codes need to be active (not in the archived tab) and changed back to the original names:

Did this answer your question?