Install deleted Keynote app in MAC I uninstalled Keynote app from Applications, since I am unable to update it because of the error

I empty trash and try to reinstall it again. I am getting the same error. And its still showing UPDATE option, not GET option.
I am getting this problem with this version of mac(v10.12.5), previous versions I updated successfully with my appleid.
Any help on this..
I am successful in reinstalling Keynote by following these steps,


Move Keynote app from Applications to Trash.
Empty trash.


its still shows UPDATE option, not GET option for Keynote in Appstore.

Power OFF and ON the MAC.
Appstore shows GET option for Keynote now.


It works fine even for Numbers, Pages. Please edit this post, if any feasible solution available.