Schedule Geoprocessing Tools in ArcGIS Pro 2.5

1051
15
02-04-2020 11:24 AM
Highlighted
New Contributor III

With ArcGIS Pro 2.5 release (due out this month), you can now schedule a geoprocessing tool (including ModelBuilder and Python script tools) to run at specific times and days within the geoprocessing pane! Here is a blog article elaborating more on the topic: Schedule Geoprocessing Tools and Models in ArcGIS Pro 2.5 

15 Replies
Highlighted
Regular Contributor

This is very exciting news and I've been able to successfully schedule a model that performs a simple Calculate Field on a local SDE feature class in Pro 2.5, but I have not been successful trying to do the same thing with an AGOL hosted feature class.  I've created a very simple model that works fine when I manually run it from the ModelBuilder interface, but which fails when it is scheduled.  In the Windows Scheduler window I get a (0x1) "Last Run Result" status.  Apparently when working with hosted layers it isn't as simple as it sounds.  One thing that isn't clear is exactly how to specify the hosted layer - I've tried variants of the REST including with and without the token.  Either way works when manually run, but neither when scheduled.

Could you provide a simple example of how to create a model that interacts with a hosted feature class?  Are there any "gotchas" we need to be aware of when scheduling models that work with hosted feature classes?

#scheduled task#modelbuilder

Jay
Washoe County GIS
Reply
0 Kudos
Highlighted
Occasional Contributor

Hi

I am getting same error  In the Windows Scheduler window I get a (0x1) "Last Run Result" status. 

Did you resolve this issue?

Thanks

Reply
0 Kudos
Highlighted
Regular Contributor

No, I haven't solved it, sorry.

Jay
Washoe County GIS
Reply
0 Kudos
Highlighted
Occasional Contributor

Jay, thank you

Me too, still trying to figure it out

Reply
0 Kudos
Highlighted
New Contributor III

Hi Husham,

Can you send me your model or script so that I can test it here?

Thanks!

Jian

Jian Lange | Senior Product Manager (Spatial Analysis)

Esri | 380 New York Street | Redlands, CA 92373 | USA

Phone: 909-793-2853 ext. 2639| E-mail: jlange@esri.com<mailto:ichivite@esri.com>

Reply
0 Kudos
Highlighted
Occasional Contributor

Thanks,

I attached both the Model, and script converted from the same model

Thank you

Reply
0 Kudos
Highlighted
New Contributor III

Hi there,

I couldn’t see any attachments from your email. Could you please send me the files directly to my email at jlange@esri.com<mailto:jlange@esri.com>?

Thanks!

Jian

Jian Lange | Senior Product Manager (Spatial Analysis)

Esri | 380 New York Street | Redlands, CA 92373 | USA

Phone: 909-793-2853 ext. 2639| E-mail: jlange@esri.com<mailto:ichivite@esri.com>

Reply
0 Kudos
Highlighted
Occasional Contributor

strange,

email sent

thanks

Reply
0 Kudos
Highlighted
New Contributor III

Hi Jay, 

If  you are using the Named User licensing model with your ArcGIS Pro, and you would like to have the scheduled tool to run without ArcGIS Pro being open, then the “Sign me in automatically” option must be selected. Let me know if this is the issue.

 

Reply
0 Kudos