When using ArcMap to publish services to ArcGIS server, an error may be reported,
Error 001272, especially when the
mxd generated by a different version of ArcMap is copied to another version of ArcMap for publishing, the minor version is also considered a version.
Which may also be related to the definition query in the layer. When searching online, most of them say that the connection to the spatial database does not support the definition query. But it's not necessarily true.
Just use the current ArcMap to save an
mxd and open the new
mxd to publish it.
Mine is solved like this.