You might receive this error for two reasons. If you placed an Invoke Node on the block diagram, you might not have selected a method. If you changed the class of the Invoke Node, the selected method might have become invalid.
To correct this error, right-click the Invoke Node and select one of the valid methods from the shortcut menu.