In Ontario, most purchases close without an up-to-date survey, because most buyers purchase a title insurance policy at the same time that they buy the house. What happens if you find out after the fact that your neighbour’s property encroaches onto yours?
Generally speaking, this is covered by your title insurance policy, if you bought one. There would likely be a new survey ordered, and then the title insurer would have the option of choosing between compensating you and attempting to have the encroachment moved.