Share datasets with attribute rules

Datasets in enterprise geodatabases that contain attribute rules can be shared as a web feature layer to your organization's ArcGIS Enterprise portal. The type of attribute rule will determine the options used when sharing the web layer.

When sharing, you will reference the datasets in the enterprise geodatabase by checking the Feature check box under Reference registered data. This ensures your service is referencing datasets in your enterprise geodatabase and will not copy data during the publishing process.

Batch calculation and validation rules must also have the Validation capability enabled to evaluate rules. To learn more, see Evaluate attribute rules.

Note:

Attribute rules are not transferred when sharing to an ArcGIS Online portal.

Validation capability

When you share data with batch calculation or validation rules, there is an optional Validation capability you can enable. To learn more, see Additional layers and capabilities.

Analyzers are used to check datasets that are being shared as feature layers with Validation capabilities. The following conditions are enforced by these analyzers:

  • All four error datasets listed below are present in the map. There can be no more than one layer referencing the same error dataset.
    • GDB_ValidationPointErrors
    • GDB_ValidationLineErrors
    • GDB_ValidationPolygonErrors
    • GDB_ValidationObjectErrors
  • All data must be branch versioned. For more information, see Register a dataset as branch versioned.
  • The connected geodatabase must be set to branch for versioning type in the Geodatabase Connection Properties. For more information, see Update Geodatabase Connection Properties To Branch.
  • The connected geodatabase user must be the owner of the data.

Note:
The Validation capability is only available when sharing to ArcGIS Enterprise 10.7 or later. See Considerations when sharing to older portals for more information.

Share datasets with attribute rules

To share datasets with attribute rules, complete the following steps:

  1. In ArcGIS Pro, author a map containing datasets with attribute rules. Optionally, add the associated error datasets to the map if you plan to share a feature layer using the Validation capability.

    All fields must be set to visible.

  2. Share a web feature layer by doing one of the following:
    • Share the map and all of its layers as a web layer. On the Share tab, in the Share As group, click Web Layer Web layer.
    • Share selected layers from the map as a web layer. Select the layers in the Contents pane. Right-click and click Sharing > Share As Web Layer Web layer.
  3. In the Name text box on the General tab, provide a name for the web layer.
  4. Complete the Item Details fields for Summary and Tags.
  5. Under Data and Layer Type, confirm that Map Image is selected under Reference registered data. Click Feature to share the web feature layer as a dependent layer to the map image layer.

    For web feature layers to take advantage of attribute rules, they must reference registered data sources. This ensures that the data is not copied during the publishing process and is directly referenced by the service.

  6. Under Location, specify the storage location of the web layer in Portal Folder and Server and Folder.
  7. By default, the web layer is saved to My Content. To save the web layer to a folder in My Content, type the folder name or browse to an existing folder.
  8. Specify how the web layer will be shared.
    • Everyone—This option makes your content public. This means anyone can access and see it.
    • My Organization—This option allows your content to be shared with all authenticated users in the organization.
    • Groups—You can share your content with groups to which you belong and members of those groups.
  9. Optionally, enable the Validation capability on the feature service. This is not required when sharing datasets with attribute rules but is required if you want the feature layer to participate in validation workflows. Click the Configuration tab, and click Validation under Capabilities.

    Review the Validation capability section above for more information on the prerequisites and analyzers for using this capability.

  10. Optionally, click the Content tab to view the new web layer or layers and all associated components.
  11. Click Analyze to check for errors or issues. You must resolve all errors. If any issues are discovered, they appear on the Messages tab. Right-click each message to get more information, read the help for the error or warning, and access suggested fixes. Learn more about analyzing GIS resources.
  12. Once validated, click Publish to share your web layer.
  13. Once the web layer has published, click the Manage the web layer link to manage the web feature layer through your portal. The link will take you to the map image layer.
  14. Web feature layers can be accessed through your portal.