Importer skips folders and messages

Status
Not open for further replies.
M

MA

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

"MA" <malauddin@gmail.com> wrote in message

news:659fcaef-40ff-4bfe-a79a-96a1ef1e67e7@b7g2000pro.googlegroups.com...
> 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
>
 
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
 
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.

"MA" <malauddin@gmail.com> wrote in message

news:eec092ee-8279-469e-8c32-54b77b18b722@x10g2000prk.googlegroups.com...
> 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
 
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)

-

"MA" <malauddin@gmail.com> wrote in message

news:eec092ee-8279-469e-8c32-54b77b18b722@x10g2000prk.googlegroups.com...
> 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
 
Thanks Ken and Dmitry for your response.


> How exactly do you construct teh folder path?


I use MAPIFolder.FullFolderPath property:

rdoSession.GetFolderFromPath(olFolder.FullFolderPath)

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
 
Thanks Ken and Dmitry for your response.


> How exactly do you construct teh folder path?


I use MAPIFolder.FullFolderPath property:

rdoSession.GetFolderFromPath(olFolder.FullFolderPath)

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

"MA" <malauddin@gmail.com> wrote in message

news:9ceb6fe1-b6b5-4407-8a34-01c2ad180d75@k6g2000prg.googlegroups.com...
> Thanks Ken and Dmitry for your response.
>
> >How exactly do you construct teh folder path?


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

> 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
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
J Move message skips messages when looping through mailbox Outlook VBA and Custom Forms 2
G Search Folders and Jump to Folder Outlook VBA and Custom Forms 2
B Sync Outlook Public Folders to Contacts Using Outlook 2
U When opening shared Calendar "The set of folders cannot be opened" Using Outlook 0
Witzker Outlook 2019 Macro to seach in all contact Folders for marked Email Adress Outlook VBA and Custom Forms 1
TomHuckstep Remove Send/Receive All Folders (IMAP/POP) button from Outlook 365 Ribbon Using Outlook 2
C Trying to move messages between imap accounts/folders Using Outlook 5
icacream Outlook 2021 Win 10 - Nothing goes in my Drafts or Sent items folders ! Using Outlook 1
kburrows Outlook Email Body Text Disappears/Overlaps, Folders Switch Around when You Hover, Excel Opens Randomly and Runs in the Background - Profile Corrupt? Using Outlook 0
P now on office 365 but getting error messages about missing Outlook 2013 cache folders Using Outlook 2
CWM550 Saving Data: Don't check certain folders Using Outlook 2
J Unable to delete folders in Outlook 2019 / Windows Using Outlook 0
D This folder up to date vs all folders up to date Using Outlook 1
e_a_g_l_e_p_i Adjusting font size in folders Using Outlook 1
Abraham Outlook 2013 Lost my folders when moving from PST to IMAP Using Outlook 11
J How to import many msg into different public folders in Outlook Outlook VBA and Custom Forms 7
I Outlook for Mac 2019 using on desktop and laptop IMAP on both need help with folders Using Outlook 1
O Cannot expand the folder. The set of folders cannot be opened. You do not have permission to log on. Using Outlook 1
F VBA to move email from Non Default folder to Sub folders as per details given in excel file Outlook VBA and Custom Forms 11
R Moved 6 months worth (approx 1500 emails) lost from moving from TPG inbox to Icloud inbox (folders) Using Outlook 3
C What folders are needed when reinstalling Outlook 2010 Using Outlook 0
P Color Code or highlight folders in Outlook 2016 Using Outlook 2
A Moving Public Folders to New Database Exchange Server Administration 3
Paul Hobbs Automatically accept "Empty Folders" prompt Outlook VBA and Custom Forms 6
R Problem moving file “Email folders.pst” to new PC Using Outlook 5
D How To Combine Share Task Folders in just one Folder Using Outlook 0
R How to Sync *all* Google Workspace Mail Folders with Outlook 2019 (MS365) Using Outlook 3
Witzker print-list-of-outlook-folders with sort posibility Outlook VBA and Custom Forms 7
vodkasoda Hiding empty Folders Outlook VBA and Custom Forms 0
C Not sync folders not found after MS Outlook 365 update Using Outlook 1
Fozzie Bear Shared Public Folders Access and Use Exchange Server Administration 0
O The Outlook API wrongfully shows an outlook folder to have zero sub-folders Outlook VBA and Custom Forms 1
O The Outlook API wrongfully shows an outlook folder to have zero sub-folders Outlook VBA and Custom Forms 2
C Outlook with Office365 - search across account, by date rate, in multiple folders - how? Using Outlook 2
D Custom Search Folders not refreshing/updating automatically Using Outlook 0
T Outlook 2016 remove envelope icon for certain folders Using Outlook 5
GregS Outlook 2016 Sent Mail absent from Sent Mail or Sent Items Folders Using Outlook 4
C Synchronizing subscribed folders causes hanging during send/receive process Using Outlook 2
R List folders in a combo box + select folder + move emails from inbox to that folder + reply to that email Outlook VBA and Custom Forms 1
N Sent emails not reflected in all IMAP Folders Using Outlook 4
A Custom VBA to sort emails into folders Outlook VBA and Custom Forms 0
jChambler iCloud folders in Outlook are not the same as on iCloud Using Outlook 6
R The way expand/collapse folders is actually meant to work? Using Outlook 2
David Langer Outlook 2016 (365) How to restore the ability to Re-Map iCloud IMAP Folders Using Outlook 5
L Merge two contacts folders Using Outlook 1
Commodore Folders always closed in move/copy items dialog box Using Outlook 3
P IMAP Folders Dialog Box Using Outlook 1
D Sort Problem with Sent Folders Using Outlook 1
E Project Management - Adding Folders for Different Folder Types Using Outlook.com accounts in Outlook 0
Rupert Dragwater How to sync all folders Using Outlook 1

Similar threads

Back
Top