10037: Label class value has an SQL query that is not optimizable

Your layer has a label class with an SQL query that cannot be optimized by the drawing engine. The map service can reduce the number of queries sent to the database in most circumstances, but the SQL query used by this label class cannot take advantage of this optimization.

Solution

Check the drawing performance of your map service in the Preview window.

Learn more about previewing your map service

More information

Map services can reduce the number of queries sent to the database if the SQL queries used by labeling are simple. Vendor-specific SQL logic cannot be optimized by the drawing engine.

9/1/2015