Runtime field script error: Cannot cast from [java.lang.String] to [void] in Kibana 8.17

Hello @Hendrawns

I did check & see similar error message :

As per the documentation try using emit instead of return

Thanks!!