Endless loop in paste agent RenamePastedAccounts causes system hang. Template StdR4PublicAddressBook for 8.5.2 07/22/2010. To reproduce just try pasting any document with TYPE_FIELD not equal to ACCT_TYPE. The statement Set doc = dc.getnextdocument(doc) needs to be outside the IF.