<?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 Re: Create Street Name Validation in Attribute Rules Questions</title>
    <link>https://community.esri.com/t5/attribute-rules-questions/create-street-name-validation/m-p/1700690#M1943</link>
    <description>&lt;P&gt;The table name is slightly different in my picture. Another variation I tried to see if it would connect to another table.&lt;/P&gt;</description>
    <pubDate>Thu, 07 May 2026 17:54:16 GMT</pubDate>
    <dc:creator>SarahWright</dc:creator>
    <dc:date>2026-05-07T17:54:16Z</dc:date>
    <item>
      <title>Create Street Name Validation</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/create-street-name-validation/m-p/1700622#M1936</link>
      <description>&lt;P&gt;I am trying to create an attribute rule that validates if a street name is in a master street table when being created. Here is the code I have so far, I am not sure where my syntax is wrong.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The expression needs to be case in-sensitive, the source data in the master table is mixed casing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;Thanks in advance!&lt;/P&gt;&lt;P&gt;// 1. Access the reference table by name&lt;BR /&gt;// This must match the name of the layer in your database/service&lt;BR /&gt;var masterStreetName = Upper(FeatureSetByName($datastore, 'vwAddresserData_v2', ["FULLADDRESS"], false));&lt;/P&gt;&lt;P&gt;// 2. Get the address being entered/edited&lt;BR /&gt;var addresserStreetName = Upper($feature.FullStreetName);&lt;/P&gt;&lt;P&gt;// 3. Handle empty values (optional: allow or block nulls)&lt;BR /&gt;if (IsEmpty(addresserStreetName)) { return true; }&lt;/P&gt;&lt;P&gt;// 4. Filter the other table for matching addresses&lt;BR /&gt;// Use Upper() to ensure the comparison isn't case-sensitive&lt;BR /&gt;var filterSQL = "FULLADDRESS = '" + addresserStreetName + "'";&lt;BR /&gt;var matches = Filter(masterStreetName, '@filterSQL');&lt;/P&gt;&lt;P&gt;// 5. Logic: Return true if a match is found, false (with message) if not&lt;BR /&gt;if (Count(matches) &amp;gt; 0) {&lt;BR /&gt;return true;&lt;BR /&gt;} else {&lt;BR /&gt;return {&lt;BR /&gt;"errorMessage": "The address " + addresserStreetName + " does not exist in the master Street table."&lt;BR /&gt;};&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Thu, 07 May 2026 14:32:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/create-street-name-validation/m-p/1700622#M1936</guid>
      <dc:creator>SarahWright</dc:creator>
      <dc:date>2026-05-07T14:32:26Z</dc:date>
    </item>
    <item>
      <title>Re: Create Street Name Validation</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/create-street-name-validation/m-p/1700633#M1937</link>
      <description>&lt;P&gt;Try this.&amp;nbsp; Also, when posting code, please use a code samples(Javascript works good for arcade).&amp;nbsp; Makes it much easier to read&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;if (IsEmpty($feature.FullStreetName)) 
{
	return true; 
}

var addresserStreetName = Upper($feature.FullStreetName);
var masterStreetName = FeatureSetByName($datastore, 'vwAddresserData_v2', ["FULLADDRESS"], false);
var matches = Filter(masterStreetName,  "UPPER(FULLADDRESS) = @addresserStreetName");

if (Count(matches) &amp;gt; 0) 
{
	return true;
} 
return {"errorMessage": "The address " + addresserStreetName + " does not exist in the master Street table."};&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 May 2026 15:15:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/create-street-name-validation/m-p/1700633#M1937</guid>
      <dc:creator>MikeMillerGIS</dc:creator>
      <dc:date>2026-05-07T15:15:54Z</dc:date>
    </item>
    <item>
      <title>Re: Create Street Name Validation</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/create-street-name-validation/m-p/1700665#M1938</link>
      <description>&lt;P&gt;Thanks for the suggestion, I am now getting the below error.&lt;/P&gt;&lt;P&gt;Edit operation failed.&lt;BR /&gt;Failed to evaluate Arcade expression. [&lt;BR /&gt;Rule name: Invalid Street Name,&lt;BR /&gt;Triggering event: Update,&lt;BR /&gt;Class name: L0addresserData,&lt;BR /&gt;GlobalID: {1986C779-DA03-40F1-9FF9-60E436BF5926},&lt;BR /&gt;Error number: 1001,&lt;BR /&gt;Error message: Street Name is not in the master Street Name table.,&lt;BR /&gt;Arcade error: Table not found {F373DE5C-427D-466E-92A5-5988CFD4D5CA},&lt;BR /&gt;Script line: 7]&lt;/P&gt;</description>
      <pubDate>Thu, 07 May 2026 16:45:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/create-street-name-validation/m-p/1700665#M1938</guid>
      <dc:creator>SarahWright</dc:creator>
      <dc:date>2026-05-07T16:45:03Z</dc:date>
    </item>
    <item>
      <title>Re: Create Street Name Validation</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/create-street-name-validation/m-p/1700667#M1939</link>
      <description>&lt;P&gt;I do not know, I do not have access to the data so very hard to tell.&amp;nbsp; Can you verify the name of the master street name table?&amp;nbsp; Does you street have a street name of "&lt;SPAN&gt;Street Name"&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 May 2026 16:52:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/create-street-name-validation/m-p/1700667#M1939</guid>
      <dc:creator>MikeMillerGIS</dc:creator>
      <dc:date>2026-05-07T16:52:41Z</dc:date>
    </item>
    <item>
      <title>Re: Create Street Name Validation</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/create-street-name-validation/m-p/1700670#M1940</link>
      <description>&lt;P&gt;This part of the error is returned from the error statement I created for the error number.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Error number: 1001,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Error message: Street Name is not in the master Street Name table&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It should not be looking for street name. That is not in the code.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;It is very hard to tell. Do you know of a better way to troubleshoot the arcade expression? I have tried so many code variations at this point.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 May 2026 17:07:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/create-street-name-validation/m-p/1700670#M1940</guid>
      <dc:creator>SarahWright</dc:creator>
      <dc:date>2026-05-07T17:07:14Z</dc:date>
    </item>
    <item>
      <title>Re: Create Street Name Validation</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/create-street-name-validation/m-p/1700679#M1941</link>
      <description>&lt;P&gt;Do you happen to have any other attribute rules?&amp;nbsp; The error message does not match the code above.&lt;/P&gt;</description>
      <pubDate>Thu, 07 May 2026 17:23:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/create-street-name-validation/m-p/1700679#M1941</guid>
      <dc:creator>MikeMillerGIS</dc:creator>
      <dc:date>2026-05-07T17:23:13Z</dc:date>
    </item>
    <item>
      <title>Re: Create Street Name Validation</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/create-street-name-validation/m-p/1700688#M1942</link>
      <description>&lt;P&gt;Here is the configuration to my rule. There are no other rules with this error message.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SarahWright_0-1778176370985.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/152146iABB8B3BD1BC407C4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SarahWright_0-1778176370985.png" alt="SarahWright_0-1778176370985.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 May 2026 17:53:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/create-street-name-validation/m-p/1700688#M1942</guid>
      <dc:creator>SarahWright</dc:creator>
      <dc:date>2026-05-07T17:53:05Z</dc:date>
    </item>
    <item>
      <title>Re: Create Street Name Validation</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/create-street-name-validation/m-p/1700690#M1943</link>
      <description>&lt;P&gt;The table name is slightly different in my picture. Another variation I tried to see if it would connect to another table.&lt;/P&gt;</description>
      <pubDate>Thu, 07 May 2026 17:54:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/create-street-name-validation/m-p/1700690#M1943</guid>
      <dc:creator>SarahWright</dc:creator>
      <dc:date>2026-05-07T17:54:16Z</dc:date>
    </item>
    <item>
      <title>Re: Create Street Name Validation</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/create-street-name-validation/m-p/1700706#M1944</link>
      <description>&lt;P&gt;Ok, That helps.&amp;nbsp; The error is that the FeatureSetByName cannot find table.&amp;nbsp; Can you move it all to a file geodatabase for testing to ensure the rule works?&amp;nbsp; That would help eliminate variables with enterprise databases and permissions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 May 2026 18:02:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/create-street-name-validation/m-p/1700706#M1944</guid>
      <dc:creator>MikeMillerGIS</dc:creator>
      <dc:date>2026-05-07T18:02:36Z</dc:date>
    </item>
    <item>
      <title>Re: Create Street Name Validation</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/create-street-name-validation/m-p/1700727#M1945</link>
      <description>&lt;P&gt;Hi, thanks for your help on this. Moving the data into GDB and editing returned the expected results. My goal is to be able to use this in a editing web application. I am not sure what I was doing wrong. Any insight on getting this into our web application is greatly appreciated.&lt;/P&gt;&lt;P&gt;I am working on this in our dev ArcGIS Enterprise environment 11.5. Using enterprise gdb version 11.5 and ArcGIS pro 3.5.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 07 May 2026 19:04:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/create-street-name-validation/m-p/1700727#M1945</guid>
      <dc:creator>SarahWright</dc:creator>
      <dc:date>2026-05-07T19:04:12Z</dc:date>
    </item>
    <item>
      <title>Re: Create Street Name Validation</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/create-street-name-validation/m-p/1700729#M1946</link>
      <description>&lt;P&gt;Tool that worked&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SarahWright_0-1778180664088.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/152166i7844FE15C527A1D8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SarahWright_0-1778180664088.png" alt="SarahWright_0-1778180664088.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 May 2026 19:04:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/create-street-name-validation/m-p/1700729#M1946</guid>
      <dc:creator>SarahWright</dc:creator>
      <dc:date>2026-05-07T19:04:31Z</dc:date>
    </item>
    <item>
      <title>Re: Create Street Name Validation</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/create-street-name-validation/m-p/1700732#M1947</link>
      <description>&lt;P&gt;How was the master street name table created?&amp;nbsp; Is it registered with the GDB?&amp;nbsp; Who is the owner of the table?&lt;/P&gt;</description>
      <pubDate>Thu, 07 May 2026 19:09:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/create-street-name-validation/m-p/1700732#M1947</guid>
      <dc:creator>MikeMillerGIS</dc:creator>
      <dc:date>2026-05-07T19:09:07Z</dc:date>
    </item>
    <item>
      <title>Re: Create Street Name Validation</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/create-street-name-validation/m-p/1700734#M1948</link>
      <description>&lt;P&gt;The master street table is a view. It is registered with the GDB and same owner as the addressData layer. I tried loading it as a standalone table in the GDB and sharing with the other layer in the service but that also did not work.&lt;/P&gt;</description>
      <pubDate>Thu, 07 May 2026 19:14:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/create-street-name-validation/m-p/1700734#M1948</guid>
      <dc:creator>SarahWright</dc:creator>
      <dc:date>2026-05-07T19:14:10Z</dc:date>
    </item>
    <item>
      <title>Re: Create Street Name Validation</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/create-street-name-validation/m-p/1700735#M1949</link>
      <description>&lt;P&gt;The table does not have to be in the service.&amp;nbsp; I wonder if it has to deal with you do not have Exclude from Client Application checked.&amp;nbsp; Try checking that so the rule is only run the database.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 May 2026 19:18:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/create-street-name-validation/m-p/1700735#M1949</guid>
      <dc:creator>MikeMillerGIS</dc:creator>
      <dc:date>2026-05-07T19:18:43Z</dc:date>
    </item>
    <item>
      <title>Re: Create Street Name Validation</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/create-street-name-validation/m-p/1700743#M1950</link>
      <description>&lt;P&gt;That worked! Thank you! I will try adding to a web application and see how that goes.&lt;/P&gt;&lt;P&gt;Thank you so much for you prompt replies I really appreciate it.&lt;/P&gt;</description>
      <pubDate>Thu, 07 May 2026 19:44:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/create-street-name-validation/m-p/1700743#M1950</guid>
      <dc:creator>SarahWright</dc:creator>
      <dc:date>2026-05-07T19:44:26Z</dc:date>
    </item>
  </channel>
</rss>

