Skip To Content

Manage bulk-published layers

By publishing ArcGIS Server web layers in bulk from a database data store item in the portal, you create feature layers and map image layers for all feature classes and tables in the database to which your connection has access. As new datasets are made available to you through that same database connection or access to the datasets is removed, you can manually synchronize the database content with your layers in the portal. You can identify which dataset was published to create each layer. If necessary, you can also delete all the layers you published in bulk from a data store item.

Synchronize database content and layers

The content in a database changes over time—feature classes and tables are added and, occasionally, removed or renamed; fields are renamed, added to, or removed from feature classes and tables; metadata gets updated. Access to existing data can also change over time if owners or database administrators alter permissions on the datasets. All of these actions can lead to your database data store item and bulk-published layers getting out of sync with the source data.

As the owner of the data store item, you can bring the source data and bulk-published layers back in sync by synchronizing the layer.

The following sections describe what changes are synchronized and provide instructions for how to synchronize layers.

Added or deleted feature classes

As access to content in the database changes, you can synchronize the layers. If a source feature class or table is removed from the database or if privileges are revoked from the user connecting to the database, the corresponding feature and map image layers will be removed from the portal. Similarly, layers will be created in the portal for feature classes and tables added to the database or for which access is newly granted to the login used to access the database through the data store item.

Any map, scene, or app that used the deleted layer will no longer have access to the data. If a bulk-published feature layer that was used in offline workflows is deleted, offline edits cannot be synchronized and will be lost.

Renamed feature classes

Synchronization adds or removes layer items based on your access to the data in the database; it does not update the names when those change in the source feature class or table.

If you rename source feature classes and tables in the database, synchronization identifies these as new datasets. The layers with the old name will be deleted from the portal and federated server, and new layers will be published with the new name and new URLs. As with all deletions, any map, scene, or app that used the old layer will no longer have access to the data. Offline edits cannot be synchronized with a deleted feature layer.

Schema changes

If fields are added to or deleted from a source feature class or table, synchronization will update the associated map image layer and feature layer items to reflect that change.

Updated metadata

When you synchronize, metadata changes made in the source data will overwrite changes in the equivalent information in the web layer's item details by default. You can disable this before you synchronize if you do not want to synchronize metadata and details.

If you update the following metadata on the source data and allow metadata to be synchronized, it will overwrite the following changes that you made to the equivalent information in the web layer's item details:

  • Title (the layer name)
  • Description
  • Tags
  • Credits (attribution)
  • Terms of use (This is Use limitations in the source metadata.)

Synchronizing metadata also overwrites updates you made through the REST API to the following details for the layer item:

  • Snippet
  • Minimum scale
  • Maximum scale
  • Data extent for the layer item

Date and time fields

Prior to ArcGIS Enterprise 11.1, date and time values in bulk-published layers used the time zone of the referenced database, and date and time values in the published layers were always rendered in UTC in ArcGIS Enterprise.

Now, when you synchronize bulk-published layers, you can define the time zone for date and time fields to be stored with the related map image and feature layer items, and you can define a time zone to use when viewing the date and time data in ArcGIS Pro.

Synchronize layers

Follow these steps to synchronize content in the source database with web layer items in the portal:

  1. Sign in to the portal that contains the data store item.

    You must be the owner of the data store item.

  2. Open the details page for the data store item and click the Layers tab.
  3. Click Sync Layers.
  4. To update details for all the layers with information from the source data's metadata, leave the option Update layer items with metadata from source datasets enabled.
  5. If you did not set a time zone for date and time data when you published the layers in bulk, or you made a mistake when you set these values, proceed with step 5. Otherwise, go to step 7.

  6. If the data contains date and time fields that store data in a time zone other than UTC, open the Advanced section and choose that time zone from the Time zone of the data drop-down menu. To account for daylight saving time for that time zone, check the Adjust for daylight saving time check box.

    This time zone will be applied to all layers published. By default, date and time values are assumed to be in UTC.

  7. To display the date and time values in the published layers in ArcGIS using a time zone other than UTC, choose that time zone from the Preferred time zone for display drop-down menu. To account for daylight saving time for the display time zone, check the Adjust for daylight saving time check box.

    The time zone you choose from the Preferred time zone for display drop-down menu is stored with each map image layer and feature layer item. When users display the contents of these layers in ArcGIS Pro, date and time values will be displayed in this time zone. This display time zone will be applied to all layers published.

    By default, ArcGIS Pro displays date and time values in UTC.

  8. Click Sync Layers to proceed with synchronizing the layers with content in the underlying database.

    The amount of time this takes depends on how many changes have been made to the content in the database.

Identify layers and source data

The information provided on the Layers tab of the data store item's details page allows you, as the data store item owner, to identify what source dataset is populating each feature and map image layer. Only the data store owner has access to the Layers tab and this information. The Dataset column on the Layers tab shows you the fully qualified name of the feature class or table in the format <database_name>.<dataset_owner>.<table_name>.

To help you find a specific bulk-published layer, you can do any of the following on the Layers tab:

  • Change the order of the layers in the list on the Layers tab. By default, the list is sorted by the date the layer was created. To change how the list is sorted, click the sort button Sort and choose a new sort method.
  • If you know the layer name or part of the layer name, type it in the search box. This returns only those layers that have a name with that text in it. To clear the search, click the X in the search box.
  • To view or update a layer's details, click the layer name in the list.

As with any other layer, you (and other portal members with whom you share the layers) can use the filters and search capabilities available on the Contents page to find specific bulk-published layers.

Delete all bulk-published layers

In rare instances, you may need to remove all layers so that you can delete a data store item. There is an option on the Layers tab of the database data store item that allows you to do this.

Before you delete layers, be sure you have removed them from any maps in which you or others were using them. If you do not, the layers will be broken within those maps. To delete all layers, click Delete all created layers on the Layers tab of the database data store item.

Note:

You can also delete individual layers from My Content.

To delete both the map image layer and feature layer, you must delete the feature layer first and then delete the map image layer. However, both layers will be re-created when you next synchronize with the database unless the source feature class in the database is no longer available to you. For example, if the data owner has revoked your access to the source feature class or table, or the data owner deleted the feature class or table from the database, synchronizing with the database will not re-create the map image and feature layers.

If you want to delete only the feature layer, you can. Be aware, though, that the feature layer will not be re-created when you synchronize.