Unable to view feature service attribute table when source is query layer with OBJECTID as unique identifier, geodatabase is ArcGIS 10.2.2, relational database management system (RDBMS) is Oracle 11g. Map published from ArcMap 10.5.1 to ArcGIS Server 10.5.1 Error: Accessing data failed.
This issue is unable to reproduce.
The issue is specific to query layers using views that are not registered with the geodatabase. Registration of the view resolved this issue.
http://desktop.arcgis.com/en/arcmap/latest/manage-data/geodatabases/registering-a-table-with-the-geodatabase.htm
解决办法
The workaround is to use ArcGIS 10.5.1 geodatabase in SQL Server or Oracle 12c.Upgrading the Oracle database from 11g to 12c resolves this issue.