Had the same error with a definition query on SHAPE.area > 15. Removed the query and the service published fine.
Hello folks,When trying to publish a map service am I get the followin error, ERROR 001272: Analyzer errors were encountered (codes = 7). I have been able to track the issue to the definition query. If a layer's defintion query has SHAPE.STLength() or SHAPE.STArea() in the query it will throw the error, but those are valid queries created using the Query Builder. I have been unable to find details about ERROR 001272. Any suggestions for a soltion?Thakn youAlan
Yes, but I need to have the definition query. I'll think I'll put a ticket in with Esri Support.
Hello,ESRI is aware of the problem. Bug NIM082764: Analyzer error 00007: Layer's definition query is invalid is appearing when publishing unexpectedly when publishing enterprise data with a definition expression based on the geometry fields.Alan
Hi,Thanks for your reply. I couldn't find any reference to 'NIM082764' but I did find this one 'NIM083369' - I suppose the only possible solution is to duplicate the area fields?Aled
I am trying to publish Local Gov Community map and General Purpose Basemap in 10.1 SP1 but still having Error 001272: Analyzer errors were encountered (codes = 7,7,7,...7). What else could possibly cause this error beside queries based on geometry field, which according to the previous post got resolved in SP1. Did anyone successfully publish Community map after upgrading to SP1?Thank you,Nizar
Anyone has the solution for this issue? I got SP1 installed and getting this error when trying to publish a map service.In the MXD, there are some layers using Shape.STLength() in the query definition.
This NIM - NIM083369 - Analyzer error 00007: Layer's definition query is invalid appears when publishing enterprise data with a definition expression based on the geometry fields such as ORASPATIAL.States.AREA fields. has been addressed in ArcGIS 10.1 SP1. http://downloads.esri.com/support/downloads/other_/189810.1_SP1_Announcement.pdfArcGIS 10.1 SP1 for Server is available from the Customer Care Portal - http://customers.esri.com. Please refer to the link below: http://support.esri.com/en/downloads/patches-servicepacks/view/productid/189/metaid/1913
After contacting ESRI, we were told to completely uninstall ArcGIS 10.1 from my PC and any associated elements. Then we were told to remove any residual registry hives left over and to delete any residual folders in C:/Program Files ... After doing all that, I reinstalled my ArcGIS components but still got the same error. Whilst the above suggestion didn't work for me, it may be useful to some of you. This bug is very strange to me as I can successfully publish the same mxd on my colleagues PC who has the same components, operating system and service pack.
Wow that's a lot do to. Funny the definition query works with no issues in ArcMap. It only shows itself when the map is being published as a web service. Our GIS Systems Administrator believes it has to do with SQL Server and how it names things.
It works for me if I publish it this way. In the Share as Service windows selects option 'Save a service definition file'.Then, selecting the option 'No available connection'. Then choose the location where you want to save the definition file.Use ArcCatalog to browse to the just created definition file and right click and select 'Publish as a Service'.Hope this workaround also works for you guys.
.... I am going to try on one of the provided base maps next. Thanks for sharing.DT
Husen Kang wrote: It works for me if I publish it this way. In the Share as Service windows selects option 'Save a service definition file'.Then, selecting the option 'No available connection'. Then choose the location where you want to save the definition file.Use ArcCatalog to browse to the just created definition file and right click and select 'Publish as a Service'.Hope this workaround also works for you guys.
Husen Kang wrote:
We were receiving the same error message (except ours said "codes = 3") when attempting to publish a service pulling data from a registered Data Store (we are at Server 10.2.2). Even though the ArcGIS Server account had full share/NTFS permissions on the data store directory, we could not publish from Desktop.
After we spent a good 3 hours with tech support (his only suggestion was allowing data to be copied to the server - thanks, but no thanks), this was the only feasible workaround we could find. Thank you for the suggestion and here's hoping that ESRI will do something to address the fact that Data Stores in Server 10.2 simply do not function like they should.
Glad I can help. I am still using 10.1 here. I was hoping the problem would have been fixed at 10.2.
I also find publishing directly to ArcGIS Server takes longer than publishing via SD file.
Not sure if others experience the same.
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.