Skip to Content
0
Oct 08, 2018 at 04:06 AM

Groovy Script Error adding Square [] Bracket in param

513 Views Last edit May 24, 2020 at 11:13 AM 2 rev

Hi All,

The moment I add [](square bracket in the String param, I am unable to save the script. It keep gives me error saying that Script contain no valid function.

Removing [] square bracket from String param works fine. No clue.

Here is my script

The problem is String[] P1, If i remove the square bracket, then able to save the script. Pls help this out

error message screenshot




Attachments

script.png (20.1 kB)
error.png (7.1 kB)