Write To Reviewer Table (Data Reviewer)

License Level:BasicStandardAdvanced

Summary

Writes a feature class, feature layer, or table to the Reviewer table.

Usage

Syntax

WriteToReviewerTable_Reviewer (in_reviewer_workspace, in_session, in_features, in_field, in_origin_table_name, in_review_status, {in_subtype}, {in_notes}, {in_severity})
ParameterExplanationData Type
in_reviewer_workspace

The path to the Reviewer workspace where the features or table records will be written.

Workspace
in_session

The Reviewer session ID in which the features or table records will be written. Use the full session ID format—Session 1 : Session 1.

String
in_features

The features or table records to write to the Reviewer table.

Feature Layer;Table View
in_field

The field that contains identifiers for the features. The value from this field populates the OBJECTID field in the Reviewer table. The field you choose must have a data type of Long.

Field
in_origin_table_name

The string or field value that is going to be used to populate the ORIGINTABLE field in the Reviewer table for each record that is written. This is typically the name of the feature class or table.

  • String—The name of the feature layer is defined as a text string.
  • Field—The value for the feature layer name is derived from a field on the feature layer or table.
String;Field
in_review_status

A status string to associate with the group of records written to the reviewer table. The default value is Write GP Results to Reviewer Table.

String
in_subtype
(Optional)

The feature class subtype to which the features belong. This can be derived from a specified value or a field on the feature class. The value from this parameter populates the SUBTYPE field in the Reviewer table.

  • String—You can type the value in the String text box.
  • Field—You can choose the subtype value from a field on the feature layer.
String;Field
in_notes
(Optional)

Text that populates the NOTES field in the Reviewer table. The notes are used to provide a more specific description of the feature or table record.

String
in_severity
(Optional)

A numeric value that represents the significance of the features or table records that have been written to the Reviewer table. The values range from 5 (low importance) to 1 (high priority). This value populates the SEVERITY field in the Reviewer table.

String

Code Sample

WriteToReviewerTable example (stand-alone Python script)

In this example, the LandmarkAreas features are imported into Session 1 in the Reviewer.sde workspace.

# Name: WriteToReviewerTable.py
# Description: Imports features into the Reviewer table
# Author: ESRI
# Date: May 2011

# Import arcpy module
import arcpy

# Check out a Data Reviewer extension license
arcpy.CheckOutExtension("datareviewer")

# Path to feature class and Reviewer workspace
coastl = r'c:\data\SoCal_Sample.sde\SoCal\coastl'
reviewer_work = r'c:\data\reviewer.sde'

# Exec Write to Reviewer Table 
arcpy.WriteToReviewerTable_Reviewer(reviewer_work, "Session 1 : FeatureImport", coastl, "OBJECTID", "coastl")

# Check in the Data Reviewer extension
arcpy.CheckInExtension("datareviewer")

Environments

This tool does not use any geoprocessing environments

Related Topics

Licensing Information

ArcGIS for Desktop Basic: Requires Data Reviewer
ArcGIS for Desktop Standard: Requires Data Reviewer
ArcGIS for Desktop Advanced: Requires Data Reviewer
10/29/2012