Body: <p>When using Advanced Search:</p>
  <ol>
  <li>Selecting Display Results As = Related Contacts + Employee of</li>
  <li>Selecting the Tags for the related Organizations</li>
  <li>The Search Results show 923 Individual Contact Records (as expected)</li>
  </ol>
  <p>When I &quot;Select All Records&quot; &gt; &quot;Export Contacts&quot;, the export shows only the field headers regardless if I use the default &quot;Export PRIMARY Fields&quot; or &quot;Select fields for export&quot;.</p>
  <p>I do NOT have an issue exporting data when not altering &quot;Display Results As&quot; (#1, above)</p>
  <p>Is this a know issue and/or a way to fix this?</p>
  <p>Using Civi Version 5.78.3, Joomla 5.2.1</p>
  <p>** Update - I found a workaround for this, BUT am still hoping to resolve why this is not working from the Advanced Search Window...</p>
  <ol>
  <li><p>After the search, instead of selecting all records and then selecting &quot;export&quot; from Actions, you can select &quot;Group - add contacts&quot; or &quot;Group - create smart group&quot;.</p>
  </li>
  <li><p>From &gt;Contacts &gt;Manage Groups, Select &quot;Contacts&quot; on the right side of the screen and from the list of contacts Window, export from there (via actions, same as you would from the search results). The export works regardless of which fields are present/selected/populated.</p>
  </li>
  </ol>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2024-11-26T02:41:09.113Z
Comments.Text: It might be worth testing if you have similar outcome on one of the master sites (latest code) eg dmaster.demo.civicrm.org
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2024-12-02T16:05:33.663Z
Comments.Text: Thank you petednz - fuzion. I did this, got the same result as I noted above, plus a string of warnings (related to demo install?): Example of one line: * Warning: Undefined array key "postal_greeting" in content_674dd9a1bd6538_65485941() (line 123 of /srv/buildkit/build/dmaster/.civibuild/private/default/civicrm/templates_c/en_US/15/f0/4f/15f04f388b4c993dbe34e2da704eb915b9d857a7_0.file_Select.tpl.php).
Comments.UserDisplayName: Jennifer
Tags: <contacts><search><export><display>
Title: Advanced Search Exports Without Data
ThreadText: # Advanced Search Exports Without Data
  
  (Asked by: username_0 on 2024-11-25)
  
  When using Advanced Search:
  
  1. Selecting Display Results As = Related Contacts + Employee of
  2. Selecting the Tags for the related Organizations
  3. The Search Results show 923 Individual Contact Records (as expected)
  
  When I "Select All Records" > "Export Contacts", the export shows only the field headers regardless if I use the default "Export PRIMARY Fields" or "Select fields for export".
  
  I do NOT have an issue exporting data when not altering "Display Results As" (#1, above)
  
  Is this a know issue and/or a way to fix this?
  
  Using Civi Version 5.78.3, Joomla 5.2.1
  
  \*\* Update - I found a workaround for this, BUT am still hoping to resolve why this is not working from the Advanced Search Window...
  
  1. After the search, instead of selecting all records and then selecting "export" from Actions, you can select "Group - add contacts" or "Group - create smart group".
  2. From >Contacts >Manage Groups, Select "Contacts" on the right side of the screen and from the list of contacts Window, export from there (via actions, same as you would from the search results). The export works regardless of which fields are present/selected/populated.
  
  **Tags:** contacts, search, export, display
  
  > **Comments:**
  > **username_1**: It might be worth testing if you have similar outcome on one of the master sites (latest code) eg dmaster.demo.civicrm.org  
  > **username_0**: Thank you username_1 - username_1. I did this, got the same result as I noted above, plus a string of warnings (related to demo install?): Example of one line: * Warning: Undefined array key "postal_greeting" in content_674dd9a1bd6538_65485941() (line 123 of /srv/buildkit/build/dmaster/.civibuild/private/default/civicrm/templates_c/en_US/15/f0/4f/15f04f388b4c993dbe34e2da704eb915b9d857a7_0.file_Select.tpl.php).  
  
  ---
  
  ## 0 answers
  
  