I have a ModelBuilder process which carries out the following (diagram attached):
- Uses a hosted feature layer containing site boundary polygons (Layer1) as an input to a Select Layer By Attribute tool
- This uses a simple SQL expression to select rows in Layer1 meeting certain criteria
- The Select Layer By Location tool uses a second hosted feature layer containing polygons (Layer2) as input features, and selects them based on an Intersect relationship with the Layer1 features selected in step 2.
- The Calculate Field tool is used to overwrite text in a field of the selected rows in Layer2
When run 'in person' in ArcGIS Pro, the model runs without issue. However, it fails when run as a Scheduled Task, giving the following error:
ERROR 000358: Invalid expression
Failed to execute (Select Layer By Attribute).
The error help page is not particularly useful in this instance. Any ideas?