Problem with Unrestricted property

Dear All,

I have a scenario wherein user uploads a file and it needs to be then read and then create multiple documents from it from web environment. I am using CSV file for this upload.

For this I have provided a form to user in which he uploads the file and after upload is done the user click on a button. This button then runs an agent on server which gives following error on the code.

The code which generates error is :

mEnv = session.GetEnvironmentString("Directory",True)

The error received is:

You must have UNRESTRICTED access in order to set environment variables or get system variables.

I have tried running this agent with Administrator’s ID and my own ID. My name as well as Administrators name is added in Server Document in Unrestricated Agent.

Any suggestion why this is not working. Also is there any better way of reading a CSV file and creating new documents without storing it on server.

Thanks in Advance…

Siddhartha

Subject: Problem with Unrestricted property

In the agent’s properties in security section, choose “Allow restricted operations” option. This will make it possible to read files.

It looks like it is possible to read attachments without detaching them first, using NotesStream class. Take a look at this post:

http://www-10.lotus.com/ldd/nd6forum.nsf/55c38d716d632d9b8525689b005ba1c0/bb0dfc479466e49285256d410011a3e0?OpenDocument

/Dimitrij Egorov

Subject: RE: Problem with Unrestricted property

Thanks Dimitrij… You pin pinted at the right place. Some how that setting got changed and I had been beating the bush every where else.

Thanks once again.

Siddhartha