Share a web feature layer from ArcGIS Pro

First, you will download the ArcGIS Pro project package that contains the near real-time COVID-19 cases for the United States and a polygon layer of California county boundaries. Next, you will use the Summarize Within tool in ArcGIS Pro to aggregate COVID-19 cases for each county in California. To adjust the COVID-19 cases and deaths for the differences in population size, you will also create attributes using the Calculate Field tool to add the COVID-19 statistics per 10,000 people for each California county. Finally, you will share the aggregated California county cases and deaths to ArcGIS Online as a web feature layer.

Download lesson data

In this step, you’ll create a hosted web feature layer in ArcGIS Online to display near real-time COVID-19 cases data for California counties. First, you will download the ArcGIS Pro project package that contains the near real-time COVID-19 cases for the United States and a polygon layer of California county boundaries. Next, you will use the Summarize Within tool in ArcGIS Pro to aggregate COVID-19 cases for each county in California. To adjust the COVID-19 cases and deaths for the differences in population size, you will also create attributes using the Calculate Field tool to add the COVID-19 statistics per 10,000 people for each California county. Finally, you will share the aggregated California county cases and deaths to ArcGIS Online as a web feature layer.

  1. Download the data for this lesson.
  2. Specify a suitable location where you want to save the data.
  3. After the download has completed, locate and double-click the AutomateFeatureUpdate.ppkx project package.
    Note:

    If you don't have ArcGIS Pro or an ArcGIS account, you can sign up for an ArcGIS free trial.

  4. When prompted, sign in to your ArcGIS Online account.
    Note:

    If you don't have an organizational account, you can sign up for an ArcGIS free trial.

    The ArcGIS Pro project AutomateFeatureUpdate consists of two layers in addition to the basemap layer.

    2020 total population map

    • US Near Real-Time Covid-19 Cases is a feature layer from ArcGIS Living Atlas of the World that shows the near real-time situation for the COVID-19 virus in the United States. This layer is updated hourly.
    • California Counties is a feature class located in the project’s geodatabase. This feature class contains California county boundaries including an attribute with 2020 total population for each county.

Summarize COVID-19 cases within each county in California

Next, you will overlay the California Counties polygon layer with the US Near Real-Time COVID-19 Cases layer to summarize the number of confirmed COVID-19 cases and deaths within each county.

  1. On the Ribbon, on the Analysis tab, in the Tools group, click Summarize Within.

    Select the Summarize Within tool.

  2. In the Summarize Within tool pane, set the following parameters:

    • For Input Polygons, choose California_Counties.
    • For Input Summary Features choose US Near Read-Time Covid-19 Cases.
    • For Output Feature Class, type California_Counties_CovidCases.
    • Check Keep all input polygons.
    • For Summary Fields:

      For the first Field, choose Confirmed.
    • For Statistic, choose Sum.
    • For the second Field, choose Deaths.
    • For Statistic, choose Sum.

    Review Summarize Within tool parameters.

  3. Verify the Summary Fields settings, then click Run.

    Field

    Statistic

    Confirmed

    Sum

    Deaths

    Sum

    The tool executes and adds an output layer named California_Counties_CovidCases to the map. The layer references a polygon feature class that includes a per-county summary of confirmed COVID-19 cases and deaths.

  4. In the Contents pane, right-click the California_Counties_CovidCases layer and choose Attribute Table.

    Display attribute table.

  5. Review the California_Counties_CovidCases table and the Sum fields.

    The Sum Confirmed and Sum Deaths fields in the attribute table contain the total number of confirmed cases and deaths for each California county.

    Review attribute fields.

Create fields to normalize the confirmed COVID-19 cases and deaths by population

