Lotus Notes Agent Error Creating Product Object
Front End; Notes UI Classes; NotesUIClasses; Incident; Vantive #1399797; LotusScript; code; script; agent; manually; manual; run agent; scheduled; RunOnServer method; NotesAgent class; terminates abnormally; terminates; ends; errors; Unknown LotusScript error; Error creating product object; error code 12090; 12090; log Technote (FAQ) Question When you test a particular LotusScript agent manually in Lotus Domino, it executes without error. When you run the agent on a scheduled basis or using the RunOnServer method (of the NotesAgent class), the agent terminates abnormally with one of the following error messages (recorded in the Notes log): "Unknown LotusScript error" or "Error creating product object." What does this mean and how can it be avoided? In some cases, an error code 12090 is also observed in the agent's log file. Answer This error commonly occurs when you have written code that uses the front-end classes, such as NotesUIWorkspace or NotesUIDocument. For example, the following code causes the error: Dim work as new notesuiworkspace This code executes correctly when run manually. Agents run on the server but they can use only the back-end classes. Agents that run on the server include the following: Scheduled New Mail Triggered New or Modified Document Triggered Web Executed The solution is to check your code and remove all references to the UI classes. NOTE: The error message entries in the log typically include information indicating the database and agent, for example, "AMgr: Agent ('
Unix platforms created; LotusScript; Agent; LSXLC; run; agent; error; Error Creating Product Object; does not run Technote (FAQ) Question You have created a LotusScript Agent using LSXLC. When trying to run the agent, the following error occurs: "Error Creating Product Object" and the agent does not run. Answer This problem can occur for two reasons: The Unix user account that runs the Domino server does not have access to the RDBMS files that are owned by http://www-01.ibm.com/support/docview.wss?uid=swg21100331 the relational database Unix user. Required environment variables are not set to enable the agent to run on a Unix platform. For the first cause, add the Notes user to the Oracle, DB2, Sybase", etc. Unix group that owns the required relational files. For the second cause, add the required environment variables as follows: AIX Environment Variables : Set http://www.ibm.com/support/docview.wss?uid=swg21205676 and export the following environment variables in your appropriate configuration file (such as .login or .profile) so that they will be accessed each time you log on and invoke LEI. 1. Ensure that the LANG environment variable is correctly set to your proper locale and is exported. If this is not set, the default "C" is used. LANG=C 2. Ensure that the environment variable LOTUS is set as shown below: If you use the C shell, your .login file should contain the line: setenv LOTUS /opt/lotus For sh or ksh, your initialization file should contain the following: LOTUS=/opt/lotus; export LOTUS 3. Ensure that the environment variable Notes_ExecDirectory is set to specify the Notes executable directory and that the environment variable is exported. Notes_ExecDirectory=/opt/lotus/notes/latest/ibmpow 4. Ensure that the environment variable PATH is set to include the following directories and that the environment variable is exported. Notes Resource directory: $LOTUS/notes/latest/ibmpow/res/$LANG Lotus executable directory: $Notes_ExecDirectory Notes data directory (locates notes.ini file; for example /home/notes/notesdata) For example: PATH=$PATH:/opt/lotus/notes/latest/ibmpow/res/$LANG:/$Notes_ExecDirectory:/home/notes/notesdata 5. Ensure that the environment variable LIBPATH, which i
for Help Receive Real-Time Help Create a Freelance Project Hire for a Full Time Job Ways to Get Help Ask a Question Ask for Help Receive Real-Time Help Create a Freelance Project Hire for a Full Time Job Ways to Get Help Expand Search Submit Close Search Login Join Today https://www.experts-exchange.com/questions/20449235/Error-creating-product-object-when-run-an-agent.html Products BackProducts Gigs Live Careers Vendor Services Groups Website Testing Store Headlines Experts Exchange > Questions > Error creating product object when run an agent. Want to Advertise Here? Solved Error creating product object when run an agent. Posted on 2003-01-08 Lotus IBM 1 Verified Solution 5 Comments 2,809 Views Last Modified: 2013-12-18 Hi experts, I created an schedule Agent, it can run no error in manual mode, but when it run automatic at midnight as schedule it always lotus notes send out a message "Error creating product object" in Event log and I cannot get the result. How can I fixed it. Thanks & Regards, Tuan. 0 Question by:tuancd Facebook Twitter LinkedIn Google LVL 24 Best Solution byHemanthaKumar Hello Tuan, You are using Notes UI objects in your agent, which is not supported for scheduled agents. Deal with backend methods, no frontend methods. Help documentation gives you more details about Go to Solution 5 Comments LVL 13 Overall: Level lotus notes agent 13 Lotus IBM 13 Message Expert Comment by:CRAK2003-01-09 I've seen that happen before.... I was using an agent that was in it's turn using a LotusScript Library. It occured after releasing a new template containing the two, template signing by SA, design refresh in production and agent scheduling. As long as it's the plain agent code running, things run smoothly, but at the first call to the library the agent crashes. I haven't found a proper way to work around it, but having the libraries recompiled by SA first, and consequently having the agent recompiled by them (after signing) appears to work for now (untill the next release...). The problem even occurred when neither the agent nor the library were changed in the new release! Is this what happens in your case to? 0 LVL 63 Overall: Level 63 Lotus IBM 11 Message Active 1 day ago Expert Comment by:Zvonko2003-01-09 HI CRAK :-) Hello Tuan, do you use NotesAgent.RunOnServer() inside your agent? If so, then you are not allowed to create OLE objects. Change it simply to: NotesAgent.Run() 0 LVL 63 Overall: Level 63 Lotus IBM 11 Message Active 1 day ago Expert Comment by:Zvonko2003-01-09 Oh, sorry. Is this product installed in same version on Domino server as your product installation on testing workstation? Keep in mind that Notes client agents are ALWAYS executed locally (except you call inline RunOnServer method) 0 LVL 13 Overall: