===========================================================
When publishing a map service in ArcGIS Enterprise, you may encounter the ERROR 001272: Analyzer errors were encountered (codes = 7) error. This error can be frustrating, especially when you're unable to find detailed information about it. In this article, we'll delve into the possible causes of this error and provide solutions to help you resolve the issue.
The ERROR 001272 typically occurs when there's an issue with the definition query of a layer in your map service. Specifically, it's related to the use of SHAPE.STLength()
or SHAPE.STArea()
functions in the query. These functions are used to calculate the length or area of a shape, but they can cause problems when publishing the service.
Based on the Esri Community forum discussion, the error can be caused by:
SHAPE.STLength()
or SHAPE.STArea()
functions in the definition queryTo resolve the ERROR 001272, try the following:
SHAPE.STLength()
or SHAPE.STArea()
functions, try modifying the query to use alternative methods, such as using a calculated field or a different query syntax.For more information on definition queries and ArcGIS Enterprise, visit the following resources:
By following these steps and resources, you should be able to resolve the ERROR 001272 and successfully publish your map service in ArcGIS Enterprise.