A user creates a new reverse charge tax code for the UK and assigns it to a Vendor Bill. When saving or processing the Vendor Bill, NetSuite returns the following notice:
"Custom GL Lines Plugin error due to a failed validation of script output: Transaction was not in balance."
The tax code was configured with separate accounts for notional debit and credit, and the Custom GL Lines Plug-in was enabled for transaction types such as Bill, Bill Credit, Check, Expense Report, and Journal. The user wanted the reverse charge tax code to work properly on the accounts payable side and was also checking whether the same setup would work for accounts receivable transactions.
Review the Tax Type setup connected to the reverse charge tax code and confirm whether the Liability/Sales Tax Account field has a value.
Recommended steps:
- Go to Setup > Accounting > Tax Types.
- Open the tax type used by the reverse charge tax code.
- On the Accounting subtab, review the Liability/Sales Tax Account field.
- If the field is blank, enter the appropriate account.
- Save the tax type.
- Return to the Vendor Bill and try saving the transaction again using the reverse charge tax code.
When reverse charge tax is paired with a Custom GL Lines Plug-in, account setup must support balanced GL impact. If the tax type is missing an account used by the tax calculation or GL plug-in logic, the transaction may fail validation because the generated GL lines do not balance.