Usually this error occurs when the End activity node is not set to ‘End’ which is by default in ‘Normal’ state. Here are the steps to set the property of ‘End’ node.
Right click on the activity –> Go to Properties –> Select ‘Node’ Tab
As shown in the above screen shot you will find that Start/End field is set to ‘Normal’ which is the default value. Change the value to ‘End’ from LOV as shown in the below screen shot.
You will find small difference in ‘End’ node icon which will have a red color arrow mark are right side bottom.