Trouble with 'There is no memorized next action' message

I have given a detailed solution.Kindly check this.