<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Evaluate validation rules on a version programmatically in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/evaluate-validation-rules-on-a-version/m-p/1659673#M74799</link>
    <description>&lt;P&gt;Hi all. I've been trying to create a script to fire the validation rules on a given FeatureServer specifically on a non-default version.&lt;BR /&gt;&lt;BR /&gt;Right now my process looks something like this.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;gis = my_gis_object
connection= "https://myserver.com/webadaptor/path_to_service/VersionManagementServer"
# get version manager
version_manager = VersionManager(connection,gis)
# define version parameters
version_name = "daily_validation_version"
version_owner = "administrator_account"
# create version
version = version_manager.create(name=version_name, permission="PRIVATE")
# get Validation Server for the version
validation = version.validation
# evaluate validation rules
eval = validation.evaluate(evaluation=['validationRules'], changes_in_version=True, return_edits=True)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;When I try to run this script I get &lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/tool-errors-and-warnings/160001-170000/tool-errors-and-warnings-160901-160925-160902.htm" target="_self"&gt;Error:160902&lt;/A&gt;&amp;nbsp;I'm at a loss as to where I go from here.&lt;/P&gt;&lt;P&gt;In the debugger I see that the version, and the validation server are being properly created and accessed, so I know that the issue arises when I try to call the validation.evaluate method, which leads me to believe it's an argument issue&lt;/P&gt;&lt;P&gt;I know that &lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/evaluate-rules.htm" target="_self"&gt;arcpy.management.EvaluateRules&lt;/A&gt; exists, but that specifies that it runs against the default version.&lt;/P&gt;</description>
    <pubDate>Wed, 22 Oct 2025 16:10:48 GMT</pubDate>
    <dc:creator>SeanPerkins</dc:creator>
    <dc:date>2025-10-22T16:10:48Z</dc:date>
    <item>
      <title>Evaluate validation rules on a version programmatically</title>
      <link>https://community.esri.com/t5/python-questions/evaluate-validation-rules-on-a-version/m-p/1659673#M74799</link>
      <description>&lt;P&gt;Hi all. I've been trying to create a script to fire the validation rules on a given FeatureServer specifically on a non-default version.&lt;BR /&gt;&lt;BR /&gt;Right now my process looks something like this.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;gis = my_gis_object
connection= "https://myserver.com/webadaptor/path_to_service/VersionManagementServer"
# get version manager
version_manager = VersionManager(connection,gis)
# define version parameters
version_name = "daily_validation_version"
version_owner = "administrator_account"
# create version
version = version_manager.create(name=version_name, permission="PRIVATE")
# get Validation Server for the version
validation = version.validation
# evaluate validation rules
eval = validation.evaluate(evaluation=['validationRules'], changes_in_version=True, return_edits=True)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;When I try to run this script I get &lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/tool-errors-and-warnings/160001-170000/tool-errors-and-warnings-160901-160925-160902.htm" target="_self"&gt;Error:160902&lt;/A&gt;&amp;nbsp;I'm at a loss as to where I go from here.&lt;/P&gt;&lt;P&gt;In the debugger I see that the version, and the validation server are being properly created and accessed, so I know that the issue arises when I try to call the validation.evaluate method, which leads me to believe it's an argument issue&lt;/P&gt;&lt;P&gt;I know that &lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/evaluate-rules.htm" target="_self"&gt;arcpy.management.EvaluateRules&lt;/A&gt; exists, but that specifies that it runs against the default version.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Oct 2025 16:10:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/evaluate-validation-rules-on-a-version/m-p/1659673#M74799</guid>
      <dc:creator>SeanPerkins</dc:creator>
      <dc:date>2025-10-22T16:10:48Z</dc:date>
    </item>
  </channel>
</rss>

