Error happened when try to get Outlook Mail Messages

Get the Outlook Mail Messages and output the “Date” by loop process. Error happened like below

Also i found another problem about mail’s “Sort”.
I using vbnet code as below to sort the mail descend by mail’s date. I checked the result found sort result is diffrent every time.

wk_MailList = wk_MailList.OrderByDescending(Function(x) DateTime.ParseExact( x.Headers(“Date”).ToString,“MM/dd/yyyy HH:mm:ss”,System.Globalization.CultureInfo.InvariantCulture).ToString(“yyyy/MM/dd”)).ToList()

Please check to see if this link helps:

Who can tell me the limitation of a read a message from Outlook? Thank you in advance.

Remove any arguments that specified in “Get Outlook Mail Messages”, will fix this issue.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.