In Spain, signing the deed before a notary is the last step of a purchase, not the moment to check things. The notary reads the deed aloud and verifies identities and registered charges, but some matters fall outside the notary's role, and what was not checked beforehand can rarely be fixed at the notary's office.
Many residence and nationality procedures in Spain require US citizens to prove that they have no criminal record in the United States. Obtaining the certificate from Spain involves four steps that must follow a set order.