Solved

Agent not working

Posted on 2006-10-25
8
265 Views
Last Modified: 2013-12-18
Scenario:  I have 2 databases. We'll call them database A and database B.  I create a document in database A. Upon hitting the submit button, it calls an agent to copy the document to database B. It does this with no problem.

I have an agen in database B and it is not working.

It is set to run if New documents have been created or modified, I have 2 forms selected for it to act on, and the formula is a simple @Mailsend formula.

It is not working. Thought it might run in 30 minutes, but it never did.

Any suggestions?
0
Comment
Question by:schmad01
  • 3
  • 2
  • 2
  • +1
8 Comments
 
LVL 63

Expert Comment

by:SysExpert
Comment Utility
Did you try running it as scheduled on all new Docs, and add agent logging to see what happens ?

I hope this helps !
0
 

Author Comment

by:schmad01
Comment Utility
No, didn't try that.  Will try.
0
 
LVL 9

Expert Comment

by:HappyFunBall
Comment Utility
There used to be bugs with agents that use the New Documents trigger and years ago I stopped trusting them to work.  You might try a scheduled agent that runs every 5 minutes instead.  
0
 
LVL 46

Accepted Solution

by:
Sjef Bosman earned 125 total points
Comment Utility
Never had problems with New document agents, in the sense that the trigger always works. I never used the selection formulas with it, I used my code to find out what documents to process.

Can you simplify the agent, e.g. remove all code from it, so you can see in the agent's log that it ran? You can change those 30 minutes delay if need be, using a Notes.ini parameters.

Last option: creating a document in dbB can also be accomplished by mailing the document to a mail-in database. You could use a When new mail has arrived as trigger...
0
6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

 
LVL 9

Expert Comment

by:HappyFunBall
Comment Utility
I should clarify, sjef_bosman, that the problems I had with new document triggers date back to R4 or early R5 days.  I've long since lost the technote that confirmed it, but there was a problem years ago.  I believe the recommended solution at that time was to use scheduled agents instead and I've just never looked back.  I'm glad to hear the triggers have worked for someone, though.  Maybe its time I gave them another chance ;-)
0
 
LVL 46

Expert Comment

by:Sjef Bosman
Comment Utility
I always try the "right" way first, which means that my head is full of bumps banging my head into the same Notes-problems over and over again. Example: it used to be impossible to use background and UI objects in the same library. And suddenly that was possible. And more things like that. I should of course have read the release notes, but who reads them all?? Occasionallly, I miss a new function or method, but once discovered it's added quickly to the toolset ;-)

You're back in Notes business?? Good! It's gone rather quiet here lately...
0
 
LVL 9

Expert Comment

by:HappyFunBall
Comment Utility
Well, I'm off and on this forum still.  I go in cycles, depending on how busy it is around here.  

I remember that background agents and UI objects issue.  I figured out that declaring a UI object (dim w as NotesUIWorkspace) would stop the background agents from running.  But the way around that was to declare a Variant and then assign that Variant to the new UI object.  See, I still remember the workaround and would never have known that bug had been fixed unless you told me.  

Back to the issue at hand, though.

schmad01,

I wonder, does the agent in Database B work if you create a new document and save it manually?  Make sure to check the server logs to see if it was triggered, if the agent doesn't do anything obvious.
0
 

Author Comment

by:schmad01
Comment Utility
Gave me some ideas to try. Thanks!
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

For Desktop Techs: How to retain a user's Notes configuration data when swapping out the end user's computer. (Assuming that you are not upgrading to a completely different version of Notes client) All you need to do is: 1) install Notes o…
Notes Document Link used by IBM Notes is a link file which aids in the sharing of links to documents in email and webpages. The posts describe the importance and steps to create a Lotus Notes NDL file in brief.
This video discusses moving either the default database or any database to a new volume.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now