The following error messages are returned from MYOB AccountRight Live when interacting with their API. These messages are returned to Pest Register when there is an issue with syncing. These are sourced from the MYOB AccountRight Live developer portal.

Generic Errors:

GatewayTimeout:

  • Error Code: NA

  • Scenario: The API call has taken longer that time out limit.

  • Message: Connection to the API has timed out

  • Detail: Maximum call time is 120 seconds

RateLimitError:

  • Error Code: NA

  • Scenario: The number of API calls made per day has exceeded the limit.

  • Message: API key has exceeded the daily rate limit

  • Detail: Header: x-myobapi-key

DeveloperInactive:

  • Error Code: NA

  • Scenario: The API key is either inactive or has not been provided in the x-myobapi-key header.

  • Message: API key is missing or inactive

  • Detail: NA

SerializationError:

  • Error Code: 50

  • Scenario: Error converting value to type, ie: passing 'abcdef' to field of type boolean, passing 'xxxxx' as system GUID

  • Message: Error converting value [Error message returned from serializer]

  • Detail: NA

Required:

  • Error Code: 100

  • Scenario: Inserting and updating entities without including all required fields

  • Message: [Field] is required

  • Detail: NA

NotFound:

  • Error Code: 150

  • Scenario: Resource not found when passing a unique identifier for things like contact, account, taxcode, item, job

  • Message: [Error message returned from serializer]

  • Detail: NA

TransactionsCannotBeDeleted:

  • Error Code: 25003

  • Scenario: Deleting transactions where Company/Preferences element TransactionsCannotBeChangedMustBeReversed = true

  • Message: Transactions cannot be deleted and must be reversed

  • Detail: NA

DatePriorToBeginningOfFinancialYear:

  • Error Code: 25008

  • Scenario: Dated transactions prior to beginning of financial year

  • Message: Date cannot be prior to beginning of financial year

  • Detail: Date

IncorrectRowVersionSupplied:

  • Error Code: 111

  • Scenario: Occurs when the RowVerison is out of date when trying to make a PUT request.

  • Message: An Update operation requires the latest RowVersion for each of the existing entities being modified

  • Detail: NA

Item Invoice Errors:

UnitPriceNotValid:

  • Error Code: 12101

  • Scenario: Passing a negative UnitPrice

  • Message: UnitPrice must be a positive number

  • Detail: Lines[n].UnitPrice

UnitPriceNotValid:

  • Error Code: 12101

  • Scenario: ShipQuantity not supplied, UnitPrice is ZERO, Total is NON-ZERO

  • Message: UnitPrice must be a positive number

  • Detail: Lines[n].UnitPrice

InsufficientItemQuantity:

  • Error Code: 25002

  • Scenario: Item sale results in negative inventory

  • Message: Insufficient item quantity to complete transaction

  • Detail: Lines

Required:

  • Error Code: 100

  • Scenario: ShipQuantity is ZERO, UnitPrice NOT supplied, Total is NON-ZERO

  • Message: ShipQuantity is required

  • Detail: Lines[n].ShipQuantity

OrderConvertedToInvoice:

  • Error Code: 37001

  • Scenario: Cannot use Order with Status "ConvertedToInvoice" when converting order to invoice

  • Message: Order should be in open status to convert to an invoice

  • Detail: Order.UID

LayoutTypeMismatch:

  • Error Code: 37004

  • Scenario: Layout type mismatch on Order conversion

  • Message: Order and Invoice should be of the same layout type

  • Detail: Order.UID

InvoicePaid:

  • Error Code: 10001

  • Scenario: Invoice with payments applied

  • Message: Cannot delete Invoice with payment(s) applied

  • Detail: NA

CannotUpdateOrderOnExistingInvoice:

  • Error Code: 37006

  • Scenario: Cannot update Order.UID on existing Invoice

  • Message: Cannot update order on existing invoice

  • Detail: Order.UID

ValidationError:

  • Error Code: 1024

  • Scenario: Passing Total with more than 2 decimal places

  • Message: CommonRules_DecimalPrecision

  • Detail: Amount

ValidationError:

  • Error Code: 4339

  • Scenario: Passing Total with more than 2 decimal places

  • Message: SaleEventLine_ItemTotalAmountUnBalanced

  • Detail: Amount

