When publishing a line feature class as a hosted feature layer from ArcGIS Pro to ArcGIS Online, the line feature class fails to display, as shown in the image below.
When m-values and z-values are enabled for a line feature class, the line features overlap and do not appear when published in ArcGIS Online.
Disable m-values and z-values for the output layer in the Environment Settings prior to publishing.
Get help from ArcGIS experts
Download the Esri Support App