Forum Discussion

NH's avatar
NH
Regular Visitor
3 years ago

Outlook fail testcomplete: Server execution failed, ClassID: {0006F03A-0000-0000-C000-000000000046}

Hello, 

I am trying to read outlook emails in testcomplete but I am getting this error when running my script:

Server execution failed, ClassID: {0006F03A-0000-0000-C000-000000000046} 

 

This is the function I am running and getting the above error with the first line:

let Outlook = Sys.OleObject("Outlook.Application");
let mapi = Outlook.GetNamespace("MAPI");

Log.Message("openOutlook");

 

I tried closing outlook before running the script and running testcomplete as admin, but neither has worked. 

Is there a solution for this error, or is there another method to reading outlook emails in testcomplete?

  • Mr_Bro's avatar
    Mr_Bro
    Frequent Contributor

    Hi NH ,

    please follow the steps and let me know if this solved your issue.

    steps:

    • kill the Outlook application using task manager as sometimes the outlook will be running in the background.
    • check the version of outlook being installed on your system
    • run the same version of TestComplete (TC x86 version should be launched if to match with outlook 32 bit)