Esri / arcgis-osm-editor

ArcGIS Editor for OpenStreetMap is a toolset for GIS users to access and contribute to OpenStreetMap through their Desktop or Server environment.
Apache License 2.0
399 stars 130 forks source link

Create OSM Network Dataset crashes at creating network dataset #168

Open elaraa opened 7 years ago

elaraa commented 7 years ago

I downloaded a set of OSM data and trying to create a network dataset with the data. The tool Create OSM Network Dataset crashed all the time when it reach the create network dataset according the the log message. These files have been before the crash: StudyArea_nd_barriers, StudyArea_nd_roads, StudyArea_nd_turns. Can manually create a network dataset with these data?

ThomasEmge commented 7 years ago

We had another user with a (maybe) similar issue. Depending on the size of your study please ensure that you have sufficient disk space in the OS defined temp folder location. What do you mean by "crashed"? The whole application crashes or the execution of the tool returns with an error? If it is the error case and you still have the log messages, please post the messages in the thread. It helps us narrow down the underlying issues. And yes, you certainly can build the network yourself using the extracted _roads, _turns, and _barriers feature classes as inputs.

elaraa commented 7 years ago

ArcMap crashed without returning any error message. Ok, I will try to create the network dataset. Thank you.

elizasth commented 5 years ago

Hello I am also facing the same problem. I am trying to create a model which has the following process: Load OSM file followed by create network dataset.

While i run the model for the first time, It works fine. but when i try to re-run the model. It gives me error as below: Exception from HRESULT: 0x80042267 at ESRI.ArcGIS.Geodatabase.IDatasetContainer2.CreateDataset(IDEDataset DataElement) at ESRI.ArcGIS.OSM.GeoProcessing.NetworkDataset.CreateBuildableNDS() at ESRI.ArcGIS.OSM.GeoProcessing.RunTaskManager.ExecuteTask(String messageName, Action task) at ESRI.ArcGIS.OSM.GeoProcessing.NetworkDataset.CreateNetworkDataset() at ESRI.ArcGIS.OSM.GeoProcessing.OSMGPCreateNetworkDataset.Execute(IArray paramvalues, ITrackCancel TrackCancel, IGPEnvironmentManager envMgr, IGPMessages message) Failed to execute (Create OSM Network Dataset).

I tried both by enabling and disabling the geoprocessing option. but it doesnot works. If you have any solutions. then please let me know.

elizasth commented 5 years ago

I canged the Xml file and now i am getting lock error..

jan1909 commented 5 years ago

Hello I am also facing the same problem. I am trying to create a model which has the following process: Load OSM file followed by create network dataset.

While i run the model for the first time, It works fine. but when i try to re-run the model. It gives me error as below: Exception from HRESULT: 0x80042267 at ESRI.ArcGIS.Geodatabase.IDatasetContainer2.CreateDataset(IDEDataset DataElement) at ESRI.ArcGIS.OSM.GeoProcessing.NetworkDataset.CreateBuildableNDS() at ESRI.ArcGIS.OSM.GeoProcessing.RunTaskManager.ExecuteTask(String messageName, Action task) at ESRI.ArcGIS.OSM.GeoProcessing.NetworkDataset.CreateNetworkDataset() at ESRI.ArcGIS.OSM.GeoProcessing.OSMGPCreateNetworkDataset.Execute(IArray paramvalues, ITrackCancel TrackCancel, IGPEnvironmentManager envMgr, IGPMessages message) Failed to execute (Create OSM Network Dataset).

I tried both by enabling and disabling the geoprocessing option. but it doesnot works. If you have any solutions. then please let me know.

I have the exact same problem. Did you find any solution yet?

elizasth commented 5 years ago

Hello I am also facing the same problem. I am trying to create a model which has the following process: Load OSM file followed by create network dataset. While i run the model for the first time, It works fine. but when i try to re-run the model. It gives me error as below: Exception from HRESULT: 0x80042267 at ESRI.ArcGIS.Geodatabase.IDatasetContainer2.CreateDataset(IDEDataset DataElement) at ESRI.ArcGIS.OSM.GeoProcessing.NetworkDataset.CreateBuildableNDS() at ESRI.ArcGIS.OSM.GeoProcessing.RunTaskManager.ExecuteTask(String messageName, Action task) at ESRI.ArcGIS.OSM.GeoProcessing.NetworkDataset.CreateNetworkDataset() at ESRI.ArcGIS.OSM.GeoProcessing.OSMGPCreateNetworkDataset.Execute(IArray paramvalues, ITrackCancel TrackCancel, IGPEnvironmentManager envMgr, IGPMessages message) Failed to execute (Create OSM Network Dataset). I tried both by enabling and disabling the geoprocessing option. but it doesnot works. If you have any solutions. then please let me know.

