# API Initialization Error Code 40

**URL:** <https://techcommunity.softwareag.com/t/api-initialization-error-code-40/90605>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, Natural-Other-Addons, Natural-Related-Products, Terminal-Emulation-and-Screen-Scraping\
**Created:** [July 2, 2009, 10:37pm UTC](https://techcommunity.softwareag.com/t/api-initialization-error-code-40/90605 "2009-07-02T22:37:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mike\_Mann](https://avatars.discourse-cdn.com/v4/letter/m/a5b964/32.png) [@Mike\_Mann](https://techcommunity.softwareag.com/u/Mike_Mann)\
**Post date:** [July 2, 2009, 10:37pm UTC](https://techcommunity.softwareag.com/t/api-initialization-error-code-40/90605/1 "2009-07-02T22:37:00Z")

</div>

Using PccAPI.ocx with Excel 2007 and Entire Connection 4.5.1.2, the Initialize method consistently returns error code 40. Per Readme.txt, this is due to a COM security setting. I reset the AuthenticationLevel to ‘None’ using DCOMCNFG as suggested, but this has not resolved the error. Also, I am logged in with admin privileges.

Initialize worked with Excel 2003 and EC 4.4.1.0.

Any ideas? Thanks!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 2:57pm UTC](https://techcommunity.softwareag.com/t/api-initialization-error-code-40/90605/2 "2021-04-02T14:57:14Z")

</div>


