Skip to main content
Question

Operand data type bit is invalid for max operator.

  • April 27, 2026
  • 2 replies
  • 17 views

After recent ERP Upgrades , we have been experiencing an error on screens i.e Operand data type bit is invalid for max operator.We have customizations which have a boolean/bit data type & dacs, and now after the recent upgrades we are now having to change them to use integers. Is it an acumatica issue or we have to workaround with our customizations ?

 

2 replies

Forum|alt.badge.img
  • Jr Varsity I
  • April 27, 2026

Hi ​@John Kihiu Create a calculated field:
=IIf([YourBoolField] = True, 1, 0)
then apply max()


Forum|alt.badge.img+1
  • Varsity II
  • April 27, 2026

This happens where MAX is used on boolean (BIT) fields. SQL Server does not support this, and the newer version seems to enforce it strictly.