Although the absolute numbers of confirmed COVID-19 cases and deaths for each county are helpful information, to reveal regional patterns associated with the pandemic, it requires normalized data (for example, cases per 10,000 people) rather than absolute data. In this step, we will create two fields to capture the confirmed numbers of COVID-19 cases and deaths, normalized by the county’s population.

  1. In the California_Counties_CovidCases table, click Calculate.

    Use field calculator.

    Next, you will use an Arcade expression to calculate a field value. The Arcade expression will calculate values for the CasesPer10000 field, representing the total number of COVID-19 cases per 10,000 people for each county.

  2. In the Calculate Field tool, set the following parameters:

    • For Input Table choose California_Counties_CovidCases.
    • For Field Name (Existing or New), type CasesPer10000.
      Note:

      After typing the Field Name, press enter. Initially you may not see the Field Type option, if so, make sure to click the tool dialog box and Field Type should then appear.

    • For Field Type, choose Double (double precision).
    • For Expression Type, choose Arcade.
    • In the CasesPer10000 box, build the following expression: ($feature.SUM_Confirmed / $feature.keyusfacts_totpop_cy) * 10000.
      Note:

      Using Arcade, field names are formatted as $feature["field name"] or $feature.fieldname.

    Calculate Field tool parameters for CasesPer10000 field

    Note:

    The CasesPer10000 field does not exist in the original input table; it is added by the Calculate Field tool.

  3. Click Apply, then click OK.
  4. Verify the addition of the CasesPer10000 field and calculated values in the California_Counties_CovidCases table.

    Next, you will add a second field named DeathsPer10000 and calculate the normalized COVID-19 deaths per 10,000 people for each county.

  5. In the California_Counties_CovidCases table, click Calculate.
  6. In the Calculate Field tool, set the following parameters:

    • For Input Table, choose California_Counties_CovidCases.
    • For Field Name (Existing or New), choose DeathsPer10000.
    • For Field Type, choose Double (double precision)
    • For Expression Type choose Arcade.
    • In the DeathsPer10000 box, build the following expression: ($feature.SUM_Deaths / $feature.keyusfacts_totpop_cy) * 10000.

    Calculate Field tool parameters for DeathsPer10000 field

  7. Click Apply, then click OK and verify the addition of the DeathsPer10000 field in the California_Counties_CovidCases table.

    Review Calculate Field results.

  8. Close the table and save the project.

Enable Editor Tracking

In this step, you will enable editor tracking for the California_Counties_CovidCases feature class. Editor tracking allows you to automatically record information about updates that are made to the feature layer including a time stamp of when updates occur.

  1. On the Ribbon, in the View tab, click Catalog Pane

    Display Catalog Pane.

  2. In the Catalog Pane, expand Databases.

    Locate project database.

  3. Locate and expand AutomateFeatureUpdate.gdb, the default project database.
  4. In the AutomateFeatureUpdate.gdb, locate and right-click California_Counties_CovidCases, then choose Properties.

    Set feature class properties.

    The Feature Class Properties dialog box appears.

  5. On the Feature Class Properties dialog box, click Editor Tracking.

    Locate Editor Tracking

  6. Click the Enable editor tracking option, then click OK to close the dialog box.

    Enable editor tracking

Visualize and explore the California_Counties_CovidCases result layer

To better visualize the COVID-19 cases in California counties, you will use graduated symbols to show a quantitative difference between each county by varying the size of symbols.

  1. In the Contents pane, uncheck the US Near Real-Time Covid-19 Cases and California_Counties layers.

    Uncheck layers in Contents pane.

  2. In the Contents pane, if necessary check the California_Counties_CovidCases layer.

    Display layer in Contents pane.

  3. On the Ribbon, on the Appearance tab, in the Drawing group, click Symbology.

    Display Symbology pane.

  4. In the Symbology pane, click the Primary symbology drop-down list, scroll down, and choose Graduated Symbols.
  5. For Field, choose CasesPer10000.
  6. Set Minimum size to 2 pt and Maximum size to 20 pt.

    This will generate a good visual contrast, highlighting the difference between counties with low and high numbers of cases.

  7. In the Symbology pane, click More, then choose Format all symbols. Change the symbol color to purple.

    Apply symbol formatting.

  8. Verify the updated symbol settings, then close the Symbology pane.

    Update symbology parameters.

    The map updates with the California_Counties_CovidCases layer symbolized using graduated symbols based on the confirmed number of COVID-19 cases per 10,000 people in each California county.

    Review layer symbology.

  9. Save the project.

Save project.

Share the California_Counties_CovidCases layer as a hosted web feature layer

