<?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 Attribute Rules using NextSequenceValue in Geodatabase Questions</title>
    <link>https://community.esri.com/t5/geodatabase-questions/attribute-rules-using-nextsequencevalue/m-p/1029403#M6984</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I have a query regarding the Arcade function&amp;nbsp;NextSequenceValue to assign as assetid attribute. Very similar to &lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/data/geodatabases/overview/attribute-rule-script-expression.htm#anchor1" target="_self"&gt;this link&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;I have a multi-domain utility client that has Water, Sewer and Electric domains. Each domain classes reside in a separate SQL Server geodatabase. The client wants to use single sequence for all assets as these assets are linked to Asset Mgmt system.&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems that&amp;nbsp;&amp;nbsp;NextSequenceValue function assumes the sequence must reside in a same geodatabase. Is there a way to use a sequence in one centralised database and make it available for NextSequenceValue? I tried creating SQL Alias for the sequence in each Water, Sewer and Electric database but that does not work. It is not supported by SQL Server to query next sequence number using SQL ALias.&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any other solution? Client cannot combine&amp;nbsp;Water, Sewer and Electric domains in a single geodatabase.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vish&lt;/P&gt;</description>
    <pubDate>Tue, 23 Feb 2021 02:00:49 GMT</pubDate>
    <dc:creator>VishApte</dc:creator>
    <dc:date>2021-02-23T02:00:49Z</dc:date>
    <item>
      <title>Attribute Rules using NextSequenceValue</title>
      <link>https://community.esri.com/t5/geodatabase-questions/attribute-rules-using-nextsequencevalue/m-p/1029403#M6984</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I have a query regarding the Arcade function&amp;nbsp;NextSequenceValue to assign as assetid attribute. Very similar to &lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/data/geodatabases/overview/attribute-rule-script-expression.htm#anchor1" target="_self"&gt;this link&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;I have a multi-domain utility client that has Water, Sewer and Electric domains. Each domain classes reside in a separate SQL Server geodatabase. The client wants to use single sequence for all assets as these assets are linked to Asset Mgmt system.&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems that&amp;nbsp;&amp;nbsp;NextSequenceValue function assumes the sequence must reside in a same geodatabase. Is there a way to use a sequence in one centralised database and make it available for NextSequenceValue? I tried creating SQL Alias for the sequence in each Water, Sewer and Electric database but that does not work. It is not supported by SQL Server to query next sequence number using SQL ALias.&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any other solution? Client cannot combine&amp;nbsp;Water, Sewer and Electric domains in a single geodatabase.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vish&lt;/P&gt;</description>
      <pubDate>Tue, 23 Feb 2021 02:00:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/attribute-rules-using-nextsequencevalue/m-p/1029403#M6984</guid>
      <dc:creator>VishApte</dc:creator>
      <dc:date>2021-02-23T02:00:49Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute Rules using NextSequenceValue</title>
      <link>https://community.esri.com/t5/geodatabase-questions/attribute-rules-using-nextsequencevalue/m-p/1029562#M6986</link>
      <description>&lt;P&gt;You can specify the full name of the database sequence. If all databases are in the same datastore, this might work (can't test, since I have only one database):&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;NextSequenceValue("SequenceDatabaseName.SequenceOwner.SequenceName")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Alternatively, you could define a sequence called "AssetID" in all databases and append a domain name, so that all assets have a unique id:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;// water database:
"Water-" + NextSequenceValue("AssetID")
// sewer database:
"Sewer-" + NextSequenceValue("AssetID")

// this gives you these asset ids:
// Water-1, Water-2, ..., Water-6379
// Sewer-1, Sewer-2, ..., Sewer-6379&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 23 Feb 2021 14:53:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/attribute-rules-using-nextsequencevalue/m-p/1029562#M6986</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2021-02-23T14:53:19Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute Rules using NextSequenceValue</title>
      <link>https://community.esri.com/t5/geodatabase-questions/attribute-rules-using-nextsequencevalue/m-p/1030471#M6994</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/131451"&gt;@VishApte&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;If the Utility Network is something the client is considering, all three domains could participate in the same Utility Network. There can be additional benefits when combining the Water and Electric domains in the same UN. When for instance a failure in the electric domain affects a water pump station and results in an outage of water.&lt;/P&gt;&lt;P&gt;As far as I can see the sequence should reside in the same geodatebase for the attribute rule to have access to it.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2021 15:17:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/attribute-rules-using-nextsequencevalue/m-p/1030471#M6994</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2021-02-25T15:17:01Z</dc:date>
    </item>
  </channel>
</rss>

