Create Reviewer Session (Data Reviewer)
Summary
Creates a new Reviewer session in the specified workspace.
Usage
-
If the specified workspace is not a Reviewer workspace, the tool returns error 090034: Selected workspace is not a Reviewer Workspace. The workspace does not have all required reviewer tables. Use the ReviewerConsole or theReviewer Session Manager to create a Reviewer workspace.
If the specified workspace contains an older version of the Reviewer schema, the tool returns error 090036: This is an older version of Reviewer workspace. You can use the Reviewer Session Manager to upgrade the workspace.
-
When creating a session in an ArcSDE geodatabase, the new session's version is the version associated with the connection properties of the Reviewer Workspace database connection.
The Session Template parameter allows you to copy settings from an existing Reviewer session into the new session created by this tool. Settings include the following:
- Continue batch processing if check fails
- Continue batch processing if default checks return error
- Do not store geometry for faster processing
- Reviewer Table Writer Options (Check for duplicates)
- Reviewer Table Properties
- Default checks
- How to Write Results
Syntax
Parameter | Explanation | Data Type |
reviewer_workspace |
The workspace in which a new Reviewer session is going to be created. | Workspace |
session_name |
The name of the session that is going to be created in the Reviewer workspace. | String |
session_template (Optional) |
An existing Reviewer session whose properties will be copied to the new session. | String |
Code Sample
This stand-alone Python script creates a new session in the Reviewer workspace stored in an ArcSDE geodatabase. The session is called QC Pass 1.
# Name: CreateReviewerSession.py
# Description: Creates a reviewer session in a geodatabase
# Author: Esri
# Date: December 2011
# Import arcpy module
import arcpy
# check out a data reviewer extension license
arcpy.CheckOutExtension("datareviewer")
# path to a workspace
reviewer_gdb = "C:/SampleData/Reviewer.sde"
# Execute the Create Reviewer Session tool
arcpy.CreateReviewerSession_Reviewer(reviewer_gdb, "Session 1 : QC Pass 1")
# check in the data reviewer extension
arcpy.CheckInExtension("datareviewer")