Body: <ul>
  <li>Created a report with some custom fields in it.</li>
  <li>The report show up correctly with the custom field used</li>
  <li>When I click on &quot;Add Contacts to Group&quot; and choose a group I see a blank page stating an error appeared. The error is <code>&quot;Unknown column 'civicrm_value_kandidaturen__11_custom_134' in 'field list'&quot;</code></li>
  </ul>
  <p>I do not know why this report causes this trouble as this function (adding contacts to a group from a report) as this funtion works with other reports properly even if this custom field is added to the report. It is not clear for me when the query runs which causes this issue (it is an select query starting with <code>SELECT DISTINCT contact_civireport.id AS addtogroup_contact_id</code> and is quite large so I am not sure if I should paste it in here). Can someone give me a hint?</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-02-24T15:50:16.757Z
Comments.Text: Which report is the base report?
Comments.UserDisplayName: Demerit
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-02-27T08:15:03.257Z
Comments.Text: I do not know - is there a way to find it out?
Comments.UserDisplayName: Tobias Krause
Tags: <civireport><groups><reports>
Title: Database error "Unknown field" when trying to add contacts to a group from a report
ThreadText: # Database error "Unknown field" when trying to add contacts to a group from a report
  
  (Asked by: username_0 on 2021-02-24)
  
  * Created a report with some custom fields in it.
  * The report show up correctly with the custom field used
  * When I click on "Add Contacts to Group" and choose a group I see a blank page stating an error appeared. The error is `"Unknown column 'civicrm_value_kandidaturen__11_custom_134' in 'field list'"`
  
  I do not know why this report causes this trouble as this function (adding contacts to a group from a report) as this funtion works with other reports properly even if this custom field is added to the report. It is not clear for me when the query runs which causes this issue (it is an select query starting with `SELECT DISTINCT contact_civireport.id AS addtogroup_contact_id` and is quite large so I am not sure if I should paste it in here). Can someone give me a hint?
  
  **Tags:** civireport, groups, reports
  
  > **Comments:**
  > **username_1**: Which report is the base report?  
  > **username_0**: I do not know - is there a way to find it out?  
  
  ---
  
  ## 0 answers
  
  