Answers.Body: <p>You can change a contact's type either by the API or (safer) using the <a href="https://civicrm.org/extensions/contact-editor" rel="nofollow noreferrer">contact-editor</a> extension.  Obviously once you fix the types the dedupe rules will work better for you - but I don't know of an easy way to search for dupes across types.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-06-12T09:39:52.143Z
Answers.Text: Thanks for the tip! I've mostly just re-imported the ones I've found, but will keep that in mind for the future.
Answers.UserDisplayName: liblogger
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-06-06T14:20:30.777Z
Answers.LastActivityDate: 2018-06-06T14:20:30.777Z
Answers.UserDisplayName: Aidan
Answers.Body: <p>Unfortunately you cannot merge 2 contacts of different type AFAIK. Dedupe rule is set of each contact type. Current code in CiviCRM doesn't allow to merge contact of between Org-Ind. </p>
  
  <p>The only possible way to do is to write an script to find duplicate contacts and do merge.</p>
  
  <p>Quick solution(might work or not):
  1. Find Contact and Sort on basis of email.
  2. Select and delete the contacts</p>
  
  <p>HTH</p>
  
  <p>Pradeep</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-06-12T09:37:11.597Z
Answers.Text: Unfortunately we've just got too many contacts for a manual check like that to be practical :(
Answers.UserDisplayName: liblogger
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-06-06T14:20:31.917Z
Answers.LastActivityDate: 2018-06-06T14:20:31.917Z
Answers.UserDisplayName: Pradeep Nayak
Answers.Body: <p>Actually you can force a merge just it's not officially supported. You need to hack the merge url to use the internal contact ids (the id that appears at the bottom of the contact summary page where it says "Contact ID").</p>
  
  <p>For example, the number 16 after cid below is the "loser" contact and the number 134 after oid is the "winner" contact. The winner is the one that remains at the end. So just take this url and replace those numbers and of course the domain name.</p>
  
  <p><a href="http://dmaster.demo.civicrm.org/civicrm/contact/merge?reset=1&amp;cid=16&amp;oid=134&amp;action=update&amp;rgid=3&amp;criteria=%7B%7D&amp;limit=" rel="nofollow noreferrer">http://dmaster.demo.civicrm.org/civicrm/contact/merge?reset=1&amp;cid=16&amp;oid=134&amp;action=update&amp;rgid=3&amp;criteria=%7B%7D&amp;limit=</a></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-06-12T09:43:11.450Z
Answers.Text: Oh, neat. I haven't actually found any where I'd really need to merge them (rather than just deleting the duplicate), but that's useful to know.
Answers.UserDisplayName: liblogger
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-06-06T21:19:25.740Z
Answers.LastActivityDate: 2018-06-06T21:19:25.740Z
Answers.UserDisplayName: Demerit
Body: <p>An issue that's come up while we've been cleaning up our records for GDPR - we have a significant number of records where organisations have been entered as individuals, and vice versa. </p>
  
  <p>This is mostly through user error - for example from records bulk imported as individuals, but also because individuals use an organisation email to sign up or contact us, or we only have an individual contact email for an organisation. </p>
  
  <p>However, there is duplication between these contacts, and testing on CiviCRM I realise that if you create a new individual contact with the email of an existing organisation, 'Check for Matching Contacts' doesn't find the existing organisation. And, of course, the dedupe rules can only be run on either individuals, households or organisations. </p>
  
  <p>Is there any way to set a dedupe rule across all contacts? e.g. a basic check to see if an email is already on the system?</p>
  
Tags: <contacts><duplicate-contacts>
Title: Deduping between Individuals and Organisations
ThreadText: # Deduping between Individuals and Organisations
  
  (Asked by: username_0 on 2018-06-06)
  
  An issue that's come up while we've been cleaning up our records for GDPR - we have a significant number of records where organisations have been entered as individuals, and vice versa.
  
  This is mostly through user error - for example from records bulk imported as individuals, but also because individuals use an organisation email to sign up or contact us, or we only have an individual contact email for an organisation.
  
  However, there is duplication between these contacts, and testing on CiviCRM I realise that if you create a new individual contact with the email of an existing organisation, 'Check for Matching Contacts' doesn't find the existing organisation. And, of course, the dedupe rules can only be run on either individuals, households or organisations.
  
  Is there any way to set a dedupe rule across all contacts? e.g. a basic check to see if an email is already on the system?
  
  **Tags:** contacts, duplicate-contacts
  
  
  ---
  
  ## 3 answers
  
  ### Answer by username_1 on 2018-06-06. Score: 4
  
  You can change a contact's type either by the API or (safer) using the [contact-editor](https://civicrm.org/extensions/contact-editor) extension. Obviously once you fix the types the dedupe rules will work better for you - but I don't know of an easy way to search for dupes across types.
  
  > **Comments:**
  > **username_0**: Thanks for the tip! I've mostly just re-imported the ones I've found, but will keep that in mind for the future.  
  
  ---
  
  ### Answer by username_2 on 2018-06-06. Score: 1
  
  Unfortunately you cannot merge 2 contacts of different type AFAIK. Dedupe rule is set of each contact type. Current code in CiviCRM doesn't allow to merge contact of between Org-Ind.
  
  The only possible way to do is to write an script to find duplicate contacts and do merge.
  
  Quick solution(might work or not):
  1. Find Contact and Sort on basis of email.
  2. Select and delete the contacts
  
  HTH
  
  Pradeep
  
  > **Comments:**
  > **username_0**: Unfortunately we've just got too many contacts for a manual check like that to be practical :(  
  
  ---
  
  ### Answer by username_3 on 2018-06-06. Score: 1
  
  Actually you can force a merge just it's not officially supported. You need to hack the merge url to use the internal contact ids (the id that appears at the bottom of the contact summary page where it says "Contact ID").
  
  For example, the number 16 after cid below is the "loser" contact and the number 134 after oid is the "winner" contact. The winner is the one that remains at the end. So just take this url and replace those numbers and of course the domain name.
  
  <http://dmaster.demo.civicrm.org/civicrm/contact/merge?reset=1&cid=16&oid=134&action=update&rgid=3&criteria=%7B%7D&limit=>
  
  > **Comments:**
  > **username_0**: Oh, neat. I haven't actually found any where I'd really need to merge them (rather than just deleting the duplicate), but that's useful to know.  
  
  ---
  
  