Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: 1129: OleInitiate: Initiate Failed
The following statement causes an error:
objSession = ObjectOpen("MAPI.Session")The error is 1129: OleInitiate: Initiate Failed.
MAPI.Session.1I have MAPI installed, but do not have the MAPI.Session key in my registry under HKEY_Classes_Root.
Some OLE applications do not put in the required registry entries that allow us to automatically start them. But if they are already running then it works.
Perhaps the app you are trying to automate is one of those.
Error: 1129: OleInitiate: Initiate Failed STOP On line: dao = objectopen("DAO.DBEngine.35") WinBatch 32 2001J WIL Version: 3.3jccHere's the section of code:
dao = objectopen("DAO.DBEngine.35") ws = dao.CreateWorkspace("JetWorkspace", "admin", "") db = ws.OpenDatabase(DirMgrDB) rs= db.OpenRecordSet(ExceptionsTable)
Any ideas?
It's possible that version 3.5 (35 above) isn't installed. Open up the registry editor on the PC where it doesn't work and do a search for:
DAO.DBEngineIf its installed it will show up as: DAO.DBEngine.35
objSocket = ObjectOpen("MSWinsock.Winsock") objSocket.Protocol = 1 ;UDP objSocket.RemoteHost = BCastAddr objSocket.SendData(bbpacket) ObjectClose(objSocket)
Also, you might want to check that the file "mswinsck.ocx" installed and registered on the machine. The file could be present in the system folder, but if it hasn't been registered properly (by a setup program or by using "regsvr32 mswinsck.ocx" the ObjectOpen won't be able to use it.
Article ID: W13656
Filename: 1129 OLE Initiate Failed.txt
File Created: 2003:01:24:13:57:08
Last Updated: 2003:01:24:13:57:08