<?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 ArcGIS Pro SDK &amp;amp; Change Moment in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/arcgis-pro-sdk-amp-change-moment/m-p/1315329#M10143</link>
    <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I am attempting to add functionality to a custom ArcGIS Pro 3.1 add-in to set a specific date and time and apply the time as a historical moment. With the feature service data source that I am using, I am able the do this manually by selecting the data source, selecting Change Moment, entering the specific date &amp;amp; time, and then selecting the apply button.&lt;/P&gt;&lt;P&gt;I would like to create behavior within the add-in to do the same thing using the ArcGIS Pro SDK. Does the SDK support changing the map version to a specific date and time?&lt;/P&gt;&lt;P&gt;Also, the Historical Markers option on the History pane is disabled. I am assuming it is disable because it is not supported while using a feature service, but I cannot find documentation if this is correct or not. Can someone point me to documentation about the History pane the Historical Moments requirements?&lt;/P&gt;&lt;P&gt;I would appreciate any help, Jon&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JonathanBurmeister_0-1691099637480.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/77266iE64D65F7CC03DD8C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JonathanBurmeister_0-1691099637480.png" alt="JonathanBurmeister_0-1691099637480.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 03 Aug 2023 21:54:55 GMT</pubDate>
    <dc:creator>JonathanBurmeister</dc:creator>
    <dc:date>2023-08-03T21:54:55Z</dc:date>
    <item>
      <title>ArcGIS Pro SDK &amp; Change Moment</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/arcgis-pro-sdk-amp-change-moment/m-p/1315329#M10143</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I am attempting to add functionality to a custom ArcGIS Pro 3.1 add-in to set a specific date and time and apply the time as a historical moment. With the feature service data source that I am using, I am able the do this manually by selecting the data source, selecting Change Moment, entering the specific date &amp;amp; time, and then selecting the apply button.&lt;/P&gt;&lt;P&gt;I would like to create behavior within the add-in to do the same thing using the ArcGIS Pro SDK. Does the SDK support changing the map version to a specific date and time?&lt;/P&gt;&lt;P&gt;Also, the Historical Markers option on the History pane is disabled. I am assuming it is disable because it is not supported while using a feature service, but I cannot find documentation if this is correct or not. Can someone point me to documentation about the History pane the Historical Moments requirements?&lt;/P&gt;&lt;P&gt;I would appreciate any help, Jon&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JonathanBurmeister_0-1691099637480.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/77266iE64D65F7CC03DD8C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JonathanBurmeister_0-1691099637480.png" alt="JonathanBurmeister_0-1691099637480.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2023 21:54:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/arcgis-pro-sdk-amp-change-moment/m-p/1315329#M10143</guid>
      <dc:creator>JonathanBurmeister</dc:creator>
      <dc:date>2023-08-03T21:54:55Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro SDK &amp; Change Moment</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/arcgis-pro-sdk-amp-change-moment/m-p/1315362#M10145</link>
      <description>&lt;P data-unlink="true"&gt;Yes. Consult &lt;A href="https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic76696.html" target="_self"&gt;Map.ChangeVersion&lt;/A&gt;&amp;nbsp;and &lt;A href="https://github.com/Esri/arcgis-pro-sdk/wiki/ProConcepts-Geodatabase#archiving-and-historical-versions" target="_self"&gt;historical version&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2023 23:39:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/arcgis-pro-sdk-amp-change-moment/m-p/1315362#M10145</guid>
      <dc:creator>Aashis</dc:creator>
      <dc:date>2023-08-03T23:39:10Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro SDK &amp; Change Moment</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/arcgis-pro-sdk-amp-change-moment/m-p/1315674#M10148</link>
      <description>&lt;P&gt;Aashis,&lt;/P&gt;&lt;P&gt;Thanks for replying.&lt;/P&gt;&lt;P&gt;I was looking for information about changing the map version to a historical version with a Feature Service Feature Class data source. The examples in the &lt;A href="https://github.com/Esri/arcgis-pro-sdk/wiki/ProConcepts-Geodatabase#archiving-and-historical-versions" target="_self"&gt;historical version&lt;/A&gt; link you provided utilize a SDE data source, and I was looking for documentation that specifies if Feature Service Feature Class data sources are supported when calling CreateHistoricalVersion.&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;HistoricalVersion historicalVersion = versionManager.CreateHistoricalVersion(new HistoricalVersionDescription("Historical marker snapshot at the moment", DateTime.Now));&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;The reason I ask is because when using a Feature Service Feature Class data source, CreateHistoricalVersion raises an exception with the message “The underlying data store does not support this operation.”&lt;/P&gt;&lt;P&gt;What I also would like to do is use the ‘Specific Date and Time (UTC)’ functionality with a Feature Service Feature Class data source and I was also wondering if that was exposed in the ArcGIS Pro 3.1 SDK as well. I am currently attempting to use the logic below to select a specific date/time, but it appears ChangeVersion is handling an exception and displaying the attached error image.&lt;/P&gt;&lt;P&gt;Does the ArcGIS Pro 3.1 SDK support changing the map version to a specific date and time while connected to a Feature Service Feature Class data source?&lt;/P&gt;&lt;P&gt;Thanks again for your help, Jon&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JonathanBurmeister_0-1691174386632.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/77354i18B019C5439A91CD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JonathanBurmeister_0-1691174386632.png" alt="JonathanBurmeister_0-1691174386632.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;PRE&gt;&lt;FONT face="courier new,courier" size="2"&gt; using (Datastore datastore = table.GetDatastore())&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;{&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;Geodatabase geodatabase = datastore as Geodatabase;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;using (VersionManager versionManager = geodatabase.GetVersionManager())&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;{&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;HistoricalVersion historicalVersion = versionManager.GetHistoricalVersion(archiveRecordTime);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;VersionBaseType versionBaseType = versionManager.GetCurrentVersionBaseType();&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;if (versionBaseType == VersionBaseType.Version)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;{&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;ArcGIS.Core.Data.Version fromVersion = versionManager.GetCurrentVersion();&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2" color="#FF0000"&gt;MapView.Active.Map.ChangeVersion(fromVersion, historicalVersion);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;}&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;if (versionBaseType == VersionBaseType.HistoricalVersion)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;{&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;HistoricalVersion fromHistoricVersion = versionManager.GetCurrentHistoricalVersion();&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;MapView.Active.Map.ChangeVersion(fromHistoricVersion, historicalVersion);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;}&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;}&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;}&lt;/FONT&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 04 Aug 2023 18:50:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/arcgis-pro-sdk-amp-change-moment/m-p/1315674#M10148</guid>
      <dc:creator>JonathanBurmeister</dc:creator>
      <dc:date>2023-08-04T18:50:21Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro SDK &amp; Change Moment</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/arcgis-pro-sdk-amp-change-moment/m-p/1315682#M10149</link>
      <description>&lt;P&gt;Jonathan,&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;VersionManager.CreateHistoricalVersion&lt;/FONT&gt; is used to create a named historical version in an enterprise geodatabase. As you noted, that's not supported with feature services.&lt;/P&gt;&lt;P&gt;To connect to an historical moment, create an &lt;FONT face="courier new,courier"&gt;HistoricalVersion&lt;/FONT&gt; object using &lt;FONT face="courier new,courier"&gt;VersionManager.GetHistoricalVersion(DateTime)&lt;/FONT&gt;, then pass it to &lt;FONT face="courier new,courier"&gt;ChangeVersion&lt;/FONT&gt; as your code sample above already shows.&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;--Rich&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Aug 2023 19:01:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/arcgis-pro-sdk-amp-change-moment/m-p/1315682#M10149</guid>
      <dc:creator>RichRuh</dc:creator>
      <dc:date>2023-08-04T19:01:08Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro SDK &amp; Change Moment</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/arcgis-pro-sdk-amp-change-moment/m-p/1315695#M10150</link>
      <description>&lt;P&gt;Hi Rich,&lt;/P&gt;&lt;P&gt;Thank you for the quick response. It is good to know that the named historical version is not supported using a feature service but a specific date/time is supported.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll focus on that and let you know when I am successful.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Again, I appreciate your response.&lt;/P&gt;&lt;P&gt;Thanks, Jon&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Aug 2023 19:31:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/arcgis-pro-sdk-amp-change-moment/m-p/1315695#M10150</guid>
      <dc:creator>JonathanBurmeister</dc:creator>
      <dc:date>2023-08-04T19:31:12Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro SDK &amp; Change Moment</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/arcgis-pro-sdk-amp-change-moment/m-p/1317373#M10169</link>
      <description>&lt;P&gt;Hi again Rich,&lt;/P&gt;&lt;P&gt;When calling &lt;FONT face="courier new,courier"&gt;MapView.Active.Map.ChangeVersion(fromVersion, historicalVersion)&lt;/FONT&gt;, the map seems to handle an error with a message 'An unknown error occurred while changing the database version. Failed to change the database time.'&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JonathanBurmeister_0-1691675210913.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/77800i716EDBA034040B44/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JonathanBurmeister_0-1691675210913.png" alt="JonathanBurmeister_0-1691675210913.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The SDK seems to be hiding an error with my code or something with the underlying feature service database.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you know where I can find more information about this condition when attempting to change to a historic version using a feature service?&lt;/P&gt;&lt;P&gt;Using the Change Moment (History) pane in ArcGIS Pro 3.1, changing to a Specific Date and Time works correctly with the same project.&lt;/P&gt;&lt;P&gt;Thanks again, Jon&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2023 13:52:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/arcgis-pro-sdk-amp-change-moment/m-p/1317373#M10169</guid>
      <dc:creator>JonathanBurmeister</dc:creator>
      <dc:date>2023-08-10T13:52:48Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro SDK &amp; Change Moment</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/arcgis-pro-sdk-amp-change-moment/m-p/1317446#M10171</link>
      <description>&lt;P&gt;I don't know of any particular thing that would cause this error.&lt;/P&gt;&lt;P&gt;Some troubleshooting tips-&lt;/P&gt;&lt;P&gt;1. Simplify the map to only one feature class to see if that works. &amp;nbsp;Re-add layers one at a time to see if you can find one causing a problem.&lt;/P&gt;&lt;P&gt;2. If you're skilled with fiddler, you could compare the `query` calls generated by the SDK vs. the calls that are sent to the service after changing the moment in the Pro UI. &amp;nbsp;(Passing the wrong moment?)&lt;/P&gt;&lt;P&gt;Sorry I can't be of more help,&lt;/P&gt;&lt;P&gt;--Rich&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2023 15:50:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/arcgis-pro-sdk-amp-change-moment/m-p/1317446#M10171</guid>
      <dc:creator>RichRuh</dc:creator>
      <dc:date>2023-08-10T15:50:21Z</dc:date>
    </item>
  </channel>
</rss>

