This article is relevant for SAM version 6024 and above.
Click HERE for details on how to check which version you have.



Xero batches error:

The TaxType field is mandatory

Account code 'XXXX' is not a valid code for this document


This is caused by a GL code in SAM not having a Xero GL code - no mapping



1. Find the correct SAM GL code & posting type


The bell Icon will show a number - hopefully this is 1 - click on this to view the batches



  1. Find the GL Code In the error within the single quotation brackets.
    1. In this example it is 200/09111
  2. Find the posting type 
    1. In this example it is Discount



You can click on suggested solution to get right back to this article (lets go around in circles...)



You will need to get direction from your Accountant/Book keeper on what Xero GL code to use


In this example you will be asking your accountant:


"SAM is unable to post an invoice to Xero because the Discount code doesn't have a Xero GL code.

What Xero GL code should be used for this".


What if it's something generic?

If the error was for Regulator Gasket or Fanbelt instead, then this would be a parts sales and you would be asking your accountant for the Xero GL code for Parts Sales.



2. Edit the transaction in the batch

1. Double click on any transaction that has the incorrect Xero Code (i.e. Discount),

OR

2. Click on 'Edit Xero Code'.




Enter the correct GL code given to you by your accountant.


Click on OK - the batch will post the batch IF all errors are fixed.



3. Edit the SAM GL code


Go to (1) Maintenance > (2) GL Codes & double click on the code from the error above

 


Continue through the Warning and enter the number given to your by your accountant previously


Click on OK




Didn’t find what you were looking for? 

Our Support team are here to help, you can reach us by submitting a support ticket

or calling us on 09 583 2455