<?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 Report - only show attachments when present in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-report-only-show-attachments-when/m-p/1653574#M99241</link>
    <description>&lt;P&gt;I am trying to create a report that will ultimately be published as a reporting service in ArcGIS Server. Our customer has asked that the report includes an appendix showing the attachments (photos) for any features in the report.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have created a details report to do this with a feature reference (from an attribute) and an attachment frame that is set as a 2x2 grid (ideally we would like this to auto expand based on how many photos there are, but that's a separate issue).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JohnFannon_0-1758905803478.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/141033iA9F5BAAEF9DD0B25/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JohnFannon_0-1758905803478.png" alt="JohnFannon_0-1758905803478.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This is working to a degree, but is producing a page (or record) for every feature, regardless of whether there are any attachments. So if there are 10 features and only 2 of them have attachments, it's generating a 10 page report with mostly empty pages, which is not good!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JohnFannon_2-1758906156715.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/141035i27481D1A1572F0E0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JohnFannon_2-1758906156715.png" alt="JohnFannon_2-1758906156715.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I thought perhaps I could filter the report, but this seems to require a SQL expression (cannot use arcade) which would require a field containing the attachment count (or a flag). I also tried adding an Expression to the report to provide this attachment count - e.g.&amp;nbsp;Count(Attachments($feature)). However, this produces an error along the lines of "Function is not supported in current profile".&amp;nbsp;&lt;/P&gt;&lt;P&gt;Showing attachments only when the exist seems like a common thing to want to do, given that not all features are necessarily going to have attachments.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to achieve this or workaround that doesn't involve adding an attachment count field to the feature layer?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't think our customer will accept a report that includes multiple empty pages.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 26 Sep 2025 17:13:12 GMT</pubDate>
    <dc:creator>JohnFannon</dc:creator>
    <dc:date>2025-09-26T17:13:12Z</dc:date>
    <item>
      <title>ArcGIS Pro Report - only show attachments when present</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-report-only-show-attachments-when/m-p/1653574#M99241</link>
      <description>&lt;P&gt;I am trying to create a report that will ultimately be published as a reporting service in ArcGIS Server. Our customer has asked that the report includes an appendix showing the attachments (photos) for any features in the report.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have created a details report to do this with a feature reference (from an attribute) and an attachment frame that is set as a 2x2 grid (ideally we would like this to auto expand based on how many photos there are, but that's a separate issue).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JohnFannon_0-1758905803478.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/141033iA9F5BAAEF9DD0B25/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JohnFannon_0-1758905803478.png" alt="JohnFannon_0-1758905803478.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This is working to a degree, but is producing a page (or record) for every feature, regardless of whether there are any attachments. So if there are 10 features and only 2 of them have attachments, it's generating a 10 page report with mostly empty pages, which is not good!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JohnFannon_2-1758906156715.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/141035i27481D1A1572F0E0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JohnFannon_2-1758906156715.png" alt="JohnFannon_2-1758906156715.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I thought perhaps I could filter the report, but this seems to require a SQL expression (cannot use arcade) which would require a field containing the attachment count (or a flag). I also tried adding an Expression to the report to provide this attachment count - e.g.&amp;nbsp;Count(Attachments($feature)). However, this produces an error along the lines of "Function is not supported in current profile".&amp;nbsp;&lt;/P&gt;&lt;P&gt;Showing attachments only when the exist seems like a common thing to want to do, given that not all features are necessarily going to have attachments.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to achieve this or workaround that doesn't involve adding an attachment count field to the feature layer?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't think our customer will accept a report that includes multiple empty pages.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Sep 2025 17:13:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-report-only-show-attachments-when/m-p/1653574#M99241</guid>
      <dc:creator>JohnFannon</dc:creator>
      <dc:date>2025-09-26T17:13:12Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro Report - only show attachments when present</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-report-only-show-attachments-when/m-p/1653691#M99266</link>
      <description>&lt;P&gt;Not only attachments, but also other related reports where data is not entered.&lt;/P&gt;</description>
      <pubDate>Sat, 27 Sep 2025 20:42:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-report-only-show-attachments-when/m-p/1653691#M99266</guid>
      <dc:creator>BSBlagojevic</dc:creator>
      <dc:date>2025-09-27T20:42:16Z</dc:date>
    </item>
  </channel>
</rss>

