Saved Search Answers

Short answers to specific saved search questions: what a formula error message means, why a formula column comes back as text instead of a number, why the Count summary disagrees with the number of rows, and which results are wrong without anything erroring at all. Every page traces to a probe run against one NetSuite 2026.1 sandbox account on the Administrator role, either as an ad hoc search through the SuiteScript search engine or read directly out of the saved search form. Where a finding rests on a narrow test, or was left half-established, the page says so.

The probes were driven from MokuBot, the NetSuite agent we build, which runs inside an authenticated NetSuite tab and is the only reason this many variants could be built, run and re-run in an afternoon. What they found are properties of saved search, not of the tool that sent them.

Formulas that fail without erroring

What the formula type does to your number

  • Why is my Formula (Percent) column showing a number 100 times too big?

    Because Formula (Percent) multiplies by 100 itself and appends a literal % sign. If your expression already computes a percentage, the column reports a hundred times the real figure with a plausible % on the end. Feed Percent the ratio and drop the *100.

  • Why does my Formula (Numeric) column return 39 decimal places?

    Because Formula (Numeric) does not round at all. It hands back the raw Oracle NUMBER, which is what reaches your CSV export or SuiteScript variable, so 1/3 comes back with 39 decimal places. Formula (Currency) is not the fix: it rounded to 3 dp on some values and 2 on another. Use ROUND(x,2) in the expression.

Counting rows and summary types

Dates in formulas

  • Why does {today} - {trandate} return a decimal instead of a whole number of days?

    Because {today} is a timestamp, not a date. It carries the time of day, so the subtraction leaves a fraction of a day on the end and the result is never a whole number. An equality test against a day count never matches, and a greater-than test moves during the working day. Use TRUNC({today}) - {trandate}, which returns an integer.

  • How do I group a saved search by month, or format a date, in a formula?

    TO_CHAR({trandate},'YYYY-MM') in a Formula(Text) column gives a sortable month key and honours the format mask exactly. TRUNC({trandate},'MM') in a Formula(Date) column gives the first of the month as a real date, but it renders in the account's date format rather than ISO, so export the text version if anything downstream parses it.

Filters and criteria

  • Why is equalto not a valid operator on internalid in a saved search filter (SSS_INVALID_SRCH_OPERATOR)?

    Because NetSuite does not accept equalto on internalid: the filter is refused with SSS_INVALID_SRCH_OPERATOR and the search returns an error instead of rows. Use anyof, which takes an array and scales to a list. is also works, on a bare string, which is the part most people do not expect.

  • Why does a Formula (Text) criteria on internal id match far too many rows?

    Because a text formula makes every operator a string operator. Formula(Text) {internalid} contains '2' is a substring scan over the digits of the id, so it matches 2, 12, 20, 102 and everything else containing a 2. In the account tested it matched more than half the rows in the search, with no error. Use anyof, or Formula(Numeric).

  • Can I use a formula as an Available Filter on a saved search?

    You can select one and you can never make it work. The Available Filters sublist has four columns, Filter, Show in Filter Region, Show as Multi-Select and Label, and none of them is a formula box. Criteria has a column literally labelled Formula; Available Filters does not. The search saves anyway, with no error, carrying a filter that has no expression in it.

Fields missing from the search

  • Why is my custom field missing from the saved search field list?

    Because the field is marked Inactive. That one checkbox on the custom field record, labelled exactly "Inactive", removes it from the Criteria, Results and Available Filters dropdowns at the same time. Store Value is not the cause, whatever the forum threads say: with Store Value off the field is still listed in all three. Display Type = HIDDEN and Applies To do not remove it either.

  • Why is my custom field in the saved search results but blank on every row?

    Because Store Value is unticked on the custom field record, so there is nothing stored for the search to return. The field stays fully usable: as a results column it runs and returns empty on every row, inside a formula the same, and as a criteria filter "is empty" matched every row in the table. Nothing errors, so the report looks structurally fine and is silently empty.

Results, export and sharing