<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Scheduled ModelBuilder task fails on Select Layer By Attribute using Hosted Feature Layers (Error 000358 Invalid Expression) in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/scheduled-modelbuilder-task-fails-on-select-layer/m-p/1175323#M55307</link>
    <description>&lt;P&gt;Have the same issue using the "Select (Analysis)" tool on a scheduled model.... This is the workaround that kinda help me get it to work.&lt;/P&gt;&lt;P&gt;I've notice that the issue only happens when the SQL expression is referring to a numerical field... In my case I needed to select data that are greater than 0 &lt;EM&gt;(I'd imagine it would be more complicated if it is another threshold value or ranges)&lt;/EM&gt;, so what I did was:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;create a new string field&lt;/LI&gt;&lt;LI&gt;calculate the value of the created field as text value of the field I wanted to do my integer based expression&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ramon_de_Leon_0-1652905546000.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/41663iC736AD1E8C4ED574/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ramon_de_Leon_0-1652905546000.png" alt="Ramon_de_Leon_0-1652905546000.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;• Do the "Select (Analysis)" tool with the expression using the text field:&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ramon_de_Leon_1-1652905562599.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/41664i9A7C720F1CF784B1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ramon_de_Leon_1-1652905562599.png" alt="Ramon_de_Leon_1-1652905562599.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hopefully the bug gets fixed soon, it’s a lot of extra steps to get the select working on a scheduled tool.&lt;/P&gt;</description>
    <pubDate>Wed, 18 May 2022 20:31:02 GMT</pubDate>
    <dc:creator>Ramon_de_Leon</dc:creator>
    <dc:date>2022-05-18T20:31:02Z</dc:date>
    <item>
      <title>Scheduled ModelBuilder task fails on Select Layer By Attribute using Hosted Feature Layers (Error 000358 Invalid Expression)</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/scheduled-modelbuilder-task-fails-on-select-layer/m-p/1142637#M51252</link>
      <description>&lt;P&gt;I have a ModelBuilder process which carries out the following (diagram attached):&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Uses a hosted feature layer containing site boundary polygons (&lt;EM&gt;&lt;STRONG&gt;Layer1&lt;/STRONG&gt;&lt;/EM&gt;) as an input to a &lt;STRONG&gt;Select Layer By Attribute&lt;/STRONG&gt; tool&lt;/LI&gt;&lt;LI&gt;This uses a simple SQL expression to select rows in &lt;EM&gt;&lt;STRONG&gt;Layer1&lt;/STRONG&gt; &lt;/EM&gt;meeting certain criteria&lt;/LI&gt;&lt;LI&gt;The&amp;nbsp;&lt;STRONG&gt;Select Layer By Location&lt;/STRONG&gt; tool uses a second hosted feature layer containing polygons (&lt;EM&gt;&lt;STRONG&gt;Layer2&lt;/STRONG&gt;&lt;/EM&gt;)&amp;nbsp;as input features, and selects them based on an Intersect relationship with the &lt;EM&gt;&lt;STRONG&gt;Layer1&lt;/STRONG&gt; &lt;/EM&gt;features selected in step 2.&lt;/LI&gt;&lt;LI&gt;The&amp;nbsp;&lt;STRONG&gt;Calculate Field&lt;/STRONG&gt; tool is used to overwrite text in a field of the selected rows in&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;Layer2&lt;/STRONG&gt;&lt;/EM&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;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:&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;ERROR 000358: Invalid expression&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;Failed to execute (Select Layer By Attribute).&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;The error help page is not particularly useful in this instance. Any ideas?&lt;/P&gt;</description>
      <pubDate>Thu, 10 Feb 2022 15:21:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/scheduled-modelbuilder-task-fails-on-select-layer/m-p/1142637#M51252</guid>
      <dc:creator>DataOfficer</dc:creator>
      <dc:date>2022-02-10T15:21:08Z</dc:date>
    </item>
    <item>
      <title>Re: Scheduled ModelBuilder task fails on Select Layer By Attribute using Hosted Feature Layers (Error 000358 Invalid Expression)</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/scheduled-modelbuilder-task-fails-on-select-layer/m-p/1142647#M51256</link>
      <description>&lt;P&gt;This is BUG-000131693 -&amp;nbsp;&lt;SPAN&gt;Select Layer By Attributes fails with ERROR 000358 or ERROR 000732 when scheduled in ArcGIS Pro.&amp;nbsp; It is fixed at ArcGIS Pro 3.0.&amp;nbsp; There is no current workaround in ArcGIS 2.9.x unfortunately.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Feb 2022 15:31:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/scheduled-modelbuilder-task-fails-on-select-layer/m-p/1142647#M51256</guid>
      <dc:creator>Robert_LeClair</dc:creator>
      <dc:date>2022-02-10T15:31:56Z</dc:date>
    </item>
    <item>
      <title>Re: Scheduled ModelBuilder task fails on Select Layer By Attribute using Hosted Feature Layers (Error 000358 Invalid Expression)</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/scheduled-modelbuilder-task-fails-on-select-layer/m-p/1142650#M51257</link>
      <description>&lt;P&gt;Is there a timeline for the 3.0 release?&lt;BR /&gt;Is it possible instead to export the models to Python and schedule those instead?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Rob&lt;/P&gt;</description>
      <pubDate>Thu, 10 Feb 2022 15:34:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/scheduled-modelbuilder-task-fails-on-select-layer/m-p/1142650#M51257</guid>
      <dc:creator>DataOfficer</dc:creator>
      <dc:date>2022-02-10T15:34:49Z</dc:date>
    </item>
    <item>
      <title>Re: Scheduled ModelBuilder task fails on Select Layer By Attribute using Hosted Feature Layers (Error 000358 Invalid Expression)</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/scheduled-modelbuilder-task-fails-on-select-layer/m-p/1142664#M51262</link>
      <description>&lt;P&gt;I don't know when 3.0 will be released as I'm not on the ArcGIS Pro Dev Team (I'm in Training Services).&amp;nbsp; You can export a model to a Python script and use Windows Task Scheduler to run the Python script.&amp;nbsp; There's a blog article that describes the workflow &lt;A href="https://www.esri.com/arcgis-blog/products/arcgis-pro/analytics/schedule-a-python-script-or-model-to-run-at-a-prescribed-time-2019-update/#:~:text=Instead%20of%20running%20the%20script%20directly%2C%20instruct%20Task,would%20look%20like%20this%3A%20%22C%3AProgram%20FilesArcGISProbinPythonenvsarcgispro-py3python.exe%22%20%22E%3AMy%20script.py%22" target="_self"&gt;here&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Feb 2022 15:44:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/scheduled-modelbuilder-task-fails-on-select-layer/m-p/1142664#M51262</guid>
      <dc:creator>Robert_LeClair</dc:creator>
      <dc:date>2022-02-10T15:44:15Z</dc:date>
    </item>
    <item>
      <title>Re: Scheduled ModelBuilder task fails on Select Layer By Attribute using Hosted Feature Layers (Error 000358 Invalid Expression)</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/scheduled-modelbuilder-task-fails-on-select-layer/m-p/1149809#M52252</link>
      <description>&lt;P&gt;This has been driving me nuts all morning.&amp;nbsp; My model works just fine, if I manually click run, if I schedule it, it fails.&amp;nbsp; I tracked it down to the same error&amp;nbsp;000358.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll check out the process to export to a python script, thanks for the tip&lt;/P&gt;&lt;P&gt;I found this youtube very helpful, if you already know models skip about 30 minutes in.&amp;nbsp;&amp;nbsp;&lt;A href="https://www.youtube.com/watch?v=pIfS0saxpi8" target="_blank"&gt;https://www.youtube.com/watch?v=pIfS0saxpi8&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Mar 2022 23:44:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/scheduled-modelbuilder-task-fails-on-select-layer/m-p/1149809#M52252</guid>
      <dc:creator>RyanBohan</dc:creator>
      <dc:date>2022-03-07T23:44:47Z</dc:date>
    </item>
    <item>
      <title>Re: Scheduled ModelBuilder task fails on Select Layer By Attribute using Hosted Feature Layers (Error 000358 Invalid Expression)</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/scheduled-modelbuilder-task-fails-on-select-layer/m-p/1173554#M55122</link>
      <description>&lt;P&gt;Were you able to find a solution to this issue? I have a nearly identical model and I am getting the same error (Error 00358: Invalid expression) My model works great when I start it, does not work when scheduled. Very annoying&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 May 2022 22:31:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/scheduled-modelbuilder-task-fails-on-select-layer/m-p/1173554#M55122</guid>
      <dc:creator>Michael_VanHatten</dc:creator>
      <dc:date>2022-05-12T22:31:05Z</dc:date>
    </item>
    <item>
      <title>Re: Scheduled ModelBuilder task fails on Select Layer By Attribute using Hosted Feature Layers (Error 000358 Invalid Expression)</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/scheduled-modelbuilder-task-fails-on-select-layer/m-p/1175323#M55307</link>
      <description>&lt;P&gt;Have the same issue using the "Select (Analysis)" tool on a scheduled model.... This is the workaround that kinda help me get it to work.&lt;/P&gt;&lt;P&gt;I've notice that the issue only happens when the SQL expression is referring to a numerical field... In my case I needed to select data that are greater than 0 &lt;EM&gt;(I'd imagine it would be more complicated if it is another threshold value or ranges)&lt;/EM&gt;, so what I did was:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;create a new string field&lt;/LI&gt;&lt;LI&gt;calculate the value of the created field as text value of the field I wanted to do my integer based expression&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ramon_de_Leon_0-1652905546000.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/41663iC736AD1E8C4ED574/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ramon_de_Leon_0-1652905546000.png" alt="Ramon_de_Leon_0-1652905546000.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;• Do the "Select (Analysis)" tool with the expression using the text field:&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ramon_de_Leon_1-1652905562599.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/41664i9A7C720F1CF784B1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ramon_de_Leon_1-1652905562599.png" alt="Ramon_de_Leon_1-1652905562599.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hopefully the bug gets fixed soon, it’s a lot of extra steps to get the select working on a scheduled tool.&lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2022 20:31:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/scheduled-modelbuilder-task-fails-on-select-layer/m-p/1175323#M55307</guid>
      <dc:creator>Ramon_de_Leon</dc:creator>
      <dc:date>2022-05-18T20:31:02Z</dc:date>
    </item>
    <item>
      <title>Re: Scheduled ModelBuilder task fails on Select Layer By Attribute using Hosted Feature Layers (Error 000358 Invalid Expression)</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/scheduled-modelbuilder-task-fails-on-select-layer/m-p/1175470#M55327</link>
      <description>&lt;P&gt;Glad you got it working. My field is not numerical but it still fails unfortunately.&lt;/P&gt;</description>
      <pubDate>Thu, 19 May 2022 08:35:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/scheduled-modelbuilder-task-fails-on-select-layer/m-p/1175470#M55327</guid>
      <dc:creator>DataOfficer</dc:creator>
      <dc:date>2022-05-19T08:35:31Z</dc:date>
    </item>
    <item>
      <title>Re: Scheduled ModelBuilder task fails on Select Layer By Attribute using Hosted Feature Layers (Error 000358 Invalid Expression)</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/scheduled-modelbuilder-task-fails-on-select-layer/m-p/1175500#M55331</link>
      <description>&lt;P&gt;I see, might be a separate issue then for hosted layers (I was working on local file geodatabase/SDE).&lt;/P&gt;&lt;P&gt;I did check though and I have a scheduled model tool (ArcGIS Pro 2.9.2) that has a bunch of "Select Layer by Attribute" (non-numeric field) and its been working, the thing though is I am working on a file geodatabase then overwriting my feature layer after am done with my geoprocessing.&lt;/P&gt;&lt;P&gt;You might want to try creating a local copy of your "feature layer" and use that as input for your model after you are done you can overwrite your feature layer or do a delete rows/append to just insert the records that have changes.&lt;/P&gt;</description>
      <pubDate>Thu, 19 May 2022 12:42:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/scheduled-modelbuilder-task-fails-on-select-layer/m-p/1175500#M55331</guid>
      <dc:creator>Ramon_de_Leon</dc:creator>
      <dc:date>2022-05-19T12:42:59Z</dc:date>
    </item>
    <item>
      <title>Re: Scheduled ModelBuilder task fails on Select Layer By Attribute using Hosted Feature Layers (Error 000358 Invalid Expression)</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/scheduled-modelbuilder-task-fails-on-select-layer/m-p/1185213#M56428</link>
      <description>&lt;P&gt;Has there been any progress with this bug? Do we have to wait until 3.0 for automatic geoprocessing? It seems like this should be low hanging fruit.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2022 19:12:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/scheduled-modelbuilder-task-fails-on-select-layer/m-p/1185213#M56428</guid>
      <dc:creator>Michael_VanHatten</dc:creator>
      <dc:date>2022-06-22T19:12:12Z</dc:date>
    </item>
    <item>
      <title>Re: Scheduled ModelBuilder task fails on Select Layer By Attribute using Hosted Feature Layers (Error 000358 Invalid Expression)</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/scheduled-modelbuilder-task-fails-on-select-layer/m-p/1185215#M56429</link>
      <description>&lt;P&gt;Michael -&amp;nbsp;&lt;SPAN&gt;BUG-000131693 was fixed at ArcGIS Pro 3.0...which should be released very, very soon I suspect with User Conference coming up next month.&amp;nbsp; Esri tends to release software updates a few weeks before UC.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2022 19:15:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/scheduled-modelbuilder-task-fails-on-select-layer/m-p/1185215#M56429</guid>
      <dc:creator>Robert_LeClair</dc:creator>
      <dc:date>2022-06-22T19:15:49Z</dc:date>
    </item>
    <item>
      <title>Re: Scheduled ModelBuilder task fails on Select Layer By Attribute using Hosted Feature Layers (Error 000358 Invalid Expression)</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/scheduled-modelbuilder-task-fails-on-select-layer/m-p/1185251#M56432</link>
      <description>&lt;P&gt;Thanks Robert&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2022 20:22:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/scheduled-modelbuilder-task-fails-on-select-layer/m-p/1185251#M56432</guid>
      <dc:creator>Michael_VanHatten</dc:creator>
      <dc:date>2022-06-22T20:22:22Z</dc:date>
    </item>
    <item>
      <title>Re: Scheduled ModelBuilder task fails on Select Layer By Attribute using Hosted Feature Layers (Error 000358 Invalid Expression)</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/scheduled-modelbuilder-task-fails-on-select-layer/m-p/1185770#M56488</link>
      <description>&lt;P&gt;Thank God I found this thread.&lt;/P&gt;&lt;P&gt;I also have been going crazy with this. Modified my model, my script, nothing worked when scheduling this to update a hosted feature layer. Manually it works perfectly.&lt;/P&gt;&lt;P&gt;I am not too frustrated as this has to run monthly, but man it can drive you nuts not knowing that is a bug.&lt;/P&gt;&lt;P&gt;Running on 2.9.3 right now.&lt;/P&gt;&lt;P&gt;I think 3.0 was released today.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jun 2022 21:03:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/scheduled-modelbuilder-task-fails-on-select-layer/m-p/1185770#M56488</guid>
      <dc:creator>BigLouC</dc:creator>
      <dc:date>2022-06-23T21:03:19Z</dc:date>
    </item>
    <item>
      <title>Re: Scheduled ModelBuilder task fails on Select Layer By Attribute using Hosted Feature Layers (Error 000358 Invalid Expression)</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/scheduled-modelbuilder-task-fails-on-select-layer/m-p/1187515#M56697</link>
      <description>&lt;P&gt;I installed 3.0 today and go figure I am still having issues. Now a new error message shows up, have you had a chance to install and try out the scheduler with 3.0?&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jun 2022 20:40:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/scheduled-modelbuilder-task-fails-on-select-layer/m-p/1187515#M56697</guid>
      <dc:creator>Michael_VanHatten</dc:creator>
      <dc:date>2022-06-28T20:40:39Z</dc:date>
    </item>
    <item>
      <title>Re: Scheduled ModelBuilder task fails on Select Layer By Attribute using Hosted Feature Layers (Error 000358 Invalid Expression)</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/scheduled-modelbuilder-task-fails-on-select-layer/m-p/1187795#M56721</link>
      <description>&lt;P&gt;Hi Michael, not I have not.&lt;/P&gt;&lt;P&gt;I was about to when I asked my GIS IT group if it was OK and they told me not to as it may also have issues. To wait until a further release is available.&lt;/P&gt;&lt;P&gt;Go figure, a release to fix the release that was to fix a previous release.&lt;/P&gt;&lt;P&gt;I will wait to see when I can install it and then let you know.&lt;/P&gt;&lt;P&gt;Sorry to hear you still have issues.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2022 14:22:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/scheduled-modelbuilder-task-fails-on-select-layer/m-p/1187795#M56721</guid>
      <dc:creator>BigLouC</dc:creator>
      <dc:date>2022-06-29T14:22:52Z</dc:date>
    </item>
    <item>
      <title>Re: Scheduled ModelBuilder task fails on Select Layer By Attribute using Hosted Feature Layers (Error 000358 Invalid Expression)</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/scheduled-modelbuilder-task-fails-on-select-layer/m-p/1187856#M56728</link>
      <description>&lt;P&gt;I've carried out some limited testing so far using 3.0 and it seems to have resolved the issue. I will report back if that changes though with further testing.&lt;BR /&gt;&lt;BR /&gt;What's the new error message&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/554869"&gt;@Michael_VanHatten&lt;/a&gt;&amp;nbsp;?&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2022 15:39:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/scheduled-modelbuilder-task-fails-on-select-layer/m-p/1187856#M56728</guid>
      <dc:creator>DataOfficer</dc:creator>
      <dc:date>2022-06-29T15:39:32Z</dc:date>
    </item>
  </channel>
</rss>

