Lotus Notes Script 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 the error "Error creating product object" into server logs every night. When I run http://www-01.ibm.com/support/docview.wss?uid=swg21100331 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 : Call MyFunction() The library MyLibrary : MyFunction does nothing more than setting up some arrays, playing with strings, doing http://www-10.lotus.com/ldd/nd6forum.nsf/DateAllFlatweb/af341054a16c09fe852575b70038215c?OpenDocument 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 excerpt Author Category Platform Release Advanced search Sign In or Register Sign in Forgot your password? Forgot your user name? Create new registration RSS feeds All forum posts RSSAll main topics RSSMore Lotus RSS feeds Resources Resources Forum use and etiquette
Coding and Development View All Ajax Development Security Eclipse HTML J2EE Java JavaScript LEI and DECS Domino Designer Agents Application Development Formula Mobile and Wireless http://searchdomino.techtarget.com/answer/Error-creating-product-object Development Web Development XML and Web Services IBM Lotus Messaging and Collaboration Clients View All Domino Web Access (iNotes) Lotus Notes 5 Lotus Notes 6 Lotus Notes 7 Lotus Notes 8 Lotus Sametime Instant Messaging Mobile Devices IBM Lotus Messaging and Collaboration Servers View All IBM WebSphere lotus notes Lotus Domino Server 5 Lotus Domino Server 6 Lotus Domino Server 7 Lotus Domino Server 8 Lotus Quickr Notes/Domino Administration View All Domino Directory Administration Tools AdminP LDAP Calendar and Contact Management Interoperability Licensing Monitoring and Logging Performance User Settings Notes.ini Notes/Domino Coding and Development View All Ajax lotus notes script Development Security Eclipse HTML J2EE Java JavaScript LEI and DECS Domino Designer Agents Application Development Formula LotusScript Mobile and Wireless Development Web Development XML and Web Services Notes/Domino Data Management and Storage View All Archiving Backup and Recovery Clustering Database Management Hardware Management Mailbox Management Replication and Synchronization Storage Management Notes/Domino Deployment and Migration View All Deployment and Migration Advice Deployment and Migration Tools Notes/Domino Security View All Compliance Management Compliance tools Access, Permissions and Authentication Antispam Software and Spam Filtering Antivirus Software and Virus Protection Email Compliance Email Encryption Firewalls Password Management Phishing and Email Fraud Protection Policy Management Topics Archive View All Domino Resources Domino Resources - Part 2 Domino Resources - Part 3 Domino Resources - Part 4 Domino Resources - Part 5 Domino Resources - Part 6 Domino Resources - Part 7 Domino Resources -