ERROR
This error occurs when extending a polyline feature that has z-values using the Extend/Trim Feature edit task:
"The Trim/Extend task could not be completed. The geometry has null Z values."
The vertex added to the edit sketch, in order to extend the feature, does not support z values.
Get help from ArcGIS experts
Download the Esri Support App