Answers.Body: <p>After upgrading a couple more installs both produced these system status messages linked to phantom smart groups. To clear them click the left of the 2 small icons, then click the smart group criteria to go into advanced search. Then it really doesn't matter what you set this search to, as after clicking search you then go ahead &amp; create the phantom smart group &amp; then delete it. The message will then disappear.  This is the same process you would use to deal with this error message where the smart group exists, but for those you simply update the smart group after the advanced search.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-10-01T13:23:23.163Z
Answers.Text: This did not help. The message keeps coming back.
Answers.UserDisplayName: Aivars
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-04-13T07:48:07.740Z
Answers.LastActivityDate: 2020-04-13T07:48:07.740Z
Answers.UserDisplayName: Andy Clark
Answers.Body: <p>This issue present on 5.25.0</p>
  <p>Hover over the edit button to get the ssID. Delete the saved search entity if there is no mapping. This can be done by API/database.</p>
  <p>Agileware ref: SUP-18449</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-10-01T13:22:39.337Z
Answers.Text: What can I do with that ssID? The number keeps changing when I save a new smart group and delete it afterwards.
Answers.UserDisplayName: Aivars
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-07-01T00:02:37.870Z
Answers.LastActivityDate: 2020-07-01T00:02:37.870Z
Answers.UserDisplayName: Agileware-Pengyi
Answers.Body: <p>Thats a false alarm which is fixed in this <a href="https://github.com/civicrm/civicrm-core/pull/16963" rel="nofollow noreferrer">PR</a>. </p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-04-09T12:32:18.367Z
Answers.Text: The two new lines in Schema.php are exactly as I already have it in 5.4.2. So this seems to be already in 5.4 but isn't working?  Here's what I have:
            list(, $customFieldID) = explode('_', $formValues[0]);
            if (!in_array((int) $customFieldID, $customFieldIds, TRUE)) {
Answers.UserDisplayName: Andy Clark
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-04-09T13:09:52.207Z
Answers.Text: clear civi cache
Answers.UserDisplayName: Pradeep Nayak
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-04-09T13:32:38.553Z
Answers.Text: Cache cleared already, but did it again (twice) just for you.  Makes no difference. This message has been there in 5.4.0, 5.4.1 and now 5.4.2 (if that helps)
Answers.UserDisplayName: Andy Clark
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-04-09T13:40:33.930Z
Answers.Text: I managed to get this message to go away by clicking on the left icon, and saving the smart group criteria that it came up with - which was empty so got all contacts.  So I had to give it a name as it was a new group.  Then the message disappeared.!
Answers.UserDisplayName: Andy Clark
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-04-11T21:11:49.193Z
Answers.Text: I installed another 5.24.2 upgrade and got 2 of these empty smart group errors. The only way to remove them, at present, is to do as I did above, ie create the empty smart group then delete it.
Answers.UserDisplayName: Andy Clark
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-10-01T13:21:03.387Z
Answers.Text: It still shows up in 5.28.3
Answers.UserDisplayName: Aivars
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-04-09T11:19:30.003Z
Answers.LastActivityDate: 2020-04-09T11:19:30.003Z
Answers.UserDisplayName: Pradeep Nayak
Body: <p>After upgrading to 5.24 I get the above message in system status.  I've disabled and re-enabled all smart groups but the message persists and I can't find any redundant custom fields.  The message shows no smart group name or custom field name so there's no clue what's wrong. There are no error messages in the log. This is a very small Drupal based system.  Here's the message:
  <br><br>
  <a href="https://i.sstatic.net/OWwq0.jpg" rel="nofollow noreferrer"><img src="https://i.sstatic.net/OWwq0.jpg" alt="enter image description here"></a></p>
  
Tags: <custom-fields><smartgroups><system-status>
Title: System status - disabled/deleted fields on Smart Groups (5.24)
ThreadText: # System status - disabled/deleted fields on Smart Groups (5.24)
  
  (Asked by: username_0 on 2020-04-09)
  
  After upgrading to 5.24 I get the above message in system status. I've disabled and re-enabled all smart groups but the message persists and I can't find any redundant custom fields. The message shows no smart group name or custom field name so there's no clue what's wrong. There are no error messages in the log. This is a very small Drupal based system. Here's the message:
    
    
  [![enter image description here](https://i.sstatic.net/OWwq0.jpg)](https://i.sstatic.net/OWwq0.jpg)
  
  **Tags:** custom-fields, smartgroups, system-status
  
  
  ---
  
  ## 3 answers
  
  ### Answer by username_0 on 2020-04-13. Score: 2
  
  After upgrading a couple more installs both produced these system status messages linked to phantom smart groups. To clear them click the left of the 2 small icons, then click the smart group criteria to go into advanced search. Then it really doesn't matter what you set this search to, as after clicking search you then go ahead & create the phantom smart group & then delete it. The message will then disappear. This is the same process you would use to deal with this error message where the smart group exists, but for those you simply update the smart group after the advanced search.
  
  > **Comments:**
  > **username_1**: This did not help. The message keeps coming back.  
  
  ---
  
  ### Answer by username_2 on 2020-07-01. Score: 0
  
  This issue present on 5.25.0
  
  Hover over the edit button to get the ssID. Delete the saved search entity if there is no mapping. This can be done by API/database.
  
  Agileware ref: SUP-18449
  
  > **Comments:**
  > **username_1**: What can I do with that ssID? The number keeps changing when I save a new smart group and delete it afterwards.  
  
  ---
  
  ### Answer by username_3 on 2020-04-09. Score: -1
  
  Thats a false alarm which is fixed in this [PR](https://github.com/civicrm/civicrm-core/pull/16963).
  
  > **Comments:**
  > **username_0**: The two new lines in Schema.php are exactly as I already have it in 5.4.2. So this seems to be already in 5.4 but isn't working?  Here's what I have:           list(, $customFieldID) = explode('_', $formValues[0]);           if (!in_array((int) $customFieldID, $customFieldIds, TRUE)) {  
  > **username_3**: clear civi cache  
  > **username_0**: Cache cleared already, but did it again (twice) just for you.  Makes no difference. This message has been there in 5.4.0, 5.4.1 and now 5.4.2 (if that helps)  
  > **username_0**: I managed to get this message to go away by clicking on the left icon, and saving the smart group criteria that it came up with - which was empty so got all contacts.  So I had to give it a name as it was a new group.  Then the message disappeared.!  
  > **username_0**: I installed another 5.24.2 upgrade and got 2 of these empty smart group errors. The only way to remove them, at present, is to do as I did above, ie create the empty smart group then delete it.  
  > **username_1**: It still shows up in 5.28.3  
  
  ---
  
  