Home > Ask the Domino Experts > LotusScript Questions & Answers > Troubleshooting a scheduled agent not running on a Global Notes Architecture (GNA) server
Ask The Domino Expert: Questions & Answers
EMAIL THIS

Troubleshooting a scheduled agent not running on a Global Notes Architecture (GNA) server

Cregg Hardwick EXPERT RESPONSE FROM: Cregg Hardwick

Pose a Question
Other Domino Categories
Meet all Domino Experts
Become an Expert for this site


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


>
QUESTION POSED ON: 10 May 2007
I need to create a scheduled agent that will generate a text report and send it across to a Lotus Notes mail ID. When I run the agent manually, it works fine and sends email. But after I schedule it on the Global Notes Architecture (GNA) server, it will not send email. The agent is signed by a server admin ID, and the agent is given in the security tab. It allows restricted operations. What could the problem be? I think the server runs OS/400 (but I'm not sure), and it uses few restricted operations like Close, Open, Embed Object. Please help.

>
EXPERT RESPONSE

VIEW MEMBER FEEDBACK TO THIS ASK THE EXPERT Q&A.

If you search the Web for "Julie Kadashevich," you will find a number of articles that help explain the MANY finer points of Lotus Notes agent management. Without having access to both your LotusScript code and your server, I can only guess at the problem. However, here are my top guesses:

  1. The mail ID used to sign the agent does not have a mailbox on the Lotus Domino server where you want it to run, and the server does not have "DisableMailLookup" set.

  2. The agent is, in fact, running, but is failing to send the report.

  3. You have an agent scheduling issue.

It sounds like this agent is scheduled to run either daily or weekly, so it is pretty easy to diagnose if you know where to look. First, in Domino Designer, open the database on the GNA server, go to the agents view, right click on the agent and choose "Log."

If you see a message stating that "This agent has not been run," then you are looking at option 3, and you need to read Julie's articles.

If the log states that the Lotus Notes agent ran at a certain time and an error was raised, then you'll need to debug the agent. Beyond reminding you that scheduled server agents cannot call any object that interacts through the UI (such as NotesUIWorkspace), I can't really help with that.

If the log states that the agent ran and does not mention an error, look to see if it shows the time the agent COMPLETED. If not, something on the server is causing it to fail without raising an error message.

First, if the agent is running too long, the log will state that it timed out. If this is the case, you either need to recode it to run faster, figure out what is getting in an endless loop, or increase the agent runtime restrictions on the Lotus Domino server's document, in the Notes Address Book (NAB).

Now, if the agent says that it ran, but says that it is meant to run on server "XXX", you might wonder, "Why the devil is it trying to run on sever "XXX" -- I told it to run on server "GNA." You have run into a common problem.

In order to keep the "out-of-office agent" from running multiple times in a mailfile replicated across servers, Lotus unwisely and summarily decided to restrict agents to running on the home mail server of the user who signed the agent.

This works fine for the out-of-office agent, but not so well for all other agents (which tend to all be signed by a single corporate agent signer ID.

There are a number of possible solutions. The one I recommend is to set DisableMailLookup on all your application servers, and then make sure that there are no mail files (which could run the out-of-office agent) and any of those servers.

MEMBER FEEDBACK TO THIS ASK THE EXPERT Q&A:

If the GNA server is running on an AS/400 system, then it is likely that the agents (e.g., Close, Open, Embed Object, etc.) do not work. When the agent is run manually, it is probably running locally on a Windows client. Obviously, AS/400 does not work in the same way as Windows XP.

—Steve B.

Do you have comments on this Ask the Expert Q&A? Let us know.

Related information from SearchDomino.com:

  • Tip: Troubleshooting malfunctioning scheduled agent notifications
  • Tip: Determine if a scheduled agent really ran during the night
  • Reference Center: Lotus Notes/Domino agents tips and resources


  • Sound Off! -   Be the first to post a message to Sound Off!


    Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


    RELATED CONTENT
    LotusScript
    Modifying LotusScript code for date and time handling
    Use DXL utilities for advanced replication settings in Notes
    Use LotusScript to create encrypted replicas
    Write a LotusScript agent to automate file attachments
    Setting up local replication of a Lotus Notes database for offline employees
    Creating a link on an HTML page to a Microsoft Word attachment in a Lotus Notes database
    LotusScript to extract and move attachments to a Lotus Notes mailbox or file folder
    Copying a rich-text field with attachments to a Lotus Notes document
    How to convert Lotus Notes documents to .PDF files
    Can I stop Lotus Domino Server from transforming embedded images into attachments?

    Lotus Notes Domino Agents
    Verify scheduled agent status with Domino Extensible Language (DXL)
    Top 10 Lotus Notes Domino programming and development tips of 2007
    How to export data from a Lotus Notes database to a CSV file
    Must-know Lotus Notes Domino agents -- 10 tips in 10 minutes
    Enable or disable scheduled agents without opening the Lotus Notes database design
    Creating custom views in Lotus Notes databases
    Editing fields in a Lotus Notes view with Ajax
    Can I stop Lotus Domino Server from transforming embedded images into attachments?
    How to automatically create a backup copy of your Domino Directory
    Export Lotus Notes documents to Microsoft Word via Internet Explorer

    LotusScript
    Launch large attachments within an email from a Notes database
    How to find files on a hard drive or mapped network with LotusScript
    Update the ACL from the Roles view with LotusScript
    LotusScript agent moves tagged spam email to junk mail folder
    Set a value in a field existing in another Lotus Notes database
    Create an automatic scheduled view export in Excel
    Top 10 LotusScript tips
    Create a personalized greeting for Lotus Notes database users
    Fail-safe rich-text validation using LotusScript
    How to export Lotus Notes views to a Microsoft Excel database

    RELATED RESOURCES
    2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
    Search Bitpipe.com for the latest white papers and business webcasts
    Whatis.com, the online computer dictionary



    Search and Browse the Expert Answer Center
    Search and browse more than 25,000 question and answer pairs from more than 250 TechTarget industry experts.
    Browse our Expert Advice

    HomeNewsTopicsITKnowledge ExchangeTipsAsk the ExpertsMultimediaWhite PapersDomino IT Downloads
    About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
    SEARCH 
    TechTarget provides enterprise IT professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective IT purchase decisions and managing their organizations' IT projects - with its network of technology-specific Web sites, events and magazines.

    TechTarget Corporate Web Site  |  Media Kits  |  Reprints  |  Site Map




    All Rights Reserved, Copyright 1999 - 2008, TechTarget | Read our Privacy Policy
      TechTarget - The IT Media ROI Experts