In this step, you will share the California_Counties_CovidCases layer created previously as a hosted web feature layer in your ArcGIS Online organization.

  1. In the Contents pane, right-click California_Counties_CovidCases, point to Sharing, and choose Share As Web Layer.

    Share As Web Layer

    Note:

    If Share As Web Layer is not available, review your current Sign-in Status at the top of the ribbon. If the status is set to Not signed in, sign in to enable sharing.

  2. In the Share As Web Layer pane, on the General tab, update the following:

    • For Name, type California_Counties_CovidCases.
    • For Summary, type This is a web feature layer of COVID-19 information for California counties.
    • For Tags, type COVID-19, California.
    • For Layer Type, choose Feature.
    • For Share with, check Everyone.

    Set general sharing parameters.

  3. In the Share As Web Layer pane, click the Configuration tab.

    Select Configuration tab.

  4. On the Configuration tab, for Layer(s) and Feature, click the Edit button.

    Set configuration sharing parameters.

  5. If necessary, expand Operations, then check Enable editing and allow editors to:, and choose Add, update, and delete features.

    Enable editing on shared layer.

  6. In the Share As Web Layer pane, click Analyze.
    Note:

    If you encounter a warning that the layer does not have a feature template set, you can ignore it. A default feature template will be created for you.

  7. When the analysis completes, click Publish.
  8. Close the Share As Web Layer pane.
  9. Save the project.

In the next module, you will build a web map in ArcGIS Online that includes the shared web feature layer and you'll configure custom pop-ups and create an online dashboard with a map, charts, and an indicator to view COVID-19 information for California counties.


Configure a web map and dashboard

In this module you will build a web map in ArcGIS Online that includes the shared web feature layer and you'll configure custom pop-ups and create an online dashboard with a map, charts, and an indicator to view COVID-19 information for California counties

Create the web map

In this step, you will build a web map in ArcGIS Online, that includes the shared web feature layer from the previous lesson. You will configure custom pop-ups in the web map, and create an online dashboard with a map, charts and an indicator to view COVID-19 information for California counties.

  1. In a browser, sign in to your ArcGIS Online organizational account.

    Sign in to your ArcGIS Online account.

  2. On the home page ribbon, click Map.

    Create a map.

    A new map opens with the default basemap. You want to use Light Gray Canvas as your basemap.

    Note:

    A next generation of Map Viewer and Dashboard will be released shortly, that will make it easier, more intuitive, and faster to create attractive and impactful web maps and provide an enhanced experience for your key mapping workflows. Your organization may have switched to the new Map Viewer and Dashboard and thus current instructions and images in this lesson may appear different.

  3. On the Ribbon, click Basemap and choose the Light Gray Canvas map.

    Choose a basemap.

  4. Click Add and choose Search for Layers. Confirm that the list of layers shown is for My Content.

    Search for layers.

  5. In the results list, click the Add button next to the California_Counties_CovidCases web feature layer.

    Add layer to map.

    The California_Counties_CovidCases layer with graduated symbols is added to the map.

    Note:

    If there are many layers in your account, you may need to search for the layer based on a keyword or the title of the web layer shared from ArcGIS Pro.

  6. Close the My Content pane.

    Close layer search.

  7. Click Content and zoom the web map extent to the California Counties CovidCases layer.

    Zoom to layer.

  8. On the ribbon, click Save and choose Save As. In the Save Map window, update the following:

    • For Title, type California Counties Covid Cases.
    • For Tags, type Covid-19,California.
    • For Summary, type Web map of Covid-19 information for California counties.

    Save map and add tags and description.

  9. Click Save Map.

Configure custom pop-ups for the web map

