Skip to main content
Question

Generic Inquiry: Group By: Contains String

  • May 28, 2026
  • 2 replies
  • 32 views

Forum|alt.badge.img+1

I was hoping I could pick your brain about modifying a Generic Inquiry where the results can be grouped together based on a specific string or text pattern. For example, values such as “COMPANY1”, “COMPANY2”, and “COMPANYABC” would be grouped under “COMPANY,” while “SELLERA” and “SELLERB” would be grouped under “SELLER.”

 

I was hoping to manipulate it in the Group By tab but was getting an error: Operand data type datetime is invalid for sum operator.

 

2 replies

BenjaminCrisman
Acumatica Employee
Forum|alt.badge.img+4

@Crisel I don’t think the error is coming from that grouping. The error is coming from the results grid where there is a SUM applied to the date parameter:

This can’t be summed so it needs to be removed or have the aggregate function turned off, as it works when this field is not included in the GI results


Forum|alt.badge.img+1
  • Author
  • Varsity I
  • June 2, 2026

@Crisel I don’t think the error is coming from that grouping. The error is coming from the results grid where there is a SUM applied to the date parameter:

This can’t be summed so it needs to be removed or have the aggregate function turned off, as it works when this field is not included in the GI results

You’re right. I tried removing this and for the inquiry to work. Thank you.