![]() |
Items collection doesn't contain all items
Hi,
I found some strange behaviour in Outlook 2007. I tried to itterate through all items of a folder usinf the items property. On the first time some of the items were missing. Calling the function a second time all items were returned. After that I tried it using a table and now everything worked fine. Btw. there are only about 30 items in the folder. Best Tom |
Items collection doesn't contain all items
Do you have a script that exhibits this problem? How do you know tha tsome
items are missing? Can you see them inm Outlook before the script runs? -- Dmitry Streblechenko (MVP) http://www.dimastr.com/ OutlookSpy - Outlook, CDO and MAPI Developer Tool - "escamoteur" wrote in message ... Hi, I found some strange behaviour in Outlook 2007. I tried to itterate through all items of a folder usinf the items property. On the first time some of the items were missing. Calling the function a second time all items were returned. After that I tried it using a table and now everything worked fine. Btw. there are only about 30 items in the folder. Best Tom |
Items collection doesn't contain all items
Unfortunately I don't have the code anymore after I changed it to the Table solution. Now it works fine for me.
Yes, I new which Items should be there and always on the first run I got a Null reference exception when trying to access fields of one of the items returned by foreach The second time I called the function this problem did not occur. I just wondered I somebody else had similiar problems. Best Tom "Dmitry Streblechenko" schrieb im Newsbeitrag ... Do you have a script that exhibits this problem? How do you know tha tsome items are missing? Can you see them inm Outlook before the script runs? -- Dmitry Streblechenko (MVP) http://www.dimastr.com/ OutlookSpy - Outlook, CDO and MAPI Developer Tool - "escamoteur" wrote in message ... Hi, I found some strange behaviour in Outlook 2007. I tried to itterate through all items of a folder usinf the items property. On the first time some of the items were missing. Calling the function a second time all items were returned. After that I tried it using a table and now everything worked fine. Btw. there are only about 30 items in the folder. Best Tom |
Items collection doesn't contain all items
Hard to say without seeing the relevant snippet of your code.
-- Dmitry Streblechenko (MVP) http://www.dimastr.com/ OutlookSpy - Outlook, CDO and MAPI Developer Tool - "escamoteur" wrote in message ... Unfortunately I don't have the code anymore after I changed it to the Table solution. Now it works fine for me. Yes, I new which Items should be there and always on the first run I got a Null reference exception when trying to access fields of one of the items returned by foreach The second time I called the function this problem did not occur. I just wondered I somebody else had similiar problems. Best Tom "Dmitry Streblechenko" schrieb im Newsbeitrag ... Do you have a script that exhibits this problem? How do you know tha tsome items are missing? Can you see them inm Outlook before the script runs? -- Dmitry Streblechenko (MVP) http://www.dimastr.com/ OutlookSpy - Outlook, CDO and MAPI Developer Tool - "escamoteur" wrote in message ... Hi, I found some strange behaviour in Outlook 2007. I tried to itterate through all items of a folder usinf the items property. On the first time some of the items were missing. Calling the function a second time all items were returned. After that I tried it using a table and now everything worked fine. Btw. there are only about 30 items in the folder. Best Tom |
Items collection doesn't contain all items
Doesn't matter, If it comes up again I will post a new message
Best Tom "Dmitry Streblechenko" schrieb im Newsbeitrag ... Hard to say without seeing the relevant snippet of your code. -- Dmitry Streblechenko (MVP) http://www.dimastr.com/ OutlookSpy - Outlook, CDO and MAPI Developer Tool - "escamoteur" wrote in message ... Unfortunately I don't have the code anymore after I changed it to the Table solution. Now it works fine for me. Yes, I new which Items should be there and always on the first run I got a Null reference exception when trying to access fields of one of the items returned by foreach The second time I called the function this problem did not occur. I just wondered I somebody else had similiar problems. Best Tom "Dmitry Streblechenko" schrieb im Newsbeitrag ... Do you have a script that exhibits this problem? How do you know tha tsome items are missing? Can you see them inm Outlook before the script runs? -- Dmitry Streblechenko (MVP) http://www.dimastr.com/ OutlookSpy - Outlook, CDO and MAPI Developer Tool - "escamoteur" wrote in message ... Hi, I found some strange behaviour in Outlook 2007. I tried to itterate through all items of a folder usinf the items property. On the first time some of the items were missing. Calling the function a second time all items were returned. After that I tried it using a table and now everything worked fine. Btw. there are only about 30 items in the folder. Best Tom |
All times are GMT +1. The time now is 12:35 PM. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com