Answers.Body: <p>This was resolved by removing the user's current employer, saving the record, and then re-adding the current employer.  Seems potentially to have been some problem around the cascading membership?</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-10-25T09:10:25.940Z
Answers.Text: Actually nothing to do with memberships - I have just created a fresh CiviCRM & WP install with 5 contacts, completely separate to the site above and with no memberships, and one of the contacts is cloning in almost  exactly the way they did on the other site - this time 2 contacts (min) every evening ‍♂️
Answers.UserDisplayName: Robin Fenwick
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-02-21T14:27:21.330Z
Answers.LastActivityDate: 2020-02-21T14:27:21.330Z
Answers.UserDisplayName: Robin Fenwick
Body: <p>I have been trying to unpick a mystery now for a week without success! I wonder if anyone can help.</p>
  <p>We have two contacts (out of a database of c 7,500) where we're seeing some odd behaviour.</p>
  <p>As an example - let's call him John Doe.</p>
  <p>John Doe has a contact record, linked to a Wordpress user account. He has registered for an event recently (may or may not be relevant). His record has a linked current employer, job title, and address.</p>
  <p>Every day at 12:13pm or 12:14pm, a duplicate John Doe account appears in CiviCRM, according to the change log created by John Doe,  with matching:</p>
  <ul>
  <li>Name</li>
  <li>Email</li>
  </ul>
  <p>But without</p>
  <ul>
  <li>Linked Wordpress account</li>
  <li>Job Title</li>
  <li>Current Employer</li>
  </ul>
  <p>I am at a loss to explain why.  Things I have tried:</p>
  <ul>
  <li>Disabling the Capitalisation Correction Extension</li>
  <li>Disabling CiviRules</li>
  <li>Examining the scheduled jobs log</li>
  </ul>
  <p>Cron runs every five minutes. The Scheduled Jobs log shows that between 12:10 and 12:15pm each day, there are no scheduled jobs running:</p>
  <blockquote>
  <p>2020-02-20 12:10:02 Finishing scheduled jobs execution.</p>
  <p>2020-02-20 12:15:05 Starting scheduled jobs execution</p>
  </blockquote>
  <p>There are no scheduled jobs which uniquely run at 12:10pm.</p>
  <p>For each contact, there is only one item in the change log:</p>
  <p><a href="https://i.sstatic.net/oCcA4.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/oCcA4.png" alt="Change Log" /></a></p>
  <p>I'd be extremely grateful for any advice on investigating this further as I am now drawing a blank (and I have 36 John Does in the database!)</p>
  <p>We are currently on 5.13.4 (security upgrade imminent)</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-02-20T20:04:00.013Z
Comments.Text: One thing they have in common that I've just noticed - the day before this started happening, their accounts were merged with a duplicate. In both cases, the newly merged contact then inherited a membership from their employer.
Comments.UserDisplayName: Robin Fenwick
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-02-20T20:23:17.480Z
Comments.Text: Just to clarify - it may not be relevant - is it 12 am or pm? You've mentioned both, and it seems super-extra weird if it's pm.
Comments.UserDisplayName: Demerit
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-02-20T20:24:36.687Z
Comments.Text: @Demerit It is unfortunately the super-extra-weird pm!
Comments.UserDisplayName: Robin Fenwick
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-02-21T00:58:56.860Z
Comments.Text: Does the new contact created have full name or only email? Any inbound activity? What is your unsupervised dedupe rule?
Comments.UserDisplayName: Pradeep Nayak
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-02-21T09:11:19.277Z
Comments.Text: Do you have detailed logging enabled?  That might provide a few more clues.
Comments.UserDisplayName: Aidan
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-02-21T14:26:31.270Z
Comments.Text: Hi @PradeepNayak - Full Name and email, no inbound activity. De-dupe is:
  
  First Name - 5
  Last Name - 5
  Email - 5
  
  Threshold: 15
