PROBLEM
In some cases, attempts to run the Connect Origins to Destinations tool in ArcGIS Online Map Viewer Classic fail, and return the following error message:
Error: The number of features in <feature_layer> is zero. Connect Origins To Destinations failed.
Use one of the methods below to resolve the issue.
Ensure the ArcGIS Online subscription has sufficient credits
Transaction-based tools such as geocoding, GeoEnrichment, image analysis, and spatial analysis tools are charged based on the number of records and the generated output. Estimate the number of credits required to run the analysis tool in Map Viewer Classic by clicking the Show credits button before running the tool. Refer to ArcGIS Online: Credits by capability for instructions and more information. Purchase additional credits or contact Esri Customer Service for assistance.
Run the Check Geometry and Repair Geometry tools
In ArcGIS Pro, run the Check Geometry (Data Management) and Repair Geometry (Data Management) tools before republishing the map. Refer to ArcGIS Pro: Check Geometry (Data Management) and ArcGIS Pro: Repair Geometry (Data Management) for instructions and more information.
Use the Replace Geometry tool
In ArcGIS Pro, use the Replace Geometry tool to replace features with invalid or missing geometry before republishing the map. Refer to ArcGIS Pro: Replace feature geometry for instructions and more information.
Add data with location fields
In ArcGIS Online, add data with location fields to run the Connect Origins to Destinations tool. Refer to ArcGIS Online: Add items for instructions and more information. In this example, a new CSV file with location fields is added to ArcGIS Online.
Uncheck the "Use current map extent" option or adjust the map extent
Uncheck the option at the bottom of the Connect Origins to Destinations tool to "Use current map extent" or adjust the map extent so that the points being analyzed are within the extent, as only features in the visible extent are used when this option is enabled.
Article ID: 000027303
Get help from ArcGIS experts
Download the Esri Support App