Error messages / NACHA file validator
The service class code does not allow this transaction code
What the validator shows
This is the finding for the sample file nacha-error-service-class-mismatch.ach:
- ErrorThe service class code does not allow this transaction codeLine 6 · Entry Detail (6) · Transaction Code · positions 2-3
- Expected
- a credit code (service class 220 is credits only)
- Found
- 27 (debit)
6279900001491212121212·······0000005000EMP0004········SAMPLE·EMPLOYEE·FOUR····0990000010000004
Spaces are shown as dots so that they can be counted.
A message of the NACHA file validator, reported as an error. Service class codes 200, 220 and 225 in a NACHA batch header and which transaction codes each one allows.
Service class codes
Positions 2-4 of a Batch Header (type 5) and of its Batch Control record (type 8) say what kind of entries the batch may hold:
| Code | Meaning | Transaction codes allowed |
|---|---|---|
| 200 | Debits and credits mixed | any |
| 220 | Credits only | 21-24, 31-34, 41-44, 51-54 |
| 225 | Debits only | 26-29, 36-39, 46-49, 55-56 |
The second digit of a transaction code gives the direction: 1 to 4 are credits to the receiver's account, 5 to 9 are debits. The first digit is the account type: 2 checking, 3 savings, 4 general ledger, 5 loan.
What the sample shows
The batch is a payroll with service class 220, credits only. Its fourth entry has transaction code 27, a debit to a checking account. The validator points at positions 2-3 of that entry.
Why it happens
- A reversal or a recovery of an overpayment was added to a payroll batch. A debit needs its own batch with class 225, or the whole batch must be class 200.
- The payee was set up with the wrong transaction code (27 instead of 22).
How to fix it
Decide whether the entry really is a debit. If it is, move it to a debit batch or use class 200 (your bank must allow you to originate debits). If it is not, correct the transaction code on the payee and export again.
Check your own file
Drop your file into the NACHA file validator. It reports problems and does not change the file.