I'm getting a very strange error running a UI save...
# suitescript
r
I'm getting a very strange error running a UI saved search in SuiteScript 2.0.
Unable to determine record type for saved search id 7501.
Copy code
search.load('customsearch_my_consulting_quota').run().each(function(result) {
    amount = result.getValue('amount');
    log.debug('amount', amount);
});
Seems like a back end issue. It found the search, but the record type was not passed for some reason.
j
In the UI what search type is it?
r
quota
m
N/search
does suggest that
type
is required for ‘standalone searches’ in
.load
r
standalone searches? i'll look for that
do you mean transaction subtypes?
m
apparently it’s anything that isn’t backed by a record type. i don’t see quota in the list, but i’m not familiar with the record type either
r
weird, ok. i noticed you can search for opportunities with type transaction or with type opportunity. i wonder if it's related. just off the top of my head because i discovered this recently
a
Yes, perfect. You can perform a search on Entities or in a more specialized Customer search. But honestly is the first time it happen and I can ensure that in SS1.0 never happened in 10 years.
c
There's some performance issues going on as well so could just be netsuite