<?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: DEFINITION QUERY NOT WORKING in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/definition-query-not-working/m-p/1559555#M90241</link>
    <description>&lt;P&gt;Additionally if i tried to deactivate the query right after its created to try to switch it on again and hoping it would solve problem, but after adding this line to code&lt;BR /&gt;&lt;STRONG&gt;lyr.updateDefinitionQueries(&lt;BR /&gt;[{'name': 'Query 1',&lt;BR /&gt;'isActive': False}])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;program simply crushes and closes &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 18 Nov 2024 07:04:22 GMT</pubDate>
    <dc:creator>WeronikaBąkowska</dc:creator>
    <dc:date>2024-11-18T07:04:22Z</dc:date>
    <item>
      <title>DEFINITION QUERY NOT WORKING</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/definition-query-not-working/m-p/1559145#M90240</link>
      <description>&lt;P&gt;Hello, i have weird problem&lt;BR /&gt;this is my code&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;import arcpy&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;aprx = arcpy.mp.ArcGISProject("CURRENT")&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;maps = aprx.listMaps("Layers4")&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if maps:&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;m = maps[0]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;for lyr in m.listLayers("Land Boundary"):&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;if lyr.supports("DEFINITIONQUERY"):&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;lyr.definitionQuery = "Flurstueck = 1237"&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;and it creates Definition query in my layer properly&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="WeronikaBkowska_1-1731678944567.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/119639i28A7E1E6B392696C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="WeronikaBkowska_1-1731678944567.png" alt="WeronikaBkowska_1-1731678944567.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;sadly it doesnt work on itself and i have to manually click apply otherwise map disappears and is white.&lt;BR /&gt;I assume its bug, please help&lt;BR /&gt;&lt;BR /&gt;additional info:&lt;BR /&gt;even tho definition query is created, i get info&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="WeronikaBkowska_0-1731918440822.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/119727iD9AD433B082B0CBA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="WeronikaBkowska_0-1731918440822.png" alt="WeronikaBkowska_0-1731918440822.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;ArcGis Pro versions that i tired with 3.0.2 and 3.4&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Nov 2024 08:27:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/definition-query-not-working/m-p/1559145#M90240</guid>
      <dc:creator>WeronikaBąkowska</dc:creator>
      <dc:date>2024-11-18T08:27:48Z</dc:date>
    </item>
    <item>
      <title>Re: DEFINITION QUERY NOT WORKING</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/definition-query-not-working/m-p/1559555#M90241</link>
      <description>&lt;P&gt;Additionally if i tried to deactivate the query right after its created to try to switch it on again and hoping it would solve problem, but after adding this line to code&lt;BR /&gt;&lt;STRONG&gt;lyr.updateDefinitionQueries(&lt;BR /&gt;[{'name': 'Query 1',&lt;BR /&gt;'isActive': False}])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;program simply crushes and closes &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Nov 2024 07:04:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/definition-query-not-working/m-p/1559555#M90241</guid>
      <dc:creator>WeronikaBąkowska</dc:creator>
      <dc:date>2024-11-18T07:04:22Z</dc:date>
    </item>
    <item>
      <title>Re: DEFINITION QUERY NOT WORKING</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/definition-query-not-working/m-p/1559643#M90242</link>
      <description>&lt;P&gt;Hi &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/853671"&gt;@WeronikaBąkowska&lt;/a&gt;&lt;/SPAN&gt;, we appreciate you sharing a potential bug with the broader Esri Community; however, Esri does not actively track software defects posted here. The official channel for investigating and validating bugs is &lt;A href="https://www.esri.com/en-us/contact?rsource=%2Fcontact#c=us&amp;amp;t=5" target="_blank"&gt;Esri Technical Support&lt;/A&gt;. All customers experiencing a potential software bug should leverage technical support to report and investigate the issue.&lt;/P&gt;
&lt;P&gt;By reporting bugs through technical support, Esri can better track the scope and impact of the issue across all our customers and better prioritize it with our product teams. Our teams can also investigate the issue more thoroughly to see if there is a solution, workaround, or patch to get you back up and running as soon as possible.&lt;/P&gt;
&lt;P&gt;As a reminder, Esri Community is primarily a self-service support platform where Esri users can ask or answer each other’s questions, share feature requests, and collaborate to solve problems with GIS.&lt;/P&gt;
&lt;P&gt;&lt;I&gt;*Note that this is a scripted message prompted when posts allude to a potential product bug.&lt;/I&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Nov 2024 14:16:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/definition-query-not-working/m-p/1559643#M90242</guid>
      <dc:creator>JesseCloutier</dc:creator>
      <dc:date>2024-11-18T14:16:24Z</dc:date>
    </item>
  </channel>
</rss>

