When attempting to share a map using a hosted feature layer 'Location type', ArcGIS Maps for Office (Excel) 'deleteFromDefinition' function deletes ‘SHAPE__Length’ and ‘SHAPE__Area’ fields while attempting to publish polygon hosted feature services to Portal for ArcGIS. This returns the error message, "500 ERROR: Field name not found."