I have the exact same problem. Did you find any solution yet?

No, I haven't solved yet. I get the same error

jan1909 commented 5 years ago

Hello I am also facing the same problem. I am trying to create a model which has the following process: Load OSM file followed by create network dataset. While i run the model for the first time, It works fine. but when i try to re-run the model. It gives me error as below: Exception from HRESULT: 0x80042267 at ESRI.ArcGIS.Geodatabase.IDatasetContainer2.CreateDataset(IDEDataset DataElement) at ESRI.ArcGIS.OSM.GeoProcessing.NetworkDataset.CreateBuildableNDS() at ESRI.ArcGIS.OSM.GeoProcessing.RunTaskManager.ExecuteTask(String messageName, Action task) at ESRI.ArcGIS.OSM.GeoProcessing.NetworkDataset.CreateNetworkDataset() at ESRI.ArcGIS.OSM.GeoProcessing.OSMGPCreateNetworkDataset.Execute(IArray paramvalues, ITrackCancel TrackCancel, IGPEnvironmentManager envMgr, IGPMessages message) Failed to execute (Create OSM Network Dataset). I tried both by enabling and disabling the geoprocessing option. but it doesnot works. If you have any solutions. then please let me know.

I have the exact same problem. Did you find any solution yet?

No, I haven't solved yet. I get the same error

Ive noticed that i get this error only while using the DriveMeters.xml as network config file. With DriveGeneric.xml its all good. Ive read somewhere else that changing the unit in ArcMap and in the config file to km could help, but i cant verify that yet. But i would assume the problem is within the DriveMeters.xml, atleast for me. Which config file do you use?

jobelanger commented 3 years ago

Hello I am also facing the same problem. I am trying to create a model which has the following process: Load OSM file followed by create network dataset. While i run the model for the first time, It works fine. but when i try to re-run the model. It gives me error as below: Exception from HRESULT: 0x80042267 at ESRI.ArcGIS.Geodatabase.IDatasetContainer2.CreateDataset(IDEDataset DataElement) at ESRI.ArcGIS.OSM.GeoProcessing.NetworkDataset.CreateBuildableNDS() at ESRI.ArcGIS.OSM.GeoProcessing.RunTaskManager.ExecuteTask(String messageName, Action task) at ESRI.ArcGIS.OSM.GeoProcessing.NetworkDataset.CreateNetworkDataset() at ESRI.ArcGIS.OSM.GeoProcessing.OSMGPCreateNetworkDataset.Execute(IArray paramvalues, ITrackCancel TrackCancel, IGPEnvironmentManager envMgr, IGPMessages message) Failed to execute (Create OSM Network Dataset). I tried both by enabling and disabling the geoprocessing option. but it doesnot works. If you have any solutions. then please let me know.

I have the exact same problem. Did you find any solution yet?

No, I haven't solved yet. I get the same error

Ive noticed that i get this error only while using the DriveMeters.xml as network config file. With DriveGeneric.xml its all good. Ive read somewhere else that changing the unit in ArcMap and in the config file to km could help, but i cant verify that yet. But i would assume the problem is within the DriveMeters.xml, atleast for me. Which config file do you use?

Hello, I had the same problem as OP and others in this thread where Create OSM network dataset fails part-way through running (at the Creating Network Dataset step). Background processing was off and had enough disk space. Switching from DriveMeters to DriveGeneric solved my problem, and it took a quarter of the time. I would otherwise suggest trying to build the network manually since the barriers, roads, and turns executes successfully with this error. Hope this helps someone else!

ShangbinTANG commented 2 years ago

Hi guys I have the same issue and changing to DriveGeneric.xml didn't help in the beginning, but it works after i turned off the background processing. hope this might help :)