Comments.UserDisplayName: Robin Fenwick
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-02-21T14:26:33.813Z
Comments.Text: @Aidan We certainly have logging enabled, not sure if it's detailed - I used the CiviCRM Log Viewer extension, and couldn't see anything relevant there - however, I am about to post a potential answer to this below!
Comments.UserDisplayName: Robin Fenwick
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-02-21T16:00:29.867Z
Comments.Text: Ah, different logging.  I'm meaning Administer > System Settings > Misc > Logging  If so, you'll have a load of SQL tables starting log_   Examining the recent changes for log_civicrm_contact might give you some clues
Comments.UserDisplayName: Aidan
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-02-21T19:59:30.680Z
Comments.Text: @Aidan That's helpful, thank you!  If the problem reoccurs I will start there
Comments.UserDisplayName: Robin Fenwick
Tags: <contacts>
Title: Duplicate users being created by... something!
ThreadText: # Duplicate users being created by... something!
  
  (Asked by: username_0 on 2020-02-20)
  
  I have been trying to unpick a mystery now for a week without success! I wonder if anyone can help.
  
  We have two contacts (out of a database of c 7,500) where we're seeing some odd behaviour.
  
  As an example - let's call him John Doe.
  
  John Doe has a contact record, linked to a Wordpress user account. He has registered for an event recently (may or may not be relevant). His record has a linked current employer, job title, and address.
  
  Every day at 12:13pm or 12:14pm, a duplicate John Doe account appears in CiviCRM, according to the change log created by John Doe, with matching:
  
  * Name
  * Email
  
  But without
  
  * Linked Wordpress account
  * Job Title
  * Current Employer
  
  I am at a loss to explain why. Things I have tried:
  
  * Disabling the Capitalisation Correction Extension
  * Disabling CiviRules
  * Examining the scheduled jobs log
  
  Cron runs every five minutes. The Scheduled Jobs log shows that between 12:10 and 12:15pm each day, there are no scheduled jobs running:
  
  > 2020-02-20 12:10:02 Finishing scheduled jobs execution.
  >
  > 2020-02-20 12:15:05 Starting scheduled jobs execution
  
  There are no scheduled jobs which uniquely run at 12:10pm.
  
  For each contact, there is only one item in the change log:
  
  [![Change Log](https://i.sstatic.net/oCcA4.png)](https://i.sstatic.net/oCcA4.png)
  
  I'd be extremely grateful for any advice on investigating this further as I am now drawing a blank (and I have 36 John Does in the database!)
  
  We are currently on 5.13.4 (security upgrade imminent)
  
  **Tags:** contacts
  
  > **Comments:**
  > **username_0**: One thing they have in common that I've just noticed - the day before this started happening, their accounts were merged with a duplicate. In both cases, the newly merged contact then inherited a membership from their employer.  
  > **username_1**: Just to clarify - it may not be relevant - is it 12 am or pm? You've mentioned both, and it seems super-extra weird if it's pm.  
  > **username_0**: @username_1 It is unfortunately the super-extra-weird pm!  
  > **username_2**: Does the new contact created have full name or only email? Any inbound activity? What is your unsupervised dedupe rule?  
  > **username_3**: Do you have detailed logging enabled?  That might provide a few more clues.  
  > **username_0**: Hi @PradeepNayak - Full Name and email, no inbound activity. De-dupe is:  First Name - 5 Last Name - 5 Email - 5  Threshold: 15  
  > **username_0**: @username_3 We certainly have logging enabled, not sure if it's detailed - I used the CiviCRM Log Viewer extension, and couldn't see anything relevant there - however, I am about to post a potential answer to this below!  
  > **username_3**: Ah, different logging.  I'm meaning Administer > System Settings > Misc > Logging  If so, you'll have a load of SQL tables starting log_   Examining the recent changes for log_civicrm_contact might give you some clues  
  > **username_0**: @username_3 That's helpful, thank you!  If the problem reoccurs I will start there  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2020-02-21. Score: 1
  
  This was resolved by removing the user's current employer, saving the record, and then re-adding the current employer. Seems potentially to have been some problem around the cascading membership?
  
  > **Comments:**
  > **username_0**: Actually nothing to do with memberships - I have just created a fresh CiviCRM & WP install with 5 contacts, completely separate to the site above and with no memberships, and one of the contacts is cloning in almost  exactly the way they did on the other site - this time 2 contacts (min) every evening ‍♂️  
  
  ---
  
  