This error may occur when working with the Create Report option in ArcMap. The full error message is provided below.
The error may occur when selecting to sort the inputs from the selected report source, such as an Excel spreadsheet, if it does not contain an ObjectID field.
The table can be converted to an ArcGIS format using the Table to Table geoprocessing tool in Conversion Tools > To Geodatabase or the Excel to Table tool in Conversion Tools > Excel.
Get help from ArcGIS experts
Download the Esri Support App