Skip to content

Configuring Data Assistant tools to run a Schedule using Windows Task Scheduler

Chris Buscaglia edited this page Apr 27, 2017 · 7 revisions

Schedule parcel updates

The Data Assistant tools can be used with Windows Task Scheduler to update layers on a regular interval. Scheduled updates will ensure users have access to current information to support more dynamic decision-making. To update parcel data on a schedule, complete the following steps:

  1. Using ArcGIS Pro, open the Python window

  2. Import ArcPy

    import arcpy
    
  3. Import a python toolbox from the Data Assistant tools by typing the following command

    arcpy.ImportToolbox(r"C:\Users\user\AppData\Local\Esri\ArcGISPro\AssemblyCache\{28142961-b645-420f-ba2a-72bcf8212558}\GPTools\DataLoadingAssistant.tbx")
    
  4. Specify your XML configuration file by typing the following command

      arcpy.dla.ReplaceData(r"C:\Users\youruserprofile\Documents\ArcGIS\Projects\MyProject\ReplaceData.xml")
    

Note with the Append Data and the Replace data, you can specify multiple XML files, make sure to separate each XML file with “;”

  1. Right-click in python window and choose to 'save transcript', this will save a new python file.
  2. Open Windows Task Scheduler.

Note Use Windows Start menu search box to find Windows Task Scheduler.

  1. Select Action > Create Task and name your task.
  2. Select the Actions tab and click New.
  3. Set Action to Start a Program.
  4. Browse to the location of your ArcGIS Pro python installation (C:\Program Files\ArcGIS\Pro\bin\Python\Scripts\propy.bat).
  5. In the Add Arguments text box, enter the full path of the script saved in step 5.

Clone this wiki locally