R6 Disk i/o is a restricted operation

I get this error message when trying to detach a 123 spreadsheet from a document to the servers hard drive. It works fine if I run the agent locally but when I run it scheduled from the server… I get this error. I have myself set under the run unrestricted methods and operations. I am also set to run restricted…

Here is a sample of my code.

Set fileObject = doc.GETFIRSTITEM(“spreadsheet”) ’ fname.Type = ATTACHMENT

If (fileObject.Type = RICHTEXT) Then

Forall o In fileObject.EmbeddedObjects

If ( o.Type = EMBED_ATTACHMENT) Then

FileExtractName = o.Source

gBidNumber = Trim(Left(FileExtractName,9))

Call o.ExtractFile("c:\samples\" & o.Source)

Call o.Remove

Call doc.Save(False, True)

End If

End Forall

Endif

What is wrong here?

Subject: R6 Disk i/o is a restricted operation

agent properties - allow restricted is not set.

Subject: RE: R6 Disk i/o is a restricted operation

Glad I found your post…this has been driving me insane.

tx

Subject: RE: R6 Disk i/o is a restricted operation

If you run ‘test’ diagnistic from designer it would tell you, I am guessing Peter’s suggestion is right on target. You can see a list of common gotchas as we as other tips on Troubleshooting in the Agent FAQ under resources.