A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

PartialCompletion error calling CopyMessages on IMAPIFolder



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old November 19th 07, 12:27 PM posted to microsoft.public.outlook.program_addins
rvangeldrop
external usenet poster
 
Posts: 7
Default PartialCompletion error calling CopyMessages on IMAPIFolder

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
Ads
  #2  
Old November 20th 07, 06:55 AM posted to microsoft.public.outlook.program_addins
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default PartialCompletion error calling CopyMessages on IMAPIFolder

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

"rvangeldrop" wrote in message
...
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



  #3  
Old November 20th 07, 03:11 PM posted to microsoft.public.outlook.program_addins
rvangeldrop
external usenet poster
 
Posts: 7
Default PartialCompletion error calling CopyMessages on IMAPIFolder

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

"Dmitry Streblechenko" wrote:

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

"rvangeldrop" wrote in message
...
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




  #4  
Old November 20th 07, 03:59 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default PartialCompletion error calling CopyMessages on IMAPIFolder

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

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"rvangeldrop" wrote in message
...
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


  #5  
Old November 20th 07, 04:23 PM posted to microsoft.public.outlook.program_addins
rvangeldrop
external usenet poster
 
Posts: 7
Default PartialCompletion error calling CopyMessages on IMAPIFolder

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


"Ken Slovak - [MVP - Outlook]" wrote:

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

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"rvangeldrop" wrote in message
...
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



  #6  
Old November 20th 07, 05:48 PM posted to microsoft.public.outlook.program_addins
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default PartialCompletion error calling CopyMessages on IMAPIFolder

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

"rvangeldrop" wrote in message
...
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

"Dmitry Streblechenko" wrote:

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

"rvangeldrop" wrote in message
...
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






  #7  
Old November 20th 07, 06:15 PM posted to microsoft.public.outlook.program_addins
rvangeldrop
external usenet poster
 
Posts: 7
Default PartialCompletion error calling CopyMessages on IMAPIFolder

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

"Dmitry Streblechenko" wrote:

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

"rvangeldrop" wrote in message
...
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

"Dmitry Streblechenko" wrote:

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

"rvangeldrop" wrote in message
...
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






  #8  
Old November 20th 07, 07:05 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default PartialCompletion error calling CopyMessages on IMAPIFolder

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?

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"rvangeldrop" wrote in message
...
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


  #9  
Old November 21st 07, 02:08 PM posted to microsoft.public.outlook.program_addins
rvangeldrop
external usenet poster
 
Posts: 7
Default PartialCompletion error calling CopyMessages on IMAPIFolder

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.

"Ken Slovak - [MVP - Outlook]" wrote:

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?

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"rvangeldrop" wrote in message
...
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



  #10  
Old November 21st 07, 02:23 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default PartialCompletion error calling CopyMessages on IMAPIFolder

It could be caused by the lack of available RPC channels.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"rvangeldrop" wrote in message
...
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.


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calling a Contact using VOIP Scott Outlook - Using Contacts 1 September 20th 07 10:27 PM
Calling an Add-in method from another Application David Add-ins for Outlook 1 March 17th 07 06:33 PM
contacts calling Jeff Outlook - Using Contacts 3 March 1st 07 10:39 PM
Calling all MVPs Rob Outlook - General Queries 1 July 25th 06 04:04 AM
Calling For Backup! Ron Outlook Express 2 July 14th 06 05:42 PM


All times are GMT +1. The time now is 09:32 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.