I have a Python script that creates a service area with the Network Analyst extension, (after building ND with Add GTFS to a Network Dataset)

The Network Dataset is in GDB

When I'm running the script with ArcMap it works, but when I'm running the script standalone it starts the Progress and then I have an out of memory error (it is caching a large database).

enter image description here

I installed the 64-bit background geoprocessing and I tried to run the same script using C:\Python27\ArcGISx6410.5\python.exe but I receive "Error: 000732: Dataset does not exist or is not supported". I tried some different ways to insert the path of the network data set and didn't work.

import arcpy
from arcpy import env
import os

#Check out the Network Analyst extension license

#Set environment settings
 env.workspace = r"D:\GTFS\GTFS_ND.gdb"
 env.overwriteOutput = True

#Set local variables
 inNetworkDataset = os.path.join("D:\GTFS\GTFS_ND.gdb","GTFS\GTFS_ND")
 outNALayerName = "ServiceArea"
 impedanceAttribute = "TravelTime"
 inFacilities = "locetion\Test"
 outLayerFile = os.path.join("D:\GTFS\scripts" ,outNALayerName + ".lyr"

 outNALayer = arcpy.na.MakeServiceAreaLayer(inNetworkDataset, outNALayerName,
                              impedanceAttribute, "TRAVEL_TO", "60",
                              "SIMPLE_POLYS", "NO_MERGE", "RINGS",
                              excluded_source_name = ["Connectors_Stops2Streets", "TransitLines"],time_of_day= "1/1/1900 10:30 AM" )

in 64 bit I get the error:

Erorr 00732: Input Analysis Network: Dataset GTFS/GTFS_ND dose not exist or is not supported

What is wrong?


I tested the script with other ND (With 64-bit ) and it work. The problem is only in The ND that use GTFS and built step by step with this guide: https://github.com/Esri/public-transit-tools/blob/master/add-GTFS-to-a-network-dataset/UsersGuide.md

  • 1
    Please Edit the question to specify what data are you using. It seems unlikely the standalone 32-bit Python would run out of memory faster than ArcMap. – Vince Jan 24 '18 at 11:17
  • We need the actual storage format -- File geodatabase? Personal geodatabase? Please provide the relevant chunk of Python in the body of the question. – Vince Jan 24 '18 at 12:58
  • I edit the question – geoint Jan 25 '18 at 8:31
  • Check your inNetworkDataset variable. Here arcpy is looking for GTFS/GTFS_ND in your workspace which corresponds to r"D:\GTFS\GTFS_ND.gdb\GTFS/GTFS_ND. – GISGe Jan 25 '18 at 9:18
  • i fix it, still not work – geoint Jan 25 '18 at 11:20