Available with Data Reviewer license.
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 Create Reviewer Session geoprocessing tool or the Reviewer 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
CreateReviewerSession_Reviewer (reviewer_workspace, session_name, {session_template})
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
CreateReviewerSession example (stand-alone Python script)
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")
Environments
This tool does not use any geoprocessing environments
Licensing information
- ArcGIS Desktop Basic: Requires Data Reviewer
- ArcGIS Desktop Standard: Requires Data Reviewer
- ArcGIS Desktop Advanced: Requires Data Reviewer