![]() |
| 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. |
|
|||||||
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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
|
|||
|
|||
|
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
|
|||
|
|||
|
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
|
|||
|
|||
|
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
|
|||
|
|||
|
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
|
|||
|
|||
|
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
|
|||
|
|||
|
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
|
|||
|
|||
|
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 | Search this Thread |
| Display Modes | |
|
|
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 08:48 AM |
| Outlook Importer/exporter | EJR | Outlook - Using Contacts | 2 | June 29th 09 09:53 PM |
| Find Skips Certain Fields | Andrei | Outlook - Using Contacts | 2 | January 17th 07 04:00 PM |
| OE6 Skips Lines When Entering Message | Bobbie Ale | Outlook Express | 3 | February 27th 06 06:21 AM |
| importer dans outlook express | Nicole Nolletal1 | Outlook - General Queries | 2 | February 21st 06 03:10 PM |