Detaching encrypted objects in LotusScript

I am trying to get a ls agent to detach a file from a document that was encrypted using SecretEncryptionKeys. When the script runs, I get the message: “Notes error: You must supply the bulk decryption key in order to extract this file object”. I am running the agent from an ID that does have the key, and the embeddedobject.extractFile method does not have any parameter to pass a key in. Does anyone know of a solution/workaround?

TIA

John Rasmussen

Subject: Detaching encrypted objects in LotusScript

Hi John,

Did you ever get a resolution on this. i am having the exact same error. One thing i did notice is that when i debug the script and step into the line that errors - it works!

Any help would be appreciated

Thanks

Mike

Subject: RE: Detaching encrypted objects in LotusScript

I had this problem and I just signed the document before detaching the attachments using the NotesDocument.Sign method

Subject: Thank you Daniel.

Thank you Daniel. Sign works Ok. It show an error if you sign and the document is noy encrypted but it can be easily fixed:

	If doc.IsEncrypted Then

		Call doc.Sign

	End If