Waqar82_geo

NA Route Rest services gives error

Discussion created by Waqar82_geo on Mar 14, 2012
Latest reply on Jun 6, 2012 by dkudinov-esristaff
I have create Na Routing  sample to test
on arcgis info its works fine create route on the data
but when i create Network Analysis services through Arcgis server and  using rest services in silverlight sample
http://help.arcgis.com/en/webapi/silverlight/3.0/samples/start.htm#Routing
its gives error
Black"Routing error: Unable to complete operation unable to find atribute invalid Context" my rest services

i Have discuss this topic on arcgis silverlight forum one of esri person forward me to this forum

My services is
http://10.1.18.191/ArcGISSERVER/rest/services/network_Test/NAServer/Route

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


i have attached gdb in Northkarachi.gdb.rar
for u testing
help me out what i m doing wrong

Attachments

Outcomes