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.

>

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


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



    RELATED CONTENT
    LotusScript
    Can you use LotusScript to read a text file attached to a Notes doc?
    Customize the principal field of outgoing email messages
    Can I use LotusScript to merge cells in a Microsoft Word table?
    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

    Lotus Notes Domino Agents
    How the Agent Profiler tool improves Notes/Domino performance
    Run or restart Notes/Domino agents via text messages
    Calculating results for a column in a Lotus Notes view
    Approve Lotus Notes documents using a BlackBerry mobile device
    LotusScript agent indexes Lotus Notes/Domino databases
    Top 10 Lotus Notes/Domino coding and development tips of 2008
    Open documents in Lotus Notes from the Web without a UNID
    Fix and update Lotus Notes documents with limited access
    Verify scheduled agent status with Domino Extensible Language (DXL)
    Top 10 Lotus Notes Domino programming and development tips of 2007

    LotusScript
    LotusScript finds the first occurrence of a string from the right
    Clear Recent Contacts view and prevent repopulation in Lotus Notes 8.x
    Search Microsoft Active Directory with LotusScript
    Three steps to trap and handle save conflicts with LotusScript
    Troubleshoot agents by displaying LotusScript variables online
    LotusScript sorts lists alphabetically
    Run or restart Notes/Domino agents via text messages
    LotusScript code rebuilds corrupted busytime.nsf file
    Soft-code item names to facilitate LotusScript management
    LotusScript agent automates selective mail file replication

    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



    Lotus Notes Domino on Blackberry and mobile devices
    HomeTopicsITKnowledge ExchangeTipsAsk the ExpertsMultimediaWhite PapersDomino IT Downloads
    About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
    SEARCH 
    TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

    TechTarget Corporate Web Site  |  Media Kits  |  Site Map




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