PartialCompletion error calling CopyMessages on IMAPIFolder

R

rvangeldrop

Hello,

I writing a small program to copy messages of a mailbox folder into a .pst
file. It works fine but sometime i receive a PartialCompletion error from the
CopyMessages method on the IMAPIFolder.
Does anyone knows why this occurs? What are the consequences of such an
error/warning?

Thanks for your help,

Robbert
 
D

Dmitry Streblechenko

How many messages do you copy? Have you tried to copy one message at a time?
Do the messages actually get copied?

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
R

rvangeldrop

Hello Dimitri,

Your questions are a bit irrelevant. Let me rephrase my question so you can
help me better:

I'm looking for functions in MAPI to call to get the exact cause for the
'PartialComplete' result. One cause is 'lack of diskspace' but we are running
tests on a system with plenty of diskspace.

How can I drill down in the MAPI interface after I get this PartialComplete
to find more details on why this result was returned?

Thanks ahead
 
K

Ken Slovak - [MVP - Outlook]

One of the things Dmitry is getting at is the RPC channel limit on
connections to the server, so not really an irrelevant question.
 
R

rvangeldrop

Dear Ken,

I'm running the code on the same machine as where Exchange is running. One
of the mailbox items (being 'Sent Items) on which this call fails contains
14.000 messages.

Still, if there is a limit considering this RPC interface surely there must
be a way by code to find out the exact cause of the PartialComplete?

How can I drill down in the MAPI interface after I get this PartialComplete
to find more details on why this result was returned?

Thanks ahead
 
D

Dmitry Streblechenko

Have you tried to call IMAPIFolder::GetLastError?
I don't see how this is an irrelevant question - what is the end result of
that call? Do any messages get copied? All of them? None at all?

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
R

rvangeldrop

Hello Dmitry,

I did not try GetLastError yet.

To answer your other questions: the function call returns with a
PartialCompletion result almost immediately, so for my feeling none of the
items is copied. The target is an empty, existing PST.

Kind regards,

rvangeldrop
 
K

Ken Slovak - [MVP - Outlook]

The best way I know of is to use GetLastError.

Certainly when iterating 14000 items you could run into the 256 RPC channel
limit. After how many items does your code fail?
 
R

rvangeldrop

I tried to call GetLastError and this is the result:

Component: Microsoft Exchange Server Information Store
Error: there is not enough memory available to perform this operation
LowLevelError: 1009

I cannot find any resources that describe this error or how to handle it.
Any ideas on what causes the Information Store to run out of memory?

It is strange, too, since this call returns with this error instantly.

Thanks ahead.
 
R

rvangeldrop

Hello Ken,

If so, how could I check that?

What is the best workaround for this problem?

Thanks,

rvangeldrop
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top