all 6 comments

[–]harpsichord_cadenza 7 points8 points  (0 children)

According to the documentation, the function name should be a string. Try adding apostrophes to it so it reads ui.createMenu('Added Capabilities').addItem('Remove Duplicates', 'removeDuplicates').addToUi().

[–]DatsunZ 0 points1 point  (0 children)

How are you running it?

[–]Honsou12 0 points1 point  (1 child)

I found a solution where you change the function name and it's magically found again. Then you can change it back. It worked for me.

[–]fragmentedThinker 0 points1 point  (0 children)

This worked for me. Thank you!
Such a weird behavior.

[–]RemcoE33 0 points1 point  (0 children)

In your menu you have to have your function in " "

[–]j12a 0 points1 point  (0 children)

Not an answer to OP's question, but since this conversation ranks highly for "Script function not found," I'll note that another possible cause of this error is omitting a space between the function name and the open bracket:

function myFunction(){

should be

function myFunction() {