question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

General error in the node loading routine (Exception from HRESULT: 0x8002000A (DISP_E_OVERFLOW))

See original GitHub issue

I’ve done a script that read a polygon geometry as extent of the OSMGPD Download (OSM Data for ArcGis 10.5 version) My problem is that when the tool gets an extension without OSM data (0 nodes, 0 ways, 0 relations), it fails. So, the script break at that point. By the logs message, I can see that when it can’t find any data use the repair geometry tool,“Repair geometry arcgis tool” and delete the empty geometry without success. This is my code. Any ideas, please

import arcpy
from arcpy import env

# load the OpenStreetMap specific toolbox
arcpy.ImportToolbox(r'c:\program files (x86)\arcgis\desktop10.5\ArcToolbox\Toolboxes\OpenStreetMap Toolbox.tbx')

cuadricula = r"D:\PROYECTOS\LATAM_mio\PERU\OSM_Peru.gdb\grid_peru"
gdb_destino =  r"D:\PROYECTOS\LATAM_mio\PERU\OSM_Peru.gdb\\"
try:
    with arcpy.da.SearchCursor(cuadricula,["SHAPE@","id_grid3"])as cursor:
        for row in cursor:
            ds = row[1]
            extent = row[0].extent
            print (ds)
            arcpy.OSMGPDownload_osmtools('http://www.openstreetmap.org', extent, 'DO_NOT_INCLUDE_REFERENCES', gdb_destino + str(ds), gdb_destino+ str(ds)  + str(ds) + "_osm_pt", gdb_destino+ str(ds)  + str(ds) + "_osm_ln", gdb_destino+ str(ds) + str(ds) + "_osm_ply")          
except (RuntimeError, TypeError, NameError):
    pass

print ("Script OK")

And, this is the message that Arcgis returns:

Messages Executing: OSMGPDownload http://www.openstreetmap.org “291739,210780744 9164768,91156832 296739,210780744 9169768,91156832” DO_NOT_INCLUDE_REFERENCES D:\PROYECTOS\LATAM_mio\PERU\OSM_Peru.gdb_5 D:\PROYECTOS\LATAM_mio\PERU\OSM_Peru.gdb_5_5_osm_pt D:\PROYECTOS\LATAM_mio\PERU\OSM_Peru.gdb_5_5_osm_ln D:\PROYECTOS\LATAM_mio\PERU\OSM_Peru.gdb_5_5_osm_ply Start Time: Mon Jun 18 11:28:43 2018 Debugging… Starting OSM Data download request… Counting elements in OSM file… Counted 0 nodes, 0 ways, and 0 relations. General error in the node loading routine (Fuera del intervalo actual. (Exception from HRESULT: 0x8002000A (DISP_E_OVERFLOW))). Executing: RepairGeometry D:\PROYECTOS\LATAM_mio\PERU\OSM_Peru.gdb_5_5_osm_ln DELETE_NULL Start Time: Mon Jun 18 11:28:47 2018 Succeeded at Mon Jun 18 11:28:47 2018 (Elapsed Time: 0,01 seconds) Executing: RepairGeometry D:\PROYECTOS\LATAM_mio\PERU\OSM_Peru.gdb_5_5_osm_ply DELETE_NULL Start Time: Mon Jun 18 11:28:47 2018 Succeeded at Mon Jun 18 11:28:47 2018 (Elapsed Time: 0,01 seconds) Updating remaining references… Fuera del intervalo actual. (Exception from HRESULT: 0x8002000A (DISP_E_OVERFLOW)) Failed to execute (OSMGPDownload). Failed at Mon Jun 18 11:28:48 2018 (Elapsed Time: 4,53 seconds)

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ThomasEmgecommented, Jun 18, 2018

Your target feature dataset "D:\PROYECTOS\LATAM_mio\PERU\OSM_Peru.gdb_5 " is not valid. You’ll need to name it conforming to the geodatabase rules, maybe something like “D:\PROYECTOS\LATAM_mio\PERU\OSM_Peru.gdb\m_5” by changing ds = 'm_' + str(row[1])

0reactions
acanivanocommented, Jun 26, 2018

I´m using a vector grid which divides Peru in equal squares (minimum area in which I know there are OSM information). The script iterates for every square downloading the information until it doesn´t find information and it gives back the error:

General error in the node loading routine (Exception from HRESULT: 0x8002000A (DISP_E_OVERFLOW)).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Out Of Present Range. (Exception from HRESULT ...
(Exception from HRESULT: 0x8002000A(DISP_E_OVERFLOW)) " is thrown. Root Cause: Note this error generally occurs when there is value in excel ...
Read more >
Error 0x8002000A (DISP_E_OVERFLOW) on Excel read ...
Here I encounter an issue while I'm trying to use read range for an excel sheet that created by Robot in previous steps,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found