Next, you will configure pop-ups in the web map to display key COVID-19 statistics for each California county. First, you'll look at the default pop-up and see how it can be improved.

  1. On the map, click any California county.

    The feature's pop-up appears.

    Display layer pop-up.

    The pop-up currently displays the attribute values for the selected county based on all the attributes in the original feature layer. You will configure the pop-up to display only the important attributes related to the COVID-19 statistics.

  2. Close the pop-up.
  3. In the Contents pane, point to the California Counties CovidCases layer and click More Options, then choose Configure Pop-up.

    Choose pop-up configuration.

    The Configure Pop-up pane appears.

  4. In the Pop-up Contents pane, for Display, choose A custom attribute display.

    Select configure pop-up property.

  5. Click Configure.

    The Custom Attribute Display window appears. You'll use the text editor window to create a sentence that will appear in the pop-up. Your pop-up can also include attribute information that changes depending on which California county is clicked.

  6. In the Custom Attribute Display window, click the Add field name button and choose {SUM_Confirmed}, {SUM_Deaths}, {CasesPer10000}, and {DeathsPer10000}.

    Add pop-up fields.

  7. In the Custom Attribute Display window, edit and add the following texts before the field names:

    • Type Confirmed cases: for {SUM_Confirmed}.
    • Type Deaths: for {SUM_Deaths}.
    • Type Cases per 10,000: for {CasesPer10000}.
    • Type Deaths per 10,000: for {DeathsPer10000}.

    Add custom attribute display text.

  8. Click OK.
  9. In the Configure Pop-up pane, click Configure Attributes.

    Configure Attributes

    The Configure Attributes window appears.

  10. Select both the Sum Confirmed and Sum Deaths field names, then for Format, choose 0 decimal places, and check Use 1000 Separator.

    Set field formatting properties.

  11. Click OK to stop configuring attributes. In the Configure Pop-up pane, click OK to complete the configuration.
  12. On the web map, click any California county to verify that the pop-up has been successfully configured.

    Review customized pop-up.

  13. Close the pop-up and save the map.
  14. On the map ribbon, click Share.

    Share web map.

  15. In the Share window, click Create a Web App.

    Share web map as web app

    Note:

    Your Link to this map, address will differ and is a unique to your web map.

Create and configure the ArcGIS Online dashboard

ArcGIS Dashboards is a configurable web app that provides location-aware data visualization and analytics for a real-time operational view of people, services, assets, and events.

Previously, you created a web map with a web feature layer showing the current COVID-19 information for California counties. In this step, you will create an ArcGIS Online dashboard with the following elements:

  • Maps
  • Charts
  • Indicators

  1. Select the ArcGIS Dashboards tab and update the following parameters:

    • For Title, type California Counties Covid Cases.
    • For Tags, type Covid-19, California.
    • For Summary, type Online dashboard with near real time covid information for California counties.

    Set web app properties.

  2. Click Done.

    The dashboard opens in your browser window and displays the California Counties Covid Cases application.

    Review dashboard map.

    Next, you will configure map tools.

  3. Point to the upper left corner of the map. On the toolbar, click the Configure button.

    Configure dashboard map.

  4. On the Settings tab, choose the following options:

    • Pop-ups
    • Default Extent and Bookmarks
    • Zoom In/Out

    Set dashboard map properties.

  5. Click Done.

Add serial charts to the dashboard

Next you will add a serial chart to display all California counties covid cases.

  1. On the dashboard application title bar, click Add and choose Serial Chart.

    Add chart to dashboard.

  2. In the Serial Chart pane, for Select Layer, choose California_Counties_CovidCases.

    Set dashboard chart layer.

    The Serial Chart element configuration window appears.

  3. In the Serial Chart element configuration window, verify the Data tab is selected.
  4. In Data Options, update the following:

    • For Categories From, select Features.
    • For Category Field, select Name.
    • For Series 1 Field, select Sum Confirmed.
    • For Sort By, select Sum Confirmed and Descending.
    • For Maximum Categories, specify 10.

    Set dashboard chart properties.

  5. In the Serial Chart element configuration window, click the Chart tab.
  6. In Chart Options, update the following:

    • For Orientation, select Horizontal.

    Set dashboard chart orientation.

  7. In the Serial Chart element configuration window, click the Series tab.
  8. In Series Options, update the following:

    • For Color, select purple to match the map symbology color.

    Set dashboard chart symbology.

  9. In the Serial Chart element configuration window, click the General tab.
  10. In General Options, for Title, click Edit.

    Edit dashboard chart properties.

  11. For Title, type Top 10 Counties with Confirmed Cases.

    Set dashboard chart name and font.

  12. Click Done.
  13. On your own, add a second serial chart to highlight the top 10 counties with the highest number of COVID-19 cases per 10,000 people. Update the parameters as follows:

    • For Categories From, select Features.
    • For Category Field, select Name.
    • For Series 1 Field, select CasesPer10000.
    • For Sort By, select CasesPer10000 and Descending.
    • For Maximum Categories, specify 10.

  14. For Data Options, set the following parameters:

    • For Chart Options, set Orientation to Horizontal.
    • For Series Options, set the color to purple to match the map symbology color.
    • For General Options and Title, type Top 10 Counties with Cases Per 10,000 people.

  15. Verify your dashboard has two series charts and, if necessary, reposition the series charts to the left of the map frame on the dashboard.
  16. Click the upper left of the Top 10 Counties with Confirmed Cases chart frame to access and activate Drag item.

    Reposition dashboard components.

    Drag and reposition the chart frame as needed.

  17. Repeat and reposition the Top 10 Counties with Cases Per 10,000 people chart.

    Review dashboard map and charts.

  18. When you are done, save the dashboard

    Save dashboard.

    Next, you will add an Indicator to show when the data was last updated.

