Datasets containing attribute rules can be shared as a web feature layer. The rule type and properties determine the process of sharing the web layer.
Immediate calculation and constraint rules are evaluated at the time of the edit operation. For feature service edits to evaluate these rule types, the dataset must be shared as a web feature layer using the Reference registered data option.
Batch calculation and validation rules are evaluated at a user-specified time. To evaluate batch calculation and validation rules through a feature service, the dataset and associated error datasets must be shared as a web feature layer using the Reference registered data option and 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 via 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.
- 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 used to evaluate batch calculation and validation rules via services 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:
- 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.
- 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 .
- 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 .
- In the Name text box on the General tab, provide a name for the web layer.
- Complete the Item Details fields for Summary and Tags.
- 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.
- Under Location, specify the storage location of the web layer in Portal Folder and Server and Folder.
- 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
- 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 you belong to and members of those groups.
- 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.
- Optionally click the Content tab to view the new web layer or layers and all associated components.
- Click Analyze to check for any 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
- Once validated, click Publish to share your web layer.
- Once the web layer has successfully 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.