Weird… I am receiving an invalid summary type erro...
# suitescript
s
Weird… I am receiving an invalid summary type error when attempting to return or run a search in a M/R script. The search is counting transaction types, and it works fine in the UI, but if I return the same search in the M/R script > getInputData() I receive an invalid summary type error.
c
I'd build a custom data object of the search results and get around it. I'd recommend doing that regardless really. Not sure why it would freak out on the return though.
s
The summary criteria is needed because there are tens of thousands of results otherwise
b
what doe the search code look like
s
Putting kids down.. will reply in a bit
It’s an Entity search counting transaction types greater than 1. Will share code..
@battk it’s an entity search, with only joined transaction fields defined for columns… with no columns grouped. In order for the summary criteria to pass validation, I need to group on the entity internalid. The result in the UI works without grouping, and returns the transaction fields (main line only) without error.
b
the ui will ignore summary criteria without summary columns
scripts wont
👍 1
if your search works as you wanted it to, then you may not need the summary criteria in the first place