I have a scheduled agent that takes an Excel embedded object and updates it with information from the database. This scheduled agent works fine when I run it manually or if I run it as a scheduled agent on our development server. When I copy the database to production I can still run it just fine manually but I receive the following error when I run it as a scheduled agent: "Error 201: Operation disallowed in this session". This error occurs as soon as the code tries to do anything with the Excel object. For example:
Dim xl As Variant
Set xl = embobj.Activate(False)
'The error happens at this line
By submitting your email address, you agree to receive emails regarding relevant topic offers from TechTarget and its partners. You can withdraw your consent at any time. Contact TechTarget at 275 Grove Street, Newton, MA.
I have checked the Notes.ini on both the development server and the production server and neither one has the "NoExternalApps" line. My userid is setup to run "Restricted Agents".
Any help or suggestions would be appreciated.
The most likely cause of the problem is that the signer of the agent is not listed in the "Run Unrestricted LotusScript Agents" field of the Server document. Have the Servers administrator Edit the server document and add the signers name to the list or have the agent signed by a userid that can run unrestricted agents.
Dig Deeper on Lotus Notes Domino Administration Tools
Related Q&A from Brian Mahoney
Find out what types of calculations can be computed for a column in a Lotus Notes view and the best way to go about it with this expert response.continue reading
Find out why you can't use Formula language to include a doclink to a specific Lotus Notes view or database and need to use LotusScript instead.continue reading
Discover the reasons behind a Notes/Domino admistrator having trouble with disabled options in the "customize this view" section of his Lotus Notes ...continue reading
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.