Q

Problems with scheduled agent/Excel object

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 embobj=item.EmbeddedObjects(0) ..... Set xl = embobj.Activate(False) 'The error happens at this line xl.Worksheets(1).Rows("5:2000").Delete

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.


This was first published in August 2001

Dig deeper on Lotus Notes Domino Administration Tools

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

-ADS BY GOOGLE

SearchWinIT

Search400

  • iSeries tutorials

    Search400.com's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...

SearchEnterpriseLinux

SearchVirtualDataCentre.co.UK

Close