Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Keep an eye out for upcoming NetSuite events, including meetups, workshops, and webinars. These sessions are a great way to connect with peers, learn from experts, and stay current on the latest NetSuite updates and best practices. Registration links are provided in each event.
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.
0