The error messages below are specific to Xero
If you have a problem transferring invoices from MagManager to Xero, A failed transfer message may appear on screen or you can check the API logs for details of the transfer error.
You can access the API logs by going to the main settings page > Under Settings > Select API Logs > You can sort the order by clicking on the up/down arrows in the column headers.
1 - The PhoneNumber field cannot be more than 50 characters long.

Cause: There are too many character in the phone number field.
Solution: Check the phone number field for the client on both the client Details tab and also on the Contacts tab. It's likely someone has added additional text into one of these fields. Remove the additional text and save. Try transferring the invoice again.
2 - Invoice not of valid status for modification

Cause: You are trying to transfer an invoice as draft when it has already been transferred and approved in Xero. Or an invoice with that number has already been created in Xero.
Search your Xero account for the invoice number.
Solution: If the invoice number already exists in the name of another client (ie you raised an invoice directly in Xero) you will need to cancel the invoice in MagManager and raise the invoice again which will generate a new invoice number. The new invoice will then transfer to Xero.
3 - Error code 500
Cause: Error code 500 is a Xero issue.
Solution: if you view their help it recommends clearing your cookies and cache:
https://central.xero.com/s/article/Error-message-404-and-500-in-Xero
https://central.xero.com/s/article/Clear-Cookies-and-Cache#Web
Check the email fields on the client record to ensure you do not have an invalid entry. Ensure they all end in a valid form eg .co.uk, .com etc.
Also try disconnecting MagManager from Xero and then reconnecting.
4. Connected to null
Cause: When opening the invoicing screen the message across the top flashes across 'Connected to null'. This indicates you are not connected to your Xero account. Meaning you won't be able to transfer invoice from MagManager to Xero.
Solution: Check there has been no changes to the user name and password on the Xero account. Next open the MagManager settings page > Under Account > Select Xero - try disconnecting and reconnecting.

Open any old invoice and click on the blue View in Xero button. If you see the 'Sorry, something went wrong' screen, check the Error code at the bottom if it says 500, this is a Xero issue and you need to follow their instructions above at No3 for error code 500.

As this is likely a local issue on your computer, to isolate the issue we recommend you have another Xero user on your MagManager account try transferring an invoice using their computer and login. If that works then try your logins on another device to see if that works.
5 - You have reached the limit of invoices you can approve

Cause: You have signed up for the Xero starter package with a capped allowance of 20 invoices per month. (For example invoices from MagManager to Xero). Once you have hit your limit for the month you will receive this error message - 'You have reached the limit of invoices you can approve.'
Solution: You need to upgrade your Xero package to resolve this.
6- Website Must Be Valid

Cause: This error is returned if the Customer Record in Xero has a non-valid Website.
New validation has been added to the Customer Contact which could allow a invalid URL (previously saved) to stop a record from being created with this record.
Solution: To correct this error, find the customer contact in Xero for the invoice causing the error. You will note that the website is not valid.

Correct the website in Xero by either removing or updating the record > Click Save.
The record will now sync without further error. Return to MagManger and Transfer the Invoice to Xero.
7- Account code '200' has been archived, or has been deleted. Each line item must reference a valid account.

Cause: Account code 200 is the default Sale Account code in Xero - check your chart of accounts in Xero for this account.
This error normally occurs when your Xero account is set up with account codes different to the Xero default. When no account codes are specified in MagManager, Xero expects to put the sales into account 200. When that account doesn't exist you get this error message.
Solution: If you use a different Account code in Xero you will need to update this in the publication settings. Before doing that first check you have syncd your accounts codes from Xero to MagManager - Getting Started: Linking MagManager to Xero, scroll down to the section 2 follow the instructions to sync account codes.
Next, go to the main settings page in MagManager > Under Publications & Bookings > Select Publication > Select each publication name in turn > Select the Defaults tab > Check that the correct Account Code is being used > Save any changes.
Also if the item on the invoice is a Miscellaneous Sales Item, check that an account code has been set up correctly, it must include an Account Code which you select from the drop-down box. (The options in the drop-down box are the accounts codes from your Xero account.)

8- To update fields on a paid invoice line item, you must supply a LineitemID

Cause: You are trying to transfer an invoice from MagManager that has already been paid in Xero.
Solution: Xero won't allow the update of paid invoices