Add indicators to the dashboard

  1. On the dashboard application title bar, click Add and choose Indicator.

    Add dashboard indicator.

  2. In the Indicator pane, choose the California_Counties_CovidCases layer.

    Set dashboard indicator layer.

  3. In the Indicator element configuration window, verify the Data tab is checked.
  4. On the Data tab, update the following:

    • For Value Type, click Feature.
    • For Value Field, choose any field.
    • For Maximum Features Displayed set the value to 1.

    Set dashboard indicator properties.

  5. In the Indicator element configuration window, click the Indicator tab.
  6. In the Indicator Options pane, update the following:

    • For Top Text, specify Last Updated On.
    • For Middle Text, specify {last_edited_date}.

    Add dashboard indicator text.

  7. Click Done.
  8. In the dashboard, drag and position the indicator above the map.

    Review dashboard and indicator text.

  9. Save the dashboard.

In the next module, you will build a model with steps to update the California_Counties_CovidCases web feature layer used in the dashboard.


Create a model to update the web feature layer

In this module, you will build and run a geoprocessing model using ArcGIS Pro ModelBuilder. In the model, you will automate the update process for the California_Counties_CovidCases web feature layer. .

Create a ModelBuilder model

In this step, you will create a new geoprocessing model and add tools to automate the updating the California_Counties_CovidCases web feature layer.

  1. Open the AutomateFeatureUpdate project in ArcGIS Pro if you have previously closed it.
  2. On the Ribbon, on the Analysis tab, in the Geoprocessing group, click ModelBuilder.

    Create model.

    The model window appears and you can resize, dock, or tile the window in any position, as you would a map. The model, when saved is added to the default toolbox associated with the project.

  3. On the Ribbon, on the ModelBuilder tab, in the Model group, click Properties.

    Set model properties.

  4. In the Tool Properties: Model window, for General properties, update the following parameters:
    • For Name, type UpdateCACovidWebLayer.
    • For Label, type Update CA Covid Web Layer.

    Update model name and label.

  5. Click OK.

Add geoprocessing tools to the model

