Expiring Today—Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Agent not working

Posted on 2006-10-25
8
Medium Priority
?
274 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
  • 2
  • +1
8 Comments
 
LVL 63

Expert Comment

by:SysExpert
ID: 17804110
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
ID: 17804133
No, didn't try that.  Will try.
0
 
LVL 9

Expert Comment

by:HappyFunBall
ID: 17804473
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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 46

Accepted Solution

by:
Sjef Bosman earned 500 total points
ID: 17804912
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
 
LVL 9

Expert Comment

by:HappyFunBall
ID: 17805037
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
ID: 17805141
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
ID: 17805598
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
ID: 17858280
Gave me some ideas to try. Thanks!
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

  In today’s Arena we can’t imagine our lives without Internet as we are highly used to of it. If we consider our life style just for only 2 min we found that face to face communication is swapped by e-communication.  Every Where from Works place to…
IBM Notes offer Encryption feature using which the user can secure its NSF emails or entire database easily. In this section we will discuss about the process to Encrypt Incoming and Outgoing Mails in depth.
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…

719 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