120142: Failed to load layer with URL <value>.

Description

The layer failed to load.

Solution

Check that there are no errors in the URL provided.

Check that the specified URL is a valid REST end point.

For example, http://<domain>:6443/arcgis/rest/services/<serviceName>/FeatureServer/<layerIndex>.