You can add tools to your model in several ways. In this section, you will drag and drop the geoprocessing tools we ran in lesson 1 into the model from the geoprocessing history.

  1. On the ribbon, click the Analysis tab, in the Geoprocessing group, click History.

    Display geoprocessing history.

    The History window appears. It maintains a list of all Geoprocessing tools executed in the current project. From the list of geoprocessing steps, you can easily re-execute a process or add one or more geoprocessing steps to a model.

  2. In the History window, select both Calculate Field tools and the Summarize Within tool.

    Select tools to add to model.

  3. Drag the three selected tools onto the model.
  4. In the Model window, verify that both Calculate Field tools and the Summarize Within tool were successfully added.

    Verify tools added to model.

    Note:

    You could manually drag each tool from the History pane to the model and connect the tools to run in the correct sequence.

    In addition, you could drag tools into the model from the Geoprocessing window, or by using the Add Tools To Model search window within ModelBuilder.

    Next, you will update the shared web feature layer with the new output from the model. To accomplish this, you can append new data into the existing table or feature class. However, in this workflow, the new analysis result should replace the contents of the web layer, therefore, you will delete all existing rows to empty the web feature layer prior to appending new records.

  5. In the Model window, click in any open space in the model and start typing Delete Rows.

    As you are typing, the Add Tools To Model search window displays.

    Search for model tools.

    Note:

    You may also search for the Delete Rows tool from the Geoprocessing pane, then right click and choose Add To Model.

  6. In the Add Tools To Model search window, double-click Delete Rows to add the tool to the model.

    Add tool to model.

    Next, you will specify your published California_Counties_CovidCases web layer as the target for row deletion and updating.

    Note:

    Make sure you are signed in to your ArcGIS organizational account.

  7. In the Model window, double-click Delete Rows.
  8. In the Delete Rows pane, for Input Rows, click the Browse button.

    Browse to tool input source.

  9. In the Input Rows browser window, expand Portal, then select My Content.
  10. From My Content, choose your shared web feature layer, California_Counties_CovidCases and open it.

    Select web feature layer.

    Next, you will rename the Delete Rows tool input and output in the model.

  11. In the Model window, right-click the Delete Rows, Input parameter, then choose Rename.
  12. For Name, type Target Hosted Web Feature Layer.

    Rename tool input to Target Hosted Web Feature Layer.

  13. In the Model window, right-click Output for the Delete Rows tool, then choose Rename.
  14. For Name, type CA Covid Cases After Delete Rows.

    Rename tool output to CA Covid Cases After Delete Rows.

    Next, you will add the Append tool to your model.

  15. In the Model window, click in any open space, then type append.

    As you are typing, the Add Tools To Model search window will automatically open.

  16. In the Add Tools To Model search window, double-click Append to add the tool to the model.

    Search for Append tool.

  17. In the Model window, drag and reposition the Append tool to the right of the Delete Rows output.

    Reposition tool in model.

    Next, you will connect the Delete Rows tool output to the Append tool input.

  18. Place the mouse pointer over the CA Covid Cases After Delete Rows variable.

    The pointer changes to the connection pointer.

  19. Click and hold the mouse button while you move the pointer to the Append tool to make a connection.
  20. When the pointer is above the Append tool, release the mouse button and select the Target Dataset tool parameter.

    Connect Delete Rows output as Append target dataset.

  21. In the Model window, for the second Calculate Field tool, right-click Output, then choose Rename.

    Rename calculate tool output.

  22. For Name, type Updated CA Covid Cases.

    Update calculate tool output name to Updated CA Covid Cases.

    Next, connect the Updated CA Covid Cases output as an additional input to the Append tool.

  23. Place the mouse pointer over the Updated CA Covid Cases variable.

    The pointer changes to the connection pointer.

  24. Click and hold the mouse button while you move the pointer to the Append tool to make a connection. When the pointer is above the Append tool, release the mouse button and select the Input Datasets tool parameter.

    Connect calculate output as append input.

  25. In the Model window, double-click the Append tool.
  26. In the Append window, for Field Matching Type, choose Use the Field Map to reconcile field differences, then click OK.

    Set append schema type.

  27. On the ribbon, on the ModelBuilder tab, click Auto Layout.

    Apply auto layout to model.

Set model parameters

In this step, you will specify the model parameters for the Update CA Covid Web Layer model. Variables that are set as model parameters show as tool parameters when the model is run as a geoprocessing tool, allowing you to specify different data or values for your model to process than what was specified when the model was created. You will also rename some model variables to make them easier to read.

  1. In the Model window, right-click California_Counties, then select Parameter to make the variable a model parameter.

    Set model parameters as variables.

    An indicator (P) is displayed above the variable to indicate it is a model parameter and a check mark appears next to Parameter in the variable context menu.

    Verify parameter setting.

  2. In the Model window, right-click US Near Real-Time Covid-19 Cases, then select Parameter to make the variable a model parameter.

    Set additional model parameter as a variable.

  3. In the Model window, right-click Target Hosted Web Feature Layer, then select Parameter to make the variable a model parameter.

    Verify web feature layer parameter as variable.

    Next, you will rename the California_Counties and US Near Real-Time Covid-19 Cases model parameters to make them easier to read.

  4. In the Model window, right-click California_Counties, then choose Rename.. For name, type Input California Counties.
  5. In the Model window, right-click US Near Real-Time Covid-19 Cases, then choose Rename.. For name, type Input US Covid Cases.

    Rename model parameters.

  6. On the ribbon, on the ModelBuilder tab, click Save.
    Note:

    A full copy of the Update CA Covid Web Layer Original model tool is available under the project’s Toolboxes folder.

    Verify model in project toolbox.

  7. Save the project.