Customer Payment Errors:

Required:

  • Error Code: 100

  • Scenario: No invoice passed in lines array.

  • Message: Invoices[n] is required

  • Detail: Invoices[n].UID

SystemCreatedTransaction:

  • Error Code: 224

  • Scenario: Delete customer payment on Order once it's converted to Invoice

  • Message: System created transaction cannot be changed or deleted

  • Detail: NA

DateInLockedPeriod:

  • Error Code: 25009

  • Scenario: Date falling within locked period setup in company preferences

  • Message: Date cannot be in locked period

  • Detail: Date

PaymentOnOrderConvertedToInvoice:

  • Error Code: 37005

  • Scenario: Delete system created transaction

  • Message: Cannot delete payment on an order that has been converted to an invoice

  • Detail: NA

Inventory Item Errors:

ValidationError:

  • Error Code: 4077

  • Scenario: Occurs when trying to modify the “ItemsPerBuyingUnit” and “ItemsPerSellingUnit” fields after the item has been used in a Sale or Purchase transaction.

  • Message: Inventory_EditNumberItemsPerSellingUnit_HasSales

  • Detail: NumberItemsPerSellingUnit:(SoldItem)

ItemLinkedToPurchases:

  • Error Code: 9001

  • Scenario: Change IsBought to false for an Item used on purchases

  • Message: Item linked to purchase transaction

  • Detail: IsBought

ItemLinkedToSales:

  • Error Code: 9002

  • Scenario: Change IsSold to false for an Item used on sales

  • Message: Item linked to sale transaction

  • Detail: IsSold

ItemWithJournalEntry:

  • Error Code: 9003

  • Scenario: Change IsInventoried to false for an Item with journal entries

  • Message: Item linked to Journal Entry

  • Detail: IsInventoried

ItemLinkedToSaleOrPurchase:

  • Error Code: 9004

  • Scenario: Item used in sale or purchase transaction

  • Message: Item linked to sale or purchase transactions

  • Detail: NA

ItemWithInventory:

  • Error Code: 9005

  • Scenario: Item with x number of items in Inventory

  • Message: Units of Item in inventory

  • Detail: NA

ItemWithInventoryTransaction:

  • Error Code: 9006

  • Scenario: Change IsInventoried to false for an Item with journal entries

  • Message: Item with Inventory transactions

  • Detail: NA

Required:

  • Error Code: 100

  • Scenario: ExpenseAccount.UID not supplied for Item with IsBought: True and IsInventoried: False

  • Message: ExpenseAccount is required when Item is Bought and NOT Inventoried

  • Detail: ExpenseAccount.UID

Required:

  • Error Code: 100

  • Scenario: CostOfSalesAccount.UID not supplied for Item when IsBought: False, IsSold: True and IsInventoried: True

  • Message: CostOfSalesAccount is required when Item is Sold and Inventoried

  • Detail: CostOfSalesAccount.UID

Required:

  • Error Code: 100

  • Scenario: ExpenseAccount.UID not supplied for Item with IsBought: True and IsInventoried: False

  • Message: ExpenseAccount is required when Item is Bought and NOT Inventoried

  • Detail: ExpenseAccount.UID

Required:

  • Error Code: 100

  • Scenario: CostOfSalesAccount.UID not supplied for Item when IsBought: True, IsSold: True and IsInventoried: Tru

  • Message: CostOfSalesAccount is required when Item is Sold and Inventoried

  • Detail: CostOfSalesAccount.UID

Required:

  • Error Code: 100

  • Scenario: IncomeAccount.UID not supplied for Item with IsSold: True

  • Message: IncomeAccount is required when Item is sold

  • Detail: IncomeAccount.UID

Required:

  • Error Code: 100

  • Scenario: AssetAccount.UID not supplied for Item with IsInventoried: True

  • Message: AssetAccount is required when Item is Inventoried

  • Detail: AssetAccount.UID

General Journal Errors:

ReconciledTransaction:

  • Error Code: 25004

  • Scenario: Updating General Journal entry that has been reconciled

  • Message: One or more parts of this journal entry have been reconciled. Changing or deleting this may affect your next reconciliation

  • Detail: NA

Did this answer your question?