Discussions
Read on for the latest updates including:
• Agenda Builder launch
• SuiteWorld On Air registration
• New NetSuite Prompt Studio Contest
• And more!
Check out this thread to learn more!
How Do I Prevent "Unexpected Error" When Using CASE in Summary Saved Search?
How Do I Prevent "Unexpected Error" When Using CASE in the following Transaction Summary Saved Search:
[LIST]
[*]Field: Formula (numeric)
[*]Summary Type: Sum
[*]Formula:[LIST]
[*]CASE {custbody_so_type}
WHEN 'Work Order'
THEN 0
ELSE sum({quantity}) - sum(NVL({quantityshiprecv},0)) - sum(NVL({quantitycommitted},0)) - max(NVL({item.quantityavailable},0))
END[/LIST]
[/LIST]When I use ONLY the terms in BLUE, the search works fine -- NO "unexpected error".
It also works OK when I use a simple expression for the "ELSE" clause, like "ELSE 1"
Thanks.