An attempt was made to perform an action against an object in a mode that did not allow for that action to be performed.
Get the object into a suitable mode and reissue the command.