CurDrive$ isuues

Anyone is having issues with curdrive$() or curdrive(). I am creating a directory to detach attachments and attach them again to store into a new document. Hence checking the drive before creating a directory.

Since 3 mnths, this process is scheduled and is okay on 5.10 server.

While testing on R6.5, it is failing at that line without proceeding further and gives me a message in log as “Operation is disallowed in this session”.

When this agent is debugged, the agent processes the document without any problem creating directory, detach and attach, if there are any attachments. But when scheduled, fails at that line and do not process further.

Anyone encountered this sort of problem? Input is appreciated. Thank you.

Subject: check agent properties make sure it is allowed to use restricted operations

Subject: RE: check agent properties make sure it is allowed to use restricted operations

Looks like, there is a field needs to be updated with the group I am in, on the server document.The field is : Run unrestricted methods and operations. I guess this need to be updated along with the field “Run restricted Java/Javascript/COM:” in R6.5