Lotus Notes Error Message 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 ('
Training Support Forums & community Events Rational Tivoli WebSphere Java technology Linux Open source SOA and Web services Web development XML My developerWorks About dW Submit content Feedback developerWorks>Lotus>Forums & community>Notes/Domino 6 and 7 Forum Notes/Domino 6 and 7 Forum Error "Error creating product object" without any distant DB connection Sign in to participate Previous Next Error "Error creating product object" without any distant DB connection Posted by Pascal Faucon on 15.May.09 at 06:13 AM using a Web browserCategory: Applications DevelopmentRelease: 6.5.5Platform: Windows XP Hi all, I'm having a problem I cannot understand. I have this schedule agent which provokes http://www-01.ibm.com/support/docview.wss?uid=swg21100331 the error "Error creating product object" into server logs every night. When I run the agent manually : no problem, every thing works just fine. After some research here and there, I found that most of the time, this error comes from some db connection (DB2, Oracle, whatever...). But the fact is, I have no db connection at all in my code. The agent : (Options) : Use "MyLibrary" Initialize http://www-10.lotus.com/ldd/nd6forum.nsf/DateAllFlatweb/af341054a16c09fe852575b70038215c?OpenDocument : Call MyFunction() The library MyLibrary : MyFunction does nothing more than setting up some arrays, playing with strings, doing an internal db.search, then making some changes inside research resulting documents and that's pretty much it. And of course, as a schedule agent, I'm doing some log inside AgentLog.nsf database, with NotesLog class, just to see afterward what happened... or not. So I cannot understand why I'm getting this annoying error "Error creating product object" (and without being able to know why and where it occurs in the code). Of course nothing is written in the AgentLog.nsf db. Too bas it's impossible to debug a runOnServer agent... Does anyone has any idea about why this error occurs ? Anything would help. Thanks in advance Regards Pascal Return to top Error "Error creating product objec... (Pascal Faucon 15.May.09) . . RE: Error "Error creating product o... (Stuart Bogom 15.May.09) . . . . RE: Error "Error creating product o... (Pascal Faucon 15.May.09) . . RE: Error "Error creating product o... (Melissa L Snell... 15.May.09) . . . . RE: Error "Error creating product o... (Pascal Faucon 15.May.09) Document options Print this page Search this forum Forum views and search Date (threaded) Date (flat) With exc
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 https://www.experts-exchange.com/questions/20449235/Error-creating-product-object-when-run-an-agent.html Job Ways to Get Help Expand Search Submit Close Search Login Join Today 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, lotus notes I created an schedule Agent, it can run no error in manual mode, but when it run automatic at midnight as schedule it always 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 lotus notes error 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 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?