<?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>idea Allow the ability to overwrite “, Script error:”  when using custom error message from a validation attribute rule expression in Attribute Rules Ideas</title>
    <link>https://community.esri.com/t5/attribute-rules-ideas/allow-the-ability-to-overwrite-script-error-when/idi-p/1688985</link>
    <description>&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;Allow the ability to overwrite “, Script error:”&amp;nbsp; when&amp;nbsp;using custom error message from a validation&amp;nbsp;attribute&amp;nbsp;rule&amp;nbsp;expression&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Our organization relies heavily on attribute rules for our QA/QC process. We have dozens of validation attribute rules that check that important fields are not only populated, but that they also contain critical correct information.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;In order to&amp;nbsp;improve performance and to streamline the review of the errors, we are combining all the logic for each layer into a single validation attribute rule. This means that we’ve set up a custom error message in the rule’s expression to combine all the errors it identifies and return that information&amp;nbsp;in&amp;nbsp;a concatenated list.&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The problem we are running into is that when returning a custom error message in&amp;nbsp;a validation attribute rule.&amp;nbsp;ArcGIS&amp;nbsp;Pro automatically inserts ", Script&amp;nbsp;error:" between the error message defined in the&amp;nbsp;attribute&amp;nbsp;rule pane and the error message triggered in the script.&amp;nbsp;This adds a lot of text to the beginning of the error message which isn’t important to us and makes it difficult to view the actual error message with the information (especially when viewed from the Error Inspector since it’s all contained in a single field that always needs to be expanded).&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DavidHendry_0-1772810669269.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/149426iC239713183685B1D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DavidHendry_0-1772810669269.png" alt="DavidHendry_0-1772810669269.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DavidHendry_1-1772810669270.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/149425i60C51E6FFEA095B6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DavidHendry_1-1772810669270.png" alt="DavidHendry_1-1772810669270.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DavidHendry_2-1772810669271.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/149427i61B3F477FE40273D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DavidHendry_2-1772810669271.png" alt="DavidHendry_2-1772810669271.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;What we would like to see is either the error message from the Attribute Rule pane and the error message from the script get separated out into separate fields, or the ability to overwrite the both the error message from the Attribute Rule pane and the additional “, Script error:”&amp;nbsp;in order to remove them and just have the error message from the script remain.&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Ideally, when using a custom error message from the script, it would&amp;nbsp;look something&amp;nbsp;like this:&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DavidHendry_3-1772810669272.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/149428iE72C4FE747F23F32/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DavidHendry_3-1772810669272.png" alt="DavidHendry_3-1772810669272.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;We understand that this behaviour is consistent with how the script error messages show for the other types of attribute rules, but since the validation attribute rules are displayed differently in ArcGIS Pro, having a way to overwrite it and make it more clear would improve our mappers ability to quickly identify what errors need to be address so they can complete their QA/QC more efficiently.&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 06 Mar 2026 15:37:59 GMT</pubDate>
    <dc:creator>DavidHendry</dc:creator>
    <dc:date>2026-03-06T15:37:59Z</dc:date>
    <item>
      <title>Allow the ability to overwrite “, Script error:”  when using custom error message from a validation attribute rule expression</title>
      <link>https://community.esri.com/t5/attribute-rules-ideas/allow-the-ability-to-overwrite-script-error-when/idi-p/1688985</link>
      <description>&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;Allow the ability to overwrite “, Script error:”&amp;nbsp; when&amp;nbsp;using custom error message from a validation&amp;nbsp;attribute&amp;nbsp;rule&amp;nbsp;expression&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Our organization relies heavily on attribute rules for our QA/QC process. We have dozens of validation attribute rules that check that important fields are not only populated, but that they also contain critical correct information.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;In order to&amp;nbsp;improve performance and to streamline the review of the errors, we are combining all the logic for each layer into a single validation attribute rule. This means that we’ve set up a custom error message in the rule’s expression to combine all the errors it identifies and return that information&amp;nbsp;in&amp;nbsp;a concatenated list.&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The problem we are running into is that when returning a custom error message in&amp;nbsp;a validation attribute rule.&amp;nbsp;ArcGIS&amp;nbsp;Pro automatically inserts ", Script&amp;nbsp;error:" between the error message defined in the&amp;nbsp;attribute&amp;nbsp;rule pane and the error message triggered in the script.&amp;nbsp;This adds a lot of text to the beginning of the error message which isn’t important to us and makes it difficult to view the actual error message with the information (especially when viewed from the Error Inspector since it’s all contained in a single field that always needs to be expanded).&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DavidHendry_0-1772810669269.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/149426iC239713183685B1D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DavidHendry_0-1772810669269.png" alt="DavidHendry_0-1772810669269.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DavidHendry_1-1772810669270.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/149425i60C51E6FFEA095B6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DavidHendry_1-1772810669270.png" alt="DavidHendry_1-1772810669270.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DavidHendry_2-1772810669271.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/149427i61B3F477FE40273D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DavidHendry_2-1772810669271.png" alt="DavidHendry_2-1772810669271.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;What we would like to see is either the error message from the Attribute Rule pane and the error message from the script get separated out into separate fields, or the ability to overwrite the both the error message from the Attribute Rule pane and the additional “, Script error:”&amp;nbsp;in order to remove them and just have the error message from the script remain.&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Ideally, when using a custom error message from the script, it would&amp;nbsp;look something&amp;nbsp;like this:&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DavidHendry_3-1772810669272.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/149428iE72C4FE747F23F32/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DavidHendry_3-1772810669272.png" alt="DavidHendry_3-1772810669272.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;We understand that this behaviour is consistent with how the script error messages show for the other types of attribute rules, but since the validation attribute rules are displayed differently in ArcGIS Pro, having a way to overwrite it and make it more clear would improve our mappers ability to quickly identify what errors need to be address so they can complete their QA/QC more efficiently.&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Mar 2026 15:37:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-ideas/allow-the-ability-to-overwrite-script-error-when/idi-p/1688985</guid>
      <dc:creator>DavidHendry</dc:creator>
      <dc:date>2026-03-06T15:37:59Z</dc:date>
    </item>
  </channel>
</rss>

