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 » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Importer skips folders and messages





 
 
Thread Tools Display Modes
  #1  
Old February 6th 10, 12:03 AM posted to microsoft.public.outlook.program_vba
MA[_2_]
external usenet poster
 
Posts: 47
Default Importer skips folders and messages

Dear,

We wrote a solution to import our user's non Outlook account using
Redemption. This solution has been working fine and now a user
reported that it skips folders for some account.

Solution import some folders then skips and import again. We could not
reproduce in-house with same data.

We are using Outlook 2003 (11.8313.8221). Is there any Outlook
settings which could interfare?

Sorry, I know its general question but we are confuse about what cause
this strange behaviour.

Thanks in advance.

Regards,
MA

Ads
  #2  
Old February 8th 10, 04:05 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,638
Default Importer skips folders and messages

Since no one here knows what settings you're talking about or exactly what
your code is doing or even what folders or type of folder you're talking
about I don't see how anyone could answer the question. You need to be more
specific and to possibly show some of the code you're using.

My guess is if you can't repro and only this user reports the problem that
the problem lies between his keyboard and chair (PEBKAC).

--
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


"MA" wrote in message
...
Dear,

We wrote a solution to import our user's non Outlook account using
Redemption. This solution has been working fine and now a user
reported that it skips folders for some account.

Solution import some folders then skips and import again. We could not
reproduce in-house with same data.

We are using Outlook 2003 (11.8313.8221). Is there any Outlook
settings which could interfare?

Sorry, I know its general question but we are confuse about what cause
this strange behaviour.

Thanks in advance.

Regards,
MA


  #3  
Old February 9th 10, 03:56 AM posted to microsoft.public.outlook.program_vba
MA[_2_]
external usenet poster
 
Posts: 47
Default Importer skips folders and messages

Thanks Ken for your response.

Further debugging the code, we have found that GetFolderFromPath()
Redemption call causing an exception to access a specific folder thus
unable to process any messages.

We have a class library which return a MAPIFolder then we use
rdoSession.GetFolderFromPath(folder path) method to get an instance of
RDOFolder then create messages. Its been working great so far except
for one user where his folder name as: "90%Polyphe, 60%Cate".

- If we change the folder name to "90% Polyphe, 60% Cate" then it
works fine.
- If we use rdoSession.GetFolderFromID() method then we can access the
folder but unable to create any messages in that folder.

Its not machine/account specific, we can reproduce in different
account. Any thoughts?


Regards,
MA
  #4  
Old February 9th 10, 03:26 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,638
Default Importer skips folders and messages

That sounds like a bug in your version of Redemption's GetFolderFromPath()
method. If I were you I'd ping Dmitry and see if he knows of the bug and if
he has a fix in place.

--
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


"MA" wrote in message
...
Thanks Ken for your response.

Further debugging the code, we have found that GetFolderFromPath()
Redemption call causing an exception to access a specific folder thus
unable to process any messages.

We have a class library which return a MAPIFolder then we use
rdoSession.GetFolderFromPath(folder path) method to get an instance of
RDOFolder then create messages. Its been working great so far except
for one user where his folder name as: "90%Polyphe, 60%Cate".

- If we change the folder name to "90% Polyphe, 60% Cate" then it
works fine.
- If we use rdoSession.GetFolderFromID() method then we can access the
folder but unable to create any messages in that folder.

Its not machine/account specific, we can reproduce in different
account. Any thoughts?


Regards,
MA


  #5  
Old February 9th 10, 06:06 PM posted to microsoft.public.outlook.program_vba
Dmitry Streblechenko
external usenet poster
 
Posts: 2,089
Default Importer skips folders and messages

How exactly do you construct teh folder path? You yo uretrieve it from the
MAPIFolder.FodlerPath property? Or build it in your code?
Note tha tspecial charcaters (including "%") are encoded. E.g. in case of "%
something", the folder path will be "%% something".
GetFolderFromID is preferable. If you are unable to create in messages in
teh folder returned by GetFolderFromID, chances are you are passing 0 for
the last (Flags) parameter, which opens the folder in the read-only mode.
Pass MAPI_BEST_ACCESS (0x10) or Missing.Value (in case of .Net) - the
parameter is optional.

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"MA" wrote in message
...
Thanks Ken for your response.

