There can be three reasons:
1.May be there is a problem with xpath.
2.It’s better to clear Appium server cache by using below command:
npm clear cache --f
3.Still if your getting problem,make sure that your using command based appium server or not
(i.e,Nodejs).