I am having problem with a very simple Lotus Script and I think the problem is the server not the code. Thats why I put it under the Domino Server category.
The simple Lotus Script is suppost to rename and then open a file that is on a shared folder on another windows computer as a mapped network drive. I always get the file not found error message from the agent. I have checked if I cant access the file directly from the computer and I can rename it and everything from the computer. But when I call the simple function
Name “g:\dir1\file1” As “g:\dir1\file2”
Then I get the file not found error. If I move the files to the c-drive I can use the “Name” function but not on the mapped drive. This worked before and for sometime when I was on my vacation.
While I was testing this I made a new agent that was just suppost to rename an empty file that I created. While I was testing I somehow was able to get the test agent to work and rename a file on that mapped drive. I than ran the original agent and it failed because of one line that was commented and didnt even report an error over the file. But just after I ran that code the renaming process failed again and the test agent stop working again and I didnt change anything in the code.
I have tried restarting everything including the server machine and nothing.
Anybody have any idea what this can be? If you need more info about something please just ask.
If your creating the file with the same agent, its still open ? (I did something recently where the server created a local non-data directory copy of a database, and server seems to hang onto that database for a long while - even after explicity destroying the db object.
Write some debugging code (on error…) around it to see what the error is - (if you havent already - sorry) - it might give you more to go on.
& whether the signer has unrestricted/restricted access. File manipulation requires restricted access. Also check to see if the mapped drive letter is available to the server running the code (you can also check the code in debug mode on the server),
Well, I know its not access related because I have tried running that agent under full administrator mode.
I have also used the Lotus Script debugger to check the code and I know where it stops. Its on the Name function that is used to rename the file but it dosnt seem to find that file or anything.
You need to dig up the ‘troubleshooting agents’ posting in this forum.
Did the agent work from your workstation. Is the agent scheduled to run on the server? Which ID created/saved the agent? Is this user allowed to perform restricted operations? - File name rename is restricted.
Is the path explicitly called in the agent: Eg. e:\Lotus\Notes\Data\htm.txt
Can you get a handle to the file when you debug the agent (prior to the rename)?