This is a very old thread, but I seem to be having the same problem.
I have a RBJ file setup that runs great on Desktop. It produces the correct output and error geometries in REVTABLEPOLY (I'm only checking polygons in this RBJ).
When I run the same RBJ using arcpy in Python, it completes successfully and produces the correct errors as seen in REVTABLEMAIN, but there are no error polygons in REVTABLEPOLY. I need those error polygons in addition to the details found in REVTABLEMAIN.
The associated bits from my Python code pertaining to this creates an empty and new file geodatabase. Then it enables Data Reviewer in this GDB. Then I create a new session in the Reviewer Workspace. I then run the RBJ. I am pretty sure I'm doing this correctly since I do get valid results.....just not the error polygons. Is there a parameter I'm overlooking? I've included the part of code in question below.
# Check Out Data Reviewer Extension
# Create GDB to Contain RBJ Errors
now = datetime.datetime.now()
gdbName = '%s%s%s_%s%s%s.gdb' % (now.strftime('%m'), now.strftime('%d'),
# Set Geoprocessing Workspace Environment
arcpy.env.workspace = batchOutDir+os.sep+gdbName
# Enable Data Reviewer inside GDB
# Start Reviewer Sesson
session = "Automated Checks"
arcpy.MakeFeatureLayer_management(polysToCheck + '\NGlayers\ESNs','polyLyr')
# Run Automated Checks RBJ File
res = arcpy.ExecuteReviewerBatchJob_Reviewer(arcpy.env.workspace,
"Session 1 : Automated Checks",
workDir + os.sep + rbjFile,
# Check In Data Reviewer License
I'm running ArcGIS Desktop 10.5.1.7333. Data Reviewer version 10.1-10.5 (as stated in Administrator). Python 2.7.13.
If anyone has some input on what I can do to produce these polygons, please let me know. Thanks!
Hi. When you enable the Reviewer workspace, you need to pass in the spatial reference that matches the data you are validating. If you do not pass in the spatial reference, it will default to GCS_WGS_1984. If the spatial reference of your features you are validating does not match the spatial reference of the Reviewer workspace, it cannot capture the error geometries.
Hope this helps.