<?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 Issue with Definition Query for Temporal Data Layer in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/issue-with-definition-query-for-temporal-data/m-p/1536324#M88034</link>
    <description>&lt;P&gt;Dear ESRI Support Team,&lt;/P&gt;&lt;P&gt;I am working on a project to visualize roads based on the time between a start time and an end time. To test this, I created a simple road layer before applying changes to the main feature layer. I used only time data types for the "start_time" and "end_time" fields when editing them manually from the attribute table.&lt;/P&gt;&lt;P&gt;In my initial attempt, I applied a definition query with the condition time_start &amp;lt; current_time AND current_time &amp;lt; time_end. This was successful when tested with a single record on one road layer. However, when applying this to a dataset with 6,000 records, applying it manually from the attribute table proved to be very difficult, and the query did not function as expected.&lt;/P&gt;&lt;P&gt;To address this, I created a text field and manually entered time values in the format "6:00:01 AM". I then used the "Calculate Field" tool to populate this new text field. After converting the text field back to a time field, the conversion was successful. However, the definition query still did not produce the expected results.&lt;/P&gt;&lt;P&gt;I have attached a screenshot for reference.&lt;/P&gt;&lt;P&gt;Could you please advise on how to resolve this issue and ensure that the definition query applies correctly across all records?&lt;/P&gt;&lt;P&gt;Thank you for your assistance.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Tamer Assaf&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="applying definition query" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/114536i8BA8F9FD355F675B/image-size/large?v=v2&amp;amp;px=999" role="button" title="apply sql.jpg" alt="applying definition query" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;applying definition query&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="use convert temporal field to convert time text  field to time only" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/114537i63318F5A2523A5BE/image-size/large?v=v2&amp;amp;px=999" role="button" title="by convert temporal field.jpg" alt="use convert temporal field to convert time text  field to time only" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;use convert temporal field to convert time text  field to time only&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sql syntax" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/114539i9DF98AC39FA0FD30/image-size/large?v=v2&amp;amp;px=999" role="button" title="sql.jpg" alt="sql syntax" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;sql syntax&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="copy time only from attribute and use in calculate field to apply for all" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/114538iBA53200D51F1D17E/image-size/large?v=v2&amp;amp;px=999" role="button" title="tables with calc.jpg" alt="copy time only from attribute and use in calculate field to apply for all" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;copy time only from attribute and use in calculate field to apply for all&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="attributetable and layer field for layer" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/114540i6480AC6CCD6DCD65/image-size/large?v=v2&amp;amp;px=999" role="button" title="tables.jpg" alt="attributetable and layer field for layer" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;attributetable and layer field for layer&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="attributetable and layer field for layer" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/114541i1D01D99E267498BB/image-size/large?v=v2&amp;amp;px=999" role="button" title="tables_edit.jpg" alt="attributetable and layer field for layer" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;attributetable and layer field for layer&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 09 Sep 2024 07:49:52 GMT</pubDate>
    <dc:creator>TamerAssaf</dc:creator>
    <dc:date>2024-09-09T07:49:52Z</dc:date>
    <item>
      <title>Issue with Definition Query for Temporal Data Layer</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/issue-with-definition-query-for-temporal-data/m-p/1536324#M88034</link>
      <description>&lt;P&gt;Dear ESRI Support Team,&lt;/P&gt;&lt;P&gt;I am working on a project to visualize roads based on the time between a start time and an end time. To test this, I created a simple road layer before applying changes to the main feature layer. I used only time data types for the "start_time" and "end_time" fields when editing them manually from the attribute table.&lt;/P&gt;&lt;P&gt;In my initial attempt, I applied a definition query with the condition time_start &amp;lt; current_time AND current_time &amp;lt; time_end. This was successful when tested with a single record on one road layer. However, when applying this to a dataset with 6,000 records, applying it manually from the attribute table proved to be very difficult, and the query did not function as expected.&lt;/P&gt;&lt;P&gt;To address this, I created a text field and manually entered time values in the format "6:00:01 AM". I then used the "Calculate Field" tool to populate this new text field. After converting the text field back to a time field, the conversion was successful. However, the definition query still did not produce the expected results.&lt;/P&gt;&lt;P&gt;I have attached a screenshot for reference.&lt;/P&gt;&lt;P&gt;Could you please advise on how to resolve this issue and ensure that the definition query applies correctly across all records?&lt;/P&gt;&lt;P&gt;Thank you for your assistance.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Tamer Assaf&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="applying definition query" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/114536i8BA8F9FD355F675B/image-size/large?v=v2&amp;amp;px=999" role="button" title="apply sql.jpg" alt="applying definition query" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;applying definition query&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="use convert temporal field to convert time text  field to time only" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/114537i63318F5A2523A5BE/image-size/large?v=v2&amp;amp;px=999" role="button" title="by convert temporal field.jpg" alt="use convert temporal field to convert time text  field to time only" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;use convert temporal field to convert time text  field to time only&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sql syntax" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/114539i9DF98AC39FA0FD30/image-size/large?v=v2&amp;amp;px=999" role="button" title="sql.jpg" alt="sql syntax" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;sql syntax&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="copy time only from attribute and use in calculate field to apply for all" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/114538iBA53200D51F1D17E/image-size/large?v=v2&amp;amp;px=999" role="button" title="tables with calc.jpg" alt="copy time only from attribute and use in calculate field to apply for all" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;copy time only from attribute and use in calculate field to apply for all&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="attributetable and layer field for layer" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/114540i6480AC6CCD6DCD65/image-size/large?v=v2&amp;amp;px=999" role="button" title="tables.jpg" alt="attributetable and layer field for layer" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;attributetable and layer field for layer&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="attributetable and layer field for layer" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/114541i1D01D99E267498BB/image-size/large?v=v2&amp;amp;px=999" role="button" title="tables_edit.jpg" alt="attributetable and layer field for layer" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;attributetable and layer field for layer&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2024 07:49:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/issue-with-definition-query-for-temporal-data/m-p/1536324#M88034</guid>
      <dc:creator>TamerAssaf</dc:creator>
      <dc:date>2024-09-09T07:49:52Z</dc:date>
    </item>
  </channel>
</rss>

