Answers.Body: <p>This is not a direct answer but potentially this extension might help you to keep track of old addresses? <a href="https://civicrm.org/extensions/former-communication-data" rel="nofollow noreferrer">https://civicrm.org/extensions/former-communication-data</a></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-04-23T08:58:05.997Z
Answers.Text: The use of the extension "Former Communication Data" solves my problem beyond my expectations. So I redesigned my system in order to use this module. Now I will delete the adresses that are no longer valid instead of flagging these as "Old Address". This will protect me from the potential error from a future database administrator to send mail to unexisting old addresses.
Answers.UserDisplayName: Pierre François
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-04-19T11:17:23.757Z
Answers.LastActivityDate: 2021-04-19T11:17:23.757Z
Answers.UserDisplayName: ErikH - CiviCooP
Body: <p>I have created a type of address labeled &quot;Old&quot; for keeping a record of addresses that are no longer valid for a given contact.</p>
  <p>I want to create a Civirules rule for tracking the contacts where the &quot;Old&quot; address is set and no other address is available.</p>
  <p>I was hoping the condition &quot;Address is unique&quot; was meaning that there was only one type of address available for a given cntact, but I discovered that this condition is always valid when there is no other contact in the database with the same address.</p>
  <p>I would like to know how I can solve my problem: creating a group with all the contacts having an &quot;Old&quot; address and no other address (like &quot;Home&quot;, &quot;Work&quot;, &quot;Other&quot;, etc...).</p>
  
Tags: <civirules>
Title: Civirules intent to select contact with address of one type with the exclusion of another type
ThreadText: # Civirules intent to select contact with address of one type with the exclusion of another type
  
  (Asked by: username_0 on 2021-04-19)
  
  I have created a type of address labeled "Old" for keeping a record of addresses that are no longer valid for a given contact.
  
  I want to create a Civirules rule for tracking the contacts where the "Old" address is set and no other address is available.
  
  I was hoping the condition "Address is unique" was meaning that there was only one type of address available for a given cntact, but I discovered that this condition is always valid when there is no other contact in the database with the same address.
  
  I would like to know how I can solve my problem: creating a group with all the contacts having an "Old" address and no other address (like "Home", "Work", "Other", etc...).
  
  **Tags:** civirules
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2021-04-19. Score: 2 | Accepted answer
  
  This is not a direct answer but potentially this extension might help you to keep track of old addresses? <https://civicrm.org/extensions/former-communication-data>
  
  > **Comments:**
  > **username_0**: The use of the extension "Former Communication Data" solves my problem beyond my expectations. So I redesigned my system in order to use this module. Now I will delete the adresses that are no longer valid instead of flagging these as "Old Address". This will protect me from the potential error from a future database administrator to send mail to unexisting old addresses.  
  
  ---
  
  