<?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: Summary Section, Where doesn't work with Query to Field, Get &amp;quot;cannot be found in the current parsing scope&amp;quot; in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/summary-section-where-doesn-t-work-with-query-to/m-p/1675702#M65077</link>
    <description>&lt;P&gt;Hello There! Thank you so much for your help - I ended up using partially&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/763693"&gt;@Neal_t_k&lt;/a&gt;&amp;nbsp;solution, but&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/923685"&gt;@VenkataKondepati&lt;/a&gt;&amp;nbsp;pointed me in the correct direction and gave me the piece that I was missing.&amp;nbsp; I ultimately went with this:&amp;nbsp;&amp;nbsp;${#PermitInspections_test| where:"PERM_ID = '"+$mainlayer.PERM_ID+"' !important" |orderByFields: “OBJECTID DESC”}, inside a table, and it works.&amp;nbsp; Now, I just need to wait on my user to tell me exactly what he wants in this report!&amp;nbsp; &amp;nbsp;Thank you so much for your help!&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 02 Jan 2026 20:21:10 GMT</pubDate>
    <dc:creator>Carrie2025</dc:creator>
    <dc:date>2026-01-02T20:21:10Z</dc:date>
    <item>
      <title>Summary Section, Where doesn't work with Query to Field, Get "cannot be found in the current parsing scope"</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/summary-section-where-doesn-t-work-with-query-to/m-p/1675633#M65073</link>
      <description>&lt;P&gt;Hello - I am putting together a report where I am trying to pull a list of all previous inspections in a summary report.&amp;nbsp; the inspections table is linked as a related table using a GUID Field (In my report, called PERM_ID).&amp;nbsp; From what I read, this should be possible.&amp;nbsp; However, I keep getting a "Cannot be found in current parsing scope" error.&amp;nbsp; I know the "PERM_ID" field is correct, it works in other places, as well as in the summary section when not used in as part of the where clause.&lt;/P&gt;&lt;P&gt;It works if I hardcode the value in in - it works if I don't use a where statement, and according to &lt;A title="Feature Report " href="https://doc.arcgis.com/en/survey123/browser/analyze-results/featurereportqueries.htm" target="_blank" rel="noopener"&gt;documentation, It should work.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I'm not sure what I'm missing - I've uploaded the report I'm using (Its currently missing the !important to pull all matching value)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jan 2026 15:10:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/summary-section-where-doesn-t-work-with-query-to/m-p/1675633#M65073</guid>
      <dc:creator>Carrie2025</dc:creator>
      <dc:date>2026-01-02T15:10:04Z</dc:date>
    </item>
    <item>
      <title>Re: Summary Section, Where doesn't work with Query to Field, Get "cannot be found in the current parsing scope"</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/summary-section-where-doesn-t-work-with-query-to/m-p/1675643#M65074</link>
      <description>&lt;P&gt;This is a report parsing-scope issue, not a bad field.&lt;/P&gt;&lt;P&gt;In Survey123 reports, the where: clause on a related table runs in the child table’s scope, so the parent field (PERM_ID) isn’t automatically visible. That’s why it works when hardcoded but fails when referenced.&lt;/P&gt;&lt;P&gt;Fix: reference the parent explicitly (or assign it first):&lt;/P&gt;&lt;P&gt;&lt;EM&gt;${Inspections | where:"perm_id='${@parent.PERM_ID}'"}&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;(or assign PERM_ID to a variable and use that).&lt;/P&gt;&lt;P&gt;Related-table queries can’t “see” parent fields unless you explicitly pass them into scope.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jan 2026 16:12:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/summary-section-where-doesn-t-work-with-query-to/m-p/1675643#M65074</guid>
      <dc:creator>VenkataKondepati</dc:creator>
      <dc:date>2026-01-02T16:12:43Z</dc:date>
    </item>
    <item>
      <title>Re: Summary Section, Where doesn't work with Query to Field, Get "cannot be found in the current parsing scope"</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/summary-section-where-doesn-t-work-with-query-to/m-p/1675660#M65076</link>
      <description>&lt;P&gt;This might be worth a shot, not sure if it will work in the sql.&lt;/P&gt;&lt;P&gt;&lt;A href="https://doc.arcgis.com/en/survey123/browser/analyze-results/featurereport-repeats.htm" target="_blank" rel="noopener"&gt;https://doc.arcgis.com/en/survey123/browser/analyze-results/featurereport-repeats.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;${#PermitInspections_test|where: "PERM_ID ='${&amp;lt;mainlayername&amp;gt;.PERM_ID}'"}&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;${#PermitInspections_test|where: "PERM_ID ='"+${&amp;lt;mainlayername&amp;gt;.PERM_ID}+"'"}&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jan 2026 17:23:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/summary-section-where-doesn-t-work-with-query-to/m-p/1675660#M65076</guid>
      <dc:creator>Neal_t_k</dc:creator>
      <dc:date>2026-01-02T17:23:22Z</dc:date>
    </item>
    <item>
      <title>Re: Summary Section, Where doesn't work with Query to Field, Get "cannot be found in the current parsing scope"</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/summary-section-where-doesn-t-work-with-query-to/m-p/1675702#M65077</link>
      <description>&lt;P&gt;Hello There! Thank you so much for your help - I ended up using partially&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/763693"&gt;@Neal_t_k&lt;/a&gt;&amp;nbsp;solution, but&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/923685"&gt;@VenkataKondepati&lt;/a&gt;&amp;nbsp;pointed me in the correct direction and gave me the piece that I was missing.&amp;nbsp; I ultimately went with this:&amp;nbsp;&amp;nbsp;${#PermitInspections_test| where:"PERM_ID = '"+$mainlayer.PERM_ID+"' !important" |orderByFields: “OBJECTID DESC”}, inside a table, and it works.&amp;nbsp; Now, I just need to wait on my user to tell me exactly what he wants in this report!&amp;nbsp; &amp;nbsp;Thank you so much for your help!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jan 2026 20:21:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/summary-section-where-doesn-t-work-with-query-to/m-p/1675702#M65077</guid>
      <dc:creator>Carrie2025</dc:creator>
      <dc:date>2026-01-02T20:21:10Z</dc:date>
    </item>
    <item>
      <title>Re: Summary Section, Where doesn't work with Query to Field, Get "cannot be found in the current parsing scope"</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/summary-section-where-doesn-t-work-with-query-to/m-p/1675703#M65078</link>
      <description>&lt;P&gt;Thanks for the comments &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/864749"&gt;@Carrie2025&lt;/a&gt;&amp;nbsp;. I am glad it worked out.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jan 2026 20:31:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/summary-section-where-doesn-t-work-with-query-to/m-p/1675703#M65078</guid>
      <dc:creator>VenkataKondepati</dc:creator>
      <dc:date>2026-01-02T20:31:55Z</dc:date>
    </item>
  </channel>
</rss>

