MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




OLE error 80040E04 when using QueryAllRecords or QueryCircle

This is a discussion on OLE error 80040E04 when using QueryAllRecords or QueryCircle within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I randomly get an OLE error 80040E04 whenever I use the QueryAllRecords or QueryCircle method of a dataset. Has anyone ...


Go Back   MapPoint Forums > Map Forums > MapPoint 2006/2009 Discussion

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read



Click here to register

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-31-2005
Junior Member
Yellow Belt
 
Join Date: Jun 2004
Posts: 27
OLE error 80040E04 when using QueryAllRecords or QueryCircle

I randomly get an OLE error 80040E04 whenever I use the QueryAllRecords or QueryCircle method of a dataset. Has anyone else experienced this and is there a reason/solution ?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 11-02-2005
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,122
Hi,

a short time back someone posted this: http://support.microsoft.com/default...b;en-us;299720

Possible same bug occurs in other findresults.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 12-06-2005
Junior Member
Yellow Belt
 
Join Date: Dec 2003
Posts: 12
Re: OLE error 80040E04 when using QueryAllRecords

I recently wrote some new code and started seeing this. Did you happen to find a work around for this problem?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4 (permalink)  
Old 12-07-2005
Junior Member
Yellow Belt
 
Join Date: Jun 2004
Posts: 27
Unfortunately no. The error appears completely randomly, even using the same data, sometimes I get no errors and others times I do get an error - it is very frustrating. I get the impression that either using OLE at all or specifically Mappoint isn't entirely stable
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5 (permalink)  
Old 12-07-2005
Junior Member
Yellow Belt
 
Join Date: Dec 2003
Posts: 12
Given that it seems random, I was going to try:
1) do some other queries first and then come back to this one.
2) put a loop around the try/catch for the query and loop until it works
3) #2 but with waiting a small amount of time.

Have you tried any of these with any success?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6 (permalink)  
Old 12-07-2005
Junior Member
Yellow Belt
 
Join Date: Jun 2004
Posts: 27
not as yet - i do plan on trying it x number of times and raising the exception if it fails after this many. If you find this works please let me know.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7 (permalink)  
Old 12-08-2005
Junior Member
Yellow Belt
 
Join Date: Dec 2003
Posts: 12
I was able to get it to work with my testcase (56 separate datasets, each one queried 30 times) by catching the error and then retrying after I had finished processing the other datasets. There were 11 failures, none of which failed on the second query. Here is what is used. I will post again if I find this is not working with other sets of data.

-sthurlock


Code:
   'for/next - set all locations in skipped_routes to True 
   routes_left_to_process = True

   Do While routes_left_to_process = True
      routes_left_to_process = False    ' this will be reset in the catch below if there are 
      '                                   any problems w/Queryallrecords else drop out of while loop
      For r = 1 To n
         If skipped_routes(r) = True Then
            skipped_routes(r) = False     ' will be set in the catch if there are problems and it has to be retried.
            fStreamWriter.WriteLine("   " & MPMap.DataSets(routes(r)).Name & " r = " & r)
            Try
               rs = MPMap.DataSets(routes(r)).QueryAllRecords() 
            Catch ex As Exception
               fStreamWriter.WriteLine("Error occurred: " & ex.Message & " " & ex.ToString)
               routes_left_to_process = True
               skipped_routes(r) = True
               GoTo label_next_r
            End Try
       ...etc, etc...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
error, ole, queryallrecords, querycircle


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
QueryCircle Anonymous MapPoint 2006/2009 Discussion 0 04-26-2004 11:59 AM
QueryCircle Anonymous MapPoint 2006/2009 Discussion 1 04-24-2003 11:12 AM
QueryAllRecords Fails Anonymous MapPoint 2006/2009 Discussion 1 11-25-2002 06:09 PM
QueryAllRecords Fails Anonymous MapPoint 2006/2009 Discussion 0 08-29-2002 06:08 PM
--VB DEVELOPER-- The method QueryAllRecords of a d.... Anonymous MapPoint 2006/2009 Discussion 4 05-27-2002 08:50 AM


All times are GMT -5. The time now is 06:49 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
MP2K Magazine
Visitor Map


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54