Lotus Notes Error Cannot Create Automation Object
CreateObject function on server Notes; Workstation/Desktop; Application Development; LotusScript Technote (FAQ) Question When the LotusScript CreateObject function is executed repeatedly on a Lotus Domino server, the function will sometimes fail with the following error: error 208 cannot create automation object lotus notes "Cannot create automation object." This issue occurs when using the LotusScript RunOnServer method to execute ole automation object error lotus notes the agent containing the CreateObject call. The issue has not been observed with scheduled agents. The log entry will look similar to the below: "Addin: Agent '
? Ask a question, help others, and get answers from the community Discussions Start a thread and discuss today's topics with top experts Blogs Read the latest tech blogs written by experienced community members CreateObject function fails - Cannot Create Automation Object Simonm pts. Tags: Thanks! We'll email youwhen relevant content isadded and updated. Following Follow Development Thanks! We'll email youwhen relevant content isadded and updated. Following Follow LotusScript I am running this piece of code: 'CreateObject("Excel.Application")' The context of the code is correct (i.e. its in the right place), as is the syntax (spelling, variable assigment etc.) I receive the error "Cannot Create Automation Object" (Error code 208) when the code is run in an agent on a http://www-01.ibm.com/support/docview.wss?uid=swg21088529 Domino 6 server. Excel IS installed correctly on the server, registry settings are correct, and the agent is set to run under runtime security level 3. I have searched numerous resources and tried numerous solutions, none of which have helped. Any and all advice gratefully received! Asked: February 14, 20059:44 AM Last updated: December 2, 20136:04 AM Related Questions LotusScript/Lotus Notes Fixing violation errors found with CHKOBJITG Calling perl script with function Shell in Lotus http://itknowledgeexchange.techtarget.com/itanswers/createobject-function-fails-cannot-create-automation-object/ Notes Agent Calling perl script in a agent Error Message when running Lotus Script Agent Answer Wiki Last updated: February 15, 20051:59 AM GMT Madkahuna15 pts. History Contributors Ordered by most recent Madkahuna15 pts. Thanks. We'll let you know when a new response is added. As a test install the Designer on the server and see if you can see the excel objects in the OLE Classes. If you do not see them then you do not have Excel installed and registerd correctly so that Domino can see it. Some installations of Excel need to have the the line read something like CreateObject("Excel.Application.11")' This is for Excel 2003. Good luck. These can be a pain to troubleshoot. As a test install the Designer on the server and see if you can see the excel objects in the OLE Classes. If you do not see them then you do not have Excel installed and registerd correctly so that Domino can see it. Some installations of Excel need to have the the line read something like CreateObject("Excel.Application.11")' This is for Excel 2003. Good luck. These can be a pain to troubleshoot. Please enter an answer. Send me notifications when members answer or reply to this question. Register Hereor login if you are already a member E-mail User Name Password Forgot Password? By submitting you agree to receive
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more http://stackoverflow.com/questions/32917724/lotusscript-agent-for-wia-causes-error-when-run-on-domino-server about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up LotusScript agent for WIA causes error when run on Domino server up vote 0 down vote favorite I have a LotusScript agent that runs after new mail lotus notes arrives. The agent returns: err 208 Cannot create automation object when enabled on the server, but runs fine when changed to run from the menu on selected docs using the Notes client. Dim oImage As Variant Dim oProcess As Variant Dim lngH As Long, lngW As Long 'Build the object -- works from Notes client but not from server agent... Set oImage = CreateObject("WIA.ImageFile") 'load it oImage.LoadFile sFileName lngH = oImage.Height lngW = oimage.Width The error occurs cannot create automation when trying to CreateObject("WIA.ImageFile") The wiaaut.dll file resides in the domino\data directory -- as well as the notes\data directory. I am not sure if or how any permissions may need to be set. The LotusScript agent is signed with an ID listed in a Group in the Domino Directory that is listed in the Server doc to Sign or run unrestricted methods and operations And the Security for the agent is set to Allow restricted operations with full administrator rights. This signing ID is working well with other agents performing restricted operations. I think the error is specific to the WIA object. Any thoughts? lotus-notes lotus-domino lotusscript wia share|improve this question asked Oct 3 '15 at 0:38 teleman 1559 What OS version is the server running on? Is it running as a service? I don't know much about WIA, but from what little I've read about it I have a feeling that it includes capabilities that services can't get at due to security restrictions in more recent versions of Windows. –Richard Schwartz Oct 3 '15 at 4:02 The OS is Windows Server 2012 R2. Domino 9.01 server (64-bit) is running as a service. Notes Client is Domino Developer (32-bit). –teleman Oct 3 '15 at 5:11 2 Are you using the 64bit version of the dll? Your dll bitness needs to match your d