HasanCad,
In addition to Tharwat's suggestion, you will get this error when
the boundary command cannot find a closed boundaries.
So the error message you are seeing is telling you that
there is no closed boundaries around the point you have chosen,
therefore no centroid.
In other word obj does not exist.
ymg