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:

  1. ErrorThe service class code does not allow this transaction code
    Line 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:

CodeMeaningTransaction codes allowed
200Debits and credits mixedany
220Credits only21-24, 31-34, 41-44, 51-54
225Debits only26-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

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.

Check your own file

Other NACHA (ACH) file messages