Select to view content in your preferred language

Service Area - facilities layer not honoring definition query filter

1193
3
Jump to solution
04-07-2023 08:42 AM
Josef_Strobl
Frequent Contributor

Trying to limit service area calculation to facility features filtered through a definition query. Only the selected facilities are displayed, but still service areas for ALL features in the layer are calculated (including credit usage). Anything I overlooked?

Thanks, Josef

ps, ArcGIS Pro 3.1.1

0 Kudos
1 Solution

Accepted Solutions
MelindaMorang
Esri Regular Contributor

If I've understood your workflow correctly, you have loaded all your inputs into the Facilities sublayer of the Service Area layer and then applied a definition query.  This isn't expected to work.  The solve will use everything in the Facilities sublayer regardless of selection set or definition query.  If you want to solve using a subset, you need to apply your definition query to your original dataset before you call Add Locations to add the data to the Facilities sublayer.

The Copy Network Analysis Layer tool may help if you want to create several layers with the same settings and different sets of input data.  You can configure one layer with the desired settings, copy it several times, and load different data into each one.

View solution in original post

3 Replies
DavidPike
MVP Notable Contributor

Seems strange.  Are you sure the layer is referenced rather than the FC?

0 Kudos
JaySandhu
Esri Regular Contributor

 What exactly was the process used? Did you load the filtered facilities into a service area analysis layer and then solve? In this case only the facilities loaded into the SA layer will have results.

Jay Sandhu

MelindaMorang
Esri Regular Contributor

If I've understood your workflow correctly, you have loaded all your inputs into the Facilities sublayer of the Service Area layer and then applied a definition query.  This isn't expected to work.  The solve will use everything in the Facilities sublayer regardless of selection set or definition query.  If you want to solve using a subset, you need to apply your definition query to your original dataset before you call Add Locations to add the data to the Facilities sublayer.

The Copy Network Analysis Layer tool may help if you want to create several layers with the same settings and different sets of input data.  You can configure one layer with the desired settings, copy it several times, and load different data into each one.