Is this code running against Outlook connected to an Exchange server? If so it's possible the code is running into the 255 open RPC channel limit that's the default for Exchange. That limit can only be changed in the registry of the Exchange server. What happens is that an RPC channel is opened for every Outlook object reference. If you are opening an item that opens a channel. If you access a property on the item that can open a channel. Use of dot operators opens internal variable objects that aren't released until the loop ends or the procedure exits. I don't know your code but it's possible that's the problem. In that case make sure that you explicitly declare variables for each dot operator and release all objects instantiated within any loops by setting them to Nothing each pass through the loop.
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
"rich" <rich@discussions.microsoft.com> wrote in message news:AE078944-BF12-4BA6-B17E-4FE926FBBBD8@microsoft.com...
> Hello All, > > I have a user who has an MS-Access application used to distribute surveys. > The application interops with Outlook to distribute the survey to 995 > users. > No problems with this application in the past. After selecting the 995 > users > from a Word document, the application then tries to load the 995 > recipients > to send them. It loads 65 users, then the following error is encountered: > > Error: A fatal error has occurred -2147221233 (collaboration data objects > -(MAPI_E_NOT_FOUND))) -2147221233. > > I Googled the error and found: > Reference: http://support.microsoft.com/kb/254567 > The above page also references > http://support.microsoft.com/kb/166599/EN-US/. This page has a registry > hack as resolution. > > This is the fix recommended in the above 2nd KB article: > HKEY_LOCAL_MACHINE/Software/Microsoft/Windows Messaging SubsystemTo create > the registry entry, do the following: > 1. Start Registry Editor (Regedt32.exe) and go to the following key: > HKEY_LOCAL_MACHINE/Software/Microsoft/Windows Messaging Subsystem > 2. On the Edit menu, click Add Value. > 3. Type the following values: > String Value: ProfileDirectory > Value Data: Path to the directory you want the temporary files to be > created > in. > Example: C:\MyComputer\Temporary. > > This does not pan out as there are no permission issues and using FileMon, > I > don't see where anything is trying to access folders for which the user > does > not have access. Also, a web server nor the IUSR account is not involved > in > the application. > > Can anyone help me understand / troubleshoot this error? > > TIA, > > Rich > >
01 May 2008Troubleshooting "MAPI_E_NOT_FOUND" error.rich
01 May 2008\ Re: Troubleshooting "MAPI_E_NOT_FOUND" error.Ken Slovak - [MVP - O...
01 May 2008   \ Re: Troubleshooting "MAPI_E_NOT_FOUND" error.rich
01 May 2008      \ Re: Troubleshooting "MAPI_E_NOT_FOUND" error.Ken Slovak - [MVP - O...
All times are in (US) Eastern Daylight Time (GMT -4:00)