Any idea why a search in the UI shows 50k results ...
# suitescript
a
Any idea why a search in the UI shows 50k results but when loading it by script I only get 30k results?
c
I ran into something maybe similar the other day. The search in the UI was fine but running it over a RESTlet was giving me back 0 results. Turned out to be permissions of the user running the call. No error just didn't give any results.
a
I'm not getting any errors, just less results, in the UI I see 50k, in the script Map Reduce, only getting ~30k but the Map Reduce is running as Administrator...
c
is the MR loading the same saved search or is it hardcoded
a
same search being loaded...
c
are you returning the results in the getInput or making a custom object?
i'd maybe try custom object if you aren't already. Maybe its getting messed up somewhere on the return of saved search results if thats what you are doing.
otherwise I dunno. Should be OK since its admin running the search so you should see all results.
a
I always like to return custom object, in this case only getting IDs tho... but this search have some grouping...
b
what are the filters and columns of the search?
a
I found the problem, it looks like there are some duplicates even with the grouping due of the many to many relationship of the elements.
💯 1