...
If your Groovy Script has a compilation error, you will be notified when you save. Other errors are found at run time and will be found when the value is used.
In the above example, there was a compilation error. It shows this in the UI:
...
Fix the problem, close the error popup, and save again.
...
After adding the missing plus sign, the value saves successfully.