In the next module, you will schedule the model tool to run at a specific time every day. Scheduling a geoprocessing tool allows you to run and reuse a tool automatically to perform updates.


Schedule model tool to automate web feature layer updates

In this module, you will schedule the model tool that was created in the previous lesson to run at a specific time every day and update the California_Counties_CovidCases web feature layer. Scheduling a geoprocessing tool allows you to schedule and repeat a tool you need to run regularly. You will schedule the model tool directly in ArcGIS Pro from the Geoprocessing pane.

To schedule the Update CA Covid Web Layer model tool, complete the following steps:

  1. In the Catalog pane, click Project, expand Toolboxes, and locate AutomateFeatureUpdate.tbx.

    Locate model toolbox.

  2. Right-click Update CA Covid Web Layer, then select Open to open the model tool.

    Display model.

    Note:

    You may also double-click the Update CA Covid Web Layer tool to open it.

  3. For the Update CA Covid Web Layer tool, update the following parameters:

    • For Input California Counties, select California_Counties.
    • For Input US Covid Cases, select US Near Real-Time Covid-19 Cases.
    • For Target Hosted Web Feature Layer, select and specify your own web feature layer.

    Set model tool input parameters.

  4. Use the Run button’s split menu to choose the Schedule command.

    Set scheduling details.

    Note:

    When a geoprocessing tool references existing layers from the current project’s contents pane as the input. The project must first be saved before scheduling the tool. To better guide this user experience, in ArcGIS Pro, you will get a warning icon next to the Schedule option if the project has not been saved. If that’s the case, save the project.

  5. In the Schedule Calendar window, specify the following parameters:

    • For Task name, keep the default.
    • For Recurrence, select Daily.
    • For Begins On, select 1:00 AM. (The current situation for the COVID-19 virus is frequently updated.)
    • For Recur every, select 1 day(s).

    Configure scheduling.

    Note:

    Once a geoprocessing tool is scheduled, it is then listed in the Geoprocessing, Scheduled section of the History pane.

  6. On the ribbon, on the Analysis tab, in the Geoprocessing group, click History.

    Display history pane.

  7. In the History pane, click the Schedule Calendar button.

    Review history pane.

  8. In the History pane, right-click the Update CA Covid Web Layer task and review schedule options.

    Manage scheduled geoprocessing tools.

    Note:

    You can manage scheduled geoprocessing tools by editing the schedule options such as date and time, recurrence, expiration, and other options. You can pause or delete the scheduled tool or run the scheduled tool immediately to make sure it works successfully.

  9. On your own, review the history pane and the dashboard created in this lesson. If the layer has been updated, the history pane will display details of the date and time that the task successfully updated the layer.

    Tool execution history

    Note:

    Each task in the schedule will include its execution history and each time the scheduled tool runs, a new time-stamp will be added to the schedule list. A green check or red X indicates whether the tool executed successfully or failed.

Note:

You can run scheduled geoprocessing tools from outside of ArcGIS Pro because the tools are scheduled in your operating system’s scheduler application. As long as all the changes to the ArcGIS Pro project are saved, and the Sign me in automatically option is selected when using the Named User license, ArcGIS Pro does not need to be open and be active at the time a tool is scheduled to run. The geoprocessing scheduling feature in ArcGIS Pro also works with Single Use and Concurrent Use licensing in addition to the Named User license.

In this lesson, you created and scheduled a custom ArcGIS geoprocessing model to automatically update a web feature layer with the latest COVID-19 cases in all California counties. You also learned how to share a hosted web feature layer from ArcGIS Pro to ArcGIS Online, and set up an ArcGIS Online dashboard. As a challenge, perhaps you can repeat the same process for your own state.

You can find more lessons in the Learn ArcGIS Lesson Gallery.