My guess would be an aggressive anti-virus scan on the PDF folder. I believe the file is saved, then modified to add the password... and if AV software has just locked the new file for scanning, that could fail.
------------------------------
Kevin Moyes
Technical Systems Analyst
Munjal White Consulting Co.
Toronto ON
------------------------------