Any ideas on why this might erroring out? I have tried it on another database and it worked. I made some modifications to the original script, but the same error remains.
Update: It actually does copy 36 PDFs to a folder successfully before the error. Not sure why yet. I'm would expect 400+ attachments, I will keep digging.