Further debugging the code, we have found that GetFolderFromPath()
Redemption call causing an exception to access a specific folder thus
unable to process any messages.

We have a class library which return a MAPIFolder then we use
rdoSession.GetFolderFromPath(folder path) method to get an instance of
RDOFolder then create messages. Its been working great so far except
for one user where his folder name as: "90%Polyphe, 60%Cate".

- If we change the folder name to "90% Polyphe, 60% Cate" then it
works fine.
- If we use rdoSession.GetFolderFromID() method then we can access the
folder but unable to create any messages in that folder.

Its not machine/account specific, we can reproduce in different
account. Any thoughts?


Regards,
MA



  #6  
Old February 10th 10, 12:29 AM posted to microsoft.public.outlook.program_vba
MA[_2_]
external usenet poster
 
Posts: 47
Default Importer skips folders and messages

Thanks Ken and Dmitry for your response.

How exactly do you construct teh folder path?


I use MAPIFolder.FullFolderPath property:
rdoSession.GetFolderFromPath(olFolder.FullFolderPa th)

You are spot on Dmitry about the flag in GetFolderFromID() method.
After using the Missing.Value flag, I can create messages in that
folder. I think Redemption docs need be bit clear about the flag.

RDOFolder rdofolder = rdoSession.GetFolderFromID(olFolder.EntryID,
olFolder.StoreID, System.Reflection.Missing.Value);

Thanks heaps guys for your valuable response.

Cheers,
MA
  #7  
Old February 10th 10, 12:32 AM posted to microsoft.public.outlook.program_vba
MA[_2_]
external usenet poster
 
Posts: 47
Default Importer skips folders and messages

Thanks Ken and Dmitry for your response.

How exactly do you construct teh folder path?


I use MAPIFolder.FullFolderPath property:
rdoSession.GetFolderFromPath(olFolder.FullFolderPa th)

You are spot on Dmitry about the flag in GetFolderFromID() method.
After using the Missing.Value flag, I can create messages in that
folder. I think Redemption docs need be bit clear about the flag.

RDOFolder rdofolder = rdoSession.GetFolderFromID(olFolder.EntryID,
olFolder.StoreID, System.Reflection.Missing.Value);

Thanks heaps guys for your valuable response.

Cheers,
MA
  #8  
Old February 10th 10, 03:13 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,638
Default Importer skips folders and messages

For the other question, you could do something similar to what I do when I
play with text intended for XML or a file name, I run the code through a
sanity check procedure that makes sure any text is legal and formatted
correctly.

For example, replace all "&" characters with "&" for XML or replacing
all "/" characters with "-" for file names, etc.

--
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


"MA" wrote in message
...
Thanks Ken and Dmitry for your response.

How exactly do you construct teh folder path?


I use MAPIFolder.FullFolderPath property:
rdoSession.GetFolderFromPath(olFolder.FullFolderPa th)

You are spot on Dmitry about the flag in GetFolderFromID() method.
After using the Missing.Value flag, I can create messages in that
folder. I think Redemption docs need be bit clear about the flag.

RDOFolder rdofolder = rdoSession.GetFolderFromID(olFolder.EntryID,
olFolder.StoreID, System.Reflection.Missing.Value);

Thanks heaps guys for your valuable response.

Cheers,
MA


 




Thread Tools
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
Move message skips messages when looping through mailbox John_Ba Outlook and VBA 2 September 17th 09 09:48 AM
Outlook Importer/exporter EJR Outlook - Using Contacts 2 June 29th 09 10:53 PM
Find Skips Certain Fields Andrei Outlook - Using Contacts 2 January 17th 07 05:00 PM
OE6 Skips Lines When Entering Message Bobbie Ale Outlook Express 3 February 27th 06 07:21 AM
importer dans outlook express Nicole Nolletal1 Outlook - General Queries 2 February 21st 06 04:10 PM


All times are GMT +1. The time now is 05:31 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2010 Outlook Banter, part of the NewsgroupBanter project.
The comments are property of their posters.
Electronics - Egyptian Properties - Find services - Credit Consolidation - Credit Consolidation