Skip To Content

Publish layers in bulk from a user-managed data store

You can publish layers in bulk from a data store item in the portal. When you do this, one feature layer item and one map image layer item are created for each accessible feature class and table in the database. These layers reference the data in the database; the data is not copied to another location. Once created, you can share the layers with those who need access to them so they can use the layers in their own maps and apps.

Considerations before you publish in bulk from a data store

  • You must be the owner of the data store item to publish layers in bulk from it.
  • You must be a member of a role that has privileges to create feature layers in bulk from a data store item and publish server-based layers.
  • Portal layers are created for all datasets in the database that can be accessed through the database connection. Once you create the layers, only you have access to them, but you can share layers with other portal members or even the public. For this reason, it is important to consider what feature classes and tables the user specified in the connection file can access and what type of privileges the user has on those datasets.
    • The database user in the database connection should only have access to the subset of feature classes and tables that need to be published in bulk.
    • The privileges granted to the user specified in the database connection needs the appropriate privileges on each dataset.

      When you create feature layers in bulk, editing is not enabled on the layers. However, editing can be enabled on the feature service in ArcGIS Server Manager. If you do not want people to edit data through these bulk-published feature layers, connect to the database as a user who has only privileges to select data from the feature classes and tables, and do not enable editing on the feature service.

    • To meet the data accessibility and privilege levels you require to publish the right layers in bulk, you may need to request a new database user from your database administrator.
  • Data is published using default renderers and scales.
  • To allow efficient bulk publishing, the map services on the federated server use shared instances.
  • If the data store item accesses an enterprise geodatabase, each feature class or table that contains metadata will result in a feature layer that contains metadata.

Publish layers in bulk

Follow these steps to publish feature and map image layers from all the feature classes and tables available through a database data store item in the portal:

  1. Open the details page for the database data store item from which you will publish.
  2. Click the Layers tab and click Create Layers.
  3. Choose an empty folder or create a folder in which to store the feature layers and click Next.

    This folder in My Content on the Content page helps you organize the items you own. Keeping the bulk-published feature layers in a separate folder will help you identify which feature layers were published in this way, are dependent on and can be synchronized through the data store item, and cannot be configured for offline use. You cannot use your portal user folder (the one that has the same name as your portal user name) to store these layers.

  4. You'll see a list of all the federated servers to which this data store item was added. Choose the federated server to which you want to publish the data. You can publish layers in bulk to only one federated server.
  5. A folder will be created on the federated ArcGIS GIS Server site to store the services that power the map image and feature layer items. Choose one of the following to specify a name for this folder:
    • Use the same name as the folder in My Content—The folder on the GIS Server site will have the same name as the My Content folder you specified in step 3.
    • Use a custom folder name—Allows you to type a name in the field if you want the new folder to have a different name than the folder in My Content.

    This folder is on the GIS Server site and is part of the information that identifies where each service is running. The folder name will be part of the URL of each service.

  6. Click Start publishing layers.

    Publishing may take a long time to complete if the database connection you used for the data store item has access to a large number of feature classes and tables in the database.

When all layers are created, they appear on the data store item's Layers tab.

Click the layer name to manage the details for each layer and share them with groups, the portal, or everyone.

Note:

Because a feature layer item in the portal is a map service with feature access enabled on the ArcGIS Server site, you must share the feature layer and its associated map image layer to the same set of users (groups, the portal, or the public). If you only share the feature layer, it cannot be used by others.