laptop and a wrench

Bug

The feature layer from the Enterprise Geodatabase (SQL Server) with definition query set in the 'Shape.STLength()' field fails to publish to ArcGIS Online, and returns the following error message, "Failed to publish web layer."

Last Published: June 2, 2021 ArcGIS Pro
Bug ID Number BUG-000135371
SubmittedNovember 12, 2020
Last ModifiedJune 5, 2024
Applies toArcGIS Pro
Version found2.6.1
Operating SystemWindows OS
Operating System Version10.0 64 Bit
StatusNon-Reproducible

Additional Information

Please use ArcGIS Pro 2.8.

Workaround

  1. Right-click the feature layer which needs to be published, and click Attribute table.
  2. Click Add Field. Create a new field, and select Long for the Data Type option.
  3. Right-click the newly created field, and click Calculate field.
  4. Select the field ST.ShapeLength() to copy all the values to the new field.

Steps to Reproduce

Bug ID: BUG-000135371

Software:

  • ArcGIS Pro

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options