<?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 How to Generate Warning Message in Attribute Rule? in Attribute Rules Questions</title>
    <link>https://community.esri.com/t5/attribute-rules-questions/how-to-generate-warning-message-in-attribute-rule/m-p/1550467#M1602</link>
    <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;I have an attribute rule which will create an association when a new device is created within 25ft of a pole feature. If there is no pole within 25ft it will simply create the device and no association will happen. I am looking for a way to return a warning message for the user if that if there is no pole within the above range it will show a message. Now I have tried using return keyword like return "No pole is present within 25ft" , I have also tried having the message stored in a variable and call that variable in the return function. That didnt help. As in no msg is displaying.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I see we have an Errormessage keyword is the arcade dictionary, but nothing for warning or so.&lt;/P&gt;&lt;P&gt;I am using this&lt;A href="https://github.com/Esri/arcade-expressions/blob/master/attribute-rules/attribute_rule_calculation/CreateAttachmentAssociationByProximity.md" target="_self"&gt; code&lt;/A&gt; for the same, Can someone suggest how to achieve the warning portion?&lt;/P&gt;</description>
    <pubDate>Mon, 21 Oct 2024 14:12:32 GMT</pubDate>
    <dc:creator>Reeti_05</dc:creator>
    <dc:date>2024-10-21T14:12:32Z</dc:date>
    <item>
      <title>How to Generate Warning Message in Attribute Rule?</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/how-to-generate-warning-message-in-attribute-rule/m-p/1550467#M1602</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;I have an attribute rule which will create an association when a new device is created within 25ft of a pole feature. If there is no pole within 25ft it will simply create the device and no association will happen. I am looking for a way to return a warning message for the user if that if there is no pole within the above range it will show a message. Now I have tried using return keyword like return "No pole is present within 25ft" , I have also tried having the message stored in a variable and call that variable in the return function. That didnt help. As in no msg is displaying.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I see we have an Errormessage keyword is the arcade dictionary, but nothing for warning or so.&lt;/P&gt;&lt;P&gt;I am using this&lt;A href="https://github.com/Esri/arcade-expressions/blob/master/attribute-rules/attribute_rule_calculation/CreateAttachmentAssociationByProximity.md" target="_self"&gt; code&lt;/A&gt; for the same, Can someone suggest how to achieve the warning portion?&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2024 14:12:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/how-to-generate-warning-message-in-attribute-rule/m-p/1550467#M1602</guid>
      <dc:creator>Reeti_05</dc:creator>
      <dc:date>2024-10-21T14:12:32Z</dc:date>
    </item>
  </channel>
</rss>

