http://support.apple.com/kb/HT2237?viewlocale=en_US suggests that -1701 means
-1701 errAEDescNotFound Descriptor record was not found
What kind of file are you accessing, and on what filesystem (such as a file on a thumb drive or network drive)?
Is your search/replace using Grep, and if so, what is your search/replace field? There could be an invalid character, look-ahead/behind, or bracket issue.
Also, if you're searching Google for an error code that starts with a minus sign, remove the minus sign (so search for "Error Code 1701" instead of "Error Code -1701". Otherwise, it strips out all sites where "1701" gets mentioned.