POST
|
I have finally identified the one road segment/edge that is creating the issue. The network is built successfully but the edge is not visible for the problem road segment and when I attempt to make edits on the segment and rebuild, I get build error. Essentially preventing me from fixing the segment.
... View more
02-21-2018
10:49 AM
|
0
|
0
|
349
|
POST
|
Thanks, I am able to load orders by route zones and get returned errors results, if any. For example, one route zone only returned one error, "Network element not located" I think I should be able to trouble using this method.
... View more
02-20-2018
01:43 PM
|
0
|
0
|
349
|
POST
|
I followed your steps and created a Service Areas Layer and it solved with the large set minutes break value, I reached and went past all order locations.
... View more
02-20-2018
01:11 PM
|
0
|
2
|
349
|
POST
|
I should preface my current status as follows , I have updated the previous Network road data by adding road segments and moving many orders. I am using the same search tolerance and spatial reference as before when I successfully ran the solver. I can now successfully load as geometry, solve and generate a route when only using 2 order points (stops) which includes the Depot as departure and destination . I can load multiple orders just not all 900 plus orders, not sure it is because certain areas of the road network may have errors.
... View more
02-20-2018
09:55 AM
|
0
|
4
|
349
|
POST
|
I loaded the orders based on geometry and still received errors, I proceeded to use Recalculate Unlocated . Issue still not resolved. Yes, I already loaded Depot, Routes,Routes Zones. I further tested by only loading one random order by Location and it successfully routed. I am not sure what this means. I further tested by loading one random Order by Geometry and received the following Warning: Orders (Name = "Location 10") is unlocated. (This is odd to me since I cleared out every record of the Name field for the orders, where is the solver getting the original Name from ?) I created another VRP layer to further test, and I created another Network Dataset, yet still same errors.
... View more
02-20-2018
09:12 AM
|
0
|
6
|
761
|
POST
|
Thank you for the advice. I reloaded the orders based on geometry and Recalculate Location Fields - Unlocated (913 orders) I reran the Solve but received the following error Failure while working with internal OD cost matrix problem instance. Error: General function failure
... View more
02-20-2018
07:11 AM
|
0
|
8
|
761
|
POST
|
I removed that point (order) and the exact error prompted with another point and I can't rebuild unless I make an edit.
... View more
02-16-2018
02:55 PM
|
0
|
10
|
761
|
POST
|
Yes it was. I constantly rebuild the network after each edit, to ensure where it may pose an issue.
... View more
02-16-2018
02:49 PM
|
0
|
12
|
761
|
POST
|
I am having trouble in what this error exactly means. Do you know how I can get more returned error information when I Solve ? Warning: Orders (Name = "Location 2929") location does not have a corresponding network element. The network dataset needs to be rebuilt. Error: Invalid input in the NA classes.
... View more
02-16-2018
02:37 PM
|
0
|
15
|
2045
|
POST
|
Perfect, that was my issue in how I had redundant importing of these date -time modules. It works now.
... View more
02-01-2018
10:42 AM
|
0
|
0
|
431
|
POST
|
Thanks for the advice. I still have the following issue. TypeError: unsupported operand type(s) for -: 'datetime.date' and 'datetime.datetime'
... View more
02-01-2018
09:52 AM
|
0
|
2
|
431
|
POST
|
Your welcome, However, this doesn't work though, I need to work out the error still.
... View more
02-01-2018
06:52 AM
|
0
|
0
|
431
|
POST
|
import arcpy
import datetime
from datetime import timedelta
# Set Feature Variables
fc1 = r'Database Connections\a.sde\BACK.wNetwork\BACK.wSystemValve'
datefield = ['LASTUPDATE']
with arcpy.da.SearchCursor(fc1, datefield) as cur:
dt_i = cur.fields.index(datefield)
dt_filtered = (rec for rec in cur
if rec[dt_i] and datetime.now() - rec[dt_i] <= timedelta(30))
for row in dt_filtered:
print ("{0}".format(row[0]))
... View more
01-31-2018
04:08 PM
|
0
|
5
|
431
|
POST
|
I modified slightly on just the variable names but get the error. ValueError: tuple.index(x): x not in tuple with arcpy.da.SearchCursor(fc1, datefield) as cur: dt_i = cur.fields.index(datefield) dt_filtered = (rec for rec in cur if rec[dt_i] and datetime.now() - rec[dt_i] <= timedelta(30)) for row in dt_filtered: print ("{0}".format(row[0]))
... View more
01-31-2018
03:33 PM
|
0
|
7
|
431
|
POST
|
I am confused on line 9 dt_i = cur.fields.index(dt_fld) Where did you get index from ?
... View more
01-31-2018
03:21 PM
|
0
|
1
|
431
|
Title | Kudos | Posted |
---|---|---|
1 | 11-03-2016 06:52 AM | |
1 | 05-10-2016 10:27 AM | |
1 | 02-06-2017 01:22 PM | |
1 | 05-01-2018 07:23 AM | |
1 | 03-03-2017 02:46 PM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|