Getting MAPI_E_NOT_ENOUGH_MEMORY, 0x8007000E when processing large PSTs.

Omkar Deshpande 1 Reputation point
2021-01-29T07:37:44.31+00:00

Hi All,
We are processing large PST file programmatically, making few changes in emails and then storing back into the PST. We are kind of doing it for each and every mail in PST. But after certain number of emails processing(around 13922-13924) we start getting MAPI_E_NOT_ENOUGH_MEMORY( 0x8007000E) error and we can not open PST objects/mails afterwards. We have to stop our exe and then rerun it. It then starts processing next remaining mails from PST and again starts giving same error after processing next batch of 13922 around mails.
Our process's memory consumption goes max 130MB when we start getting error. There is enough RAM(12gb) and disc space(30gb+) available.
Are we missing to release anything which could be related to MAPI which does not come under memory, handle or thread utilization?
Also please help us to understand reason behind this type of errors and possible solution.

Thanks in advance.

Outlook Management
Outlook Management
Outlook: A family of Microsoft email and calendar products.Management: The act or process of organizing, handling, directing or controlling something.
4,911 questions
Exchange Server Development
Exchange Server Development
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Development: The process of researching, productizing, and refining new or existing technologies.
516 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. JeffYang-MSFT 6,241 Reputation points Microsoft Vendor
    2021-02-01T08:53:28.6+00:00

    Hi @Omkar Deshpande ,

    Welcome!

    According to your description, you were trying to process large PST file programmatically. So, are you using Outlook desktop client or something else? I tried some research about Outlook memory error, in Outlook desktop client, similar issue might indeed happen when you open large size of PST files or corrupted PST files. Please check the suggestions in this article and see if it could make this issue better. (Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.)

    Any update, please feel free to post back.


    If an Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.