Select to view content in your preferred language

Routing Error

2695
4
03-13-2012 03:15 AM
MuhammadWaqar_ul_islam
Occasional Contributor
I have create Na Routing service sample to test
but its gives error
"Routing error: Unable to complete operation unable to find atribute invalid Context"
but on arcgis info its works fine
i have attached gdb in Northkarachi.gdb.rar
for u testing
help me out what i m doing wrong

services properties 
Network Layer: Route
Layer Type: esriNAServerRouteLayer

Impedance: Meters

Restrictions: Oneway, RestrictedTurn

Accumulate Attribute Names:

Attribute Parameter Values:

Use Hierarchy: false

Hierarchy Attribute Name:

Hierarchy Level Count: 0

Hierarchy Max Values:

Hierarchy Num Transitions:

Snap Tolerance: 0

Max Snap Tolerance: 5000

Snap Tolerance Units: esriMeters

Ignore Invalid Locations: true

Restrict U-Turns: esriNFSBAllowBacktrack

Output Spatial Reference: 32642

Find Best Sequence: false

Use Start Time: false

Start Time: Sat, 30 Dec 1899 08:00:00 GMT

Use Time Windows: false

Preserve First Stop: true

Preserve Last Stop: true

Output Line Type: esriNAOutputLineTrueShape

Directions Language: en-US

Direction Style Names: NA Desktop, NA Navigation

Directions Length Units: esriNAUMiles

Directions Time Attribute:

Network Analysis Classes:
Class Name: Stops
Field Name: Shape
Default Value:
Candidate Fields:
Field Name: Name
Default Value:
Candidate Fields: Name, Address, Label, Location, Stop, WayPoint, Description, Title, DepotName
Field Name: RouteName
Default Value:
Candidate Fields: RouteName, Route, RouteID
Field Name: Sequence
Default Value: 1
Candidate Fields:
Field Name: TimeWindowStart
Default Value:
Candidate Fields: TimeWindowStart1, TWStart1, FromTime1, FromTimeWindow1, FromTW1, From1, TimeWindowStart, TWStart, FromTime, FromTimeWindow, FromTW, From
Field Name: TimeWindowEnd
Default Value:
Candidate Fields: TimeWindowEnd1, TWEnd1, ToTime1, ToTimeWindow1, ToTW1, To1, TimeWindowEnd, TWEnd, ToTime, ToTimeWindow, ToTW, To
Field Name: SourceID
Default Value: -1
Candidate Fields: SourceID, SID, Source
Field Name: SourceOID
Default Value: -1
Candidate Fields: SourceOID, SOID
Field Name: PosAlong
Default Value: 0
Candidate Fields: PosAlong, PA, Pos
Field Name: SideOfEdge
Default Value: 2
Candidate Fields: SideOfEdge, SOE
Field Name: CurbApproach
Default Value: 0
Candidate Fields: CurbApproach, SideOfStreet, SideApproach, CurbSide, Curb
Field Name: Status
Default Value: 0
Candidate Fields:
Field Name: Attr_Meters
Default Value: 0
Candidate Fields: Attr_Meters, Meters
Class Name: Barriers
Field Name: Shape
Default Value:
Candidate Fields:
Field Name: Name
Default Value:
Candidate Fields: Name, Address, Label, Location, Barrier, Description, Title
Field Name: SourceID
Default Value: -1
Candidate Fields: SourceID, SID, Source
Field Name: SourceOID
Default Value: -1
Candidate Fields: SourceOID, SOID
Field Name: PosAlong
Default Value: 0
Candidate Fields: PosAlong, PA, Pos
Field Name: SideOfEdge
Default Value: 2
Candidate Fields: SideOfEdge, SOE
Field Name: CurbApproach
Default Value: 0
Candidate Fields: CurbApproach, SideOfStreet, SideApproach, CurbSide, Curb
Field Name: Status
Default Value: 0
Candidate Fields:
Field Name: FullEdge
Default Value: 0
Candidate Fields: FullEdge, IsFullEdge, BlockEntire
Field Name: BarrierType
Default Value: 0
Candidate Fields: BarrierType, BarType, BarrierTyp
Field Name: Attr_Meters
Default Value: 0
Candidate Fields: Attr_Meters, Meters
Class Name: PolylineBarriers
Field Name: Shape
Default Value:
Candidate Fields:
Field Name: Name
Default Value:
Candidate Fields: Name, Label, Locations, Barrier, Description, Title
Field Name: Locations
Default Value:
Candidate Fields: Locations, LocRanges
Field Name: BarrierType
Default Value: 0
Candidate Fields: BarrierType, BarType, BarrierTyp
Field Name: Attr_Meters
Default Value: 1
Candidate Fields: Attr_Meters, Meters
Class Name: PolygonBarriers
Field Name: Shape
Default Value:
Candidate Fields:
Field Name: Name
Default Value:
Candidate Fields: Name, Label, Locations, Barrier, Description, Title
Field Name: Locations
Default Value:
Candidate Fields: Locations, LocRanges
Field Name: BarrierType
Default Value: 0
Candidate Fields: BarrierType, BarType, BarrierTyp
Field Name: Attr_Meters
Default Value: 1
Candidate Fields: Attr_Meters, Meters
Network Dataset: RoadNetWork_ND


Network Attributes:

Meters
Usage Type: esriNAUTCost
Units: esriNAUMeters
Data Type: esriNADTDouble
Parameter Names:
Oneway
Usage Type: esriNAUTRestriction
Units: esriNAUUnknown
Data Type: esriNADTBoolean
Parameter Names:
RoadClass
Usage Type: esriNAUTDescriptor
Units: esriNAUUnknown
Data Type: esriNADTInteger
Parameter Names:
RestrictedTurn
Usage Type: esriNAUTRestriction
Units: esriNAUUnknown
Data Type: esriNADTBoolean
Parameter Names:
Network Sources:

Street
Element Type: esriNETEdge
Source Type:esriNSTEdgeFeature
ID: 1

RoadNetWork_ND_Junctions
Element Type: esriNETJunction
Source Type:esriNSTSystemJunction
ID: 3

RestrictedTurns
Element Type: esriNETTurn
Source Type:esriNSTTurnFeature
ID: 2

Supported Operations:   Solve Route
0 Kudos
4 Replies
JenniferNery
Esri Regular Contributor
You might get a response from this forum, kindly post here: http://forums.arcgis.com/forums/102-Network-Analyst
0 Kudos
MuhammadWaqar_ul_islam
Occasional Contributor
Dear All Esri Member
i m working on this error unable to find attribute on Network Analysis (Routing) services for many
On the above message reply by esri member i have been forward to Network Analysis forum
Now i have been forward back to this forum


--------------------------------------------------------------------------------

Re: NA Route Rest services gives error

Muhammad,

From your previous message it looks like you have already gotten a valid route back from the server.

The only step is left is to make your Silverlight application send the same HTTP parameters to the server endpoint: use RouteTask, RouteParameters, and RouteResult classes from the ESRI.ArcGIS.Client.Tasks namespace.
Here is a good sample how to use route endpoint in Silverlight: http://help.arcgis.com/en/webapi/sil...rt.htm#Routing

Dmitry


Can any one solved this issue
i have arcgis server install on my laptop and i have check rest services
http://localhost/ArcGISSERVER/rest/services/NA/karachi/NAServer/Route/solve
it provided the answer
but when i used on arcgis any api it gives error mention above
What kind of error is this that can not be solved

hope some one reply with answer
0 Kudos
dmacq
by
Occasional Contributor
Just some info for anybody that comes across this thread looking to a solution for the above mentioned error.  I had the same problem. I could route with the ESRI service, but my own would throw an error.  It works fine in ArcMap, and as a service in a separate Flex application. 

I was able to fix the issue by setting UseHierarchy to False in the RouteParameters of the SolveAsync method of the route task. Hopefully this helps somebody.
0 Kudos
JavierCatalán_Herrero
Emerging Contributor
Thank you very much DrewGIS, I have fixed my problem (after trying many issues for hours) setting Hierarchy to false.
0 Kudos