Hi, I'm trying to create a scripted field with the simple painless-code bellow.
Math.round((doc['CRC_OK'].value / doc['NR_UWs'].value)*100)/100.0
Everything seems to be working when I preview the code:
When I open the discover-page I immediately get an error like this:

I tried to remove the multiplication and divisiion of 100, but that didn't make any difference.
I would be grateful if you could help my find the bug.
Thanks!