Answers.Body: <p>When you did the merge, did you select the Check box between the 2 contacts for that row of data? It is between == ==>  If you do not check that, it will not merge that data over.</p>
  
  <p>Where to find the file? Go to Admin > System Settings > Directories and you will see the path for Custom Files Directory  </p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-03-12T04:08:14.297Z
Answers.LastActivityDate: 2019-03-12T04:08:14.297Z
Answers.UserDisplayName: Iowa Boy
Answers.Body: <p>What you describe sounds like this bug <a href="https://lab.civicrm.org/dev/core/issues/723" rel="nofollow noreferrer">https://lab.civicrm.org/dev/core/issues/723</a> </p>
  
  <blockquote>
    <p>File custom fields cause a fatal error when trying to merge
    If you are trying to merge a contact with a custom field that is a file, if the contact that will be deleted is passing a file to the remain contact, the merge will fail, generate a fatal error, and lose all the custom data in the set including the file.</p>
    
    <p>To recreate:</p>
    
    <p>Create a contact custom field that accepts a file.
    Add files to one or two contact records.
    Merge a contact with a file into another contact
    Fatal Error occurs. All files are no longer attached to the custom fields. The contact to be deleted loses all the custom fields. While the remaining contact looses only the file.
    If the contact that is to remain has no image the error message is</p>
    
    <p><code>No record found for given file ID - 0 and entity ID - 203</code></p>
  </blockquote>
  
  <p>I'm also seeing this in CiviCRM 5.10.3. So I would say this is a known bug which has not yet been fixed.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-03-14T21:41:14.437Z
Answers.LastActivityDate: 2019-03-14T21:41:14.437Z
Answers.UserDisplayName: TwoMice
Body: <p>i encountered a situation that when I merge 2 similar records, i would get an error with the duplicate record has a file attachment.  The records will remain but the duplicate record would have lost its file attachment.  This would not happen if I flip the 2 records and have the record that has the file attachment be the main record instead.  If I merge it this time, the file attachment stays without any error as expected.</p>
  
  <p>Would this be a bug ?  Also, in the case where the file attachment is lost in the error, would the file attachment be still inside the database and how can that be located ?</p>
  
  <p>I am on CIVICRM 5.10.4 Wordpress 5.0.3</p>
  
  <p>thanks.</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-03-12T10:12:54.187Z
Comments.Text: If you are getting an error and losing data it is a bug.  However there were quite a few fixes in 5.11.0 so please upgrade to that and test again.  If you get the same problem, please report it at https://lab.civicrm.org/dev/core/issues
Comments.UserDisplayName: Aidan
Tags: <duplicate-contacts>
Title: File attachment lost during merging of records
ThreadText: # File attachment lost during merging of records
  
  (Asked by: username_0 on 2019-03-11)
  
  i encountered a situation that when I merge 2 similar records, i would get an error with the duplicate record has a file attachment. The records will remain but the duplicate record would have lost its file attachment. This would not happen if I flip the 2 records and have the record that has the file attachment be the main record instead. If I merge it this time, the file attachment stays without any error as expected.
  
  Would this be a bug ? Also, in the case where the file attachment is lost in the error, would the file attachment be still inside the database and how can that be located ?
  
  I am on CIVICRM 5.10.4 Wordpress 5.0.3
  
  thanks.
  
  **Tags:** duplicate-contacts
  
  > **Comments:**
  > **username_1**: If you are getting an error and losing data it is a bug.  However there were quite a few fixes in 5.11.0 so please upgrade to that and test again.  If you get the same problem, please report it at https://lab.civicrm.org/dev/core/issues  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_2 on 2019-03-12. Score: 0 | Accepted answer
  
  When you did the merge, did you select the Check box between the 2 contacts for that row of data? It is between == ==> If you do not check that, it will not merge that data over.
  
  Where to find the file? Go to Admin > System Settings > Directories and you will see the path for Custom Files Directory
  
  
  ---
  
  ### Answer by username_3 on 2019-03-14. Score: 2
  
  What you describe sounds like this bug <https://lab.civicrm.org/dev/core/issues/723>
  
  > File custom fields cause a fatal error when trying to merge
  > If you are trying to merge a contact with a custom field that is a file, if the contact that will be deleted is passing a file to the remain contact, the merge will fail, generate a fatal error, and lose all the custom data in the set including the file.
  >
  > To recreate:
  >
  > Create a contact custom field that accepts a file.
  > Add files to one or two contact records.
  > Merge a contact with a file into another contact
  > Fatal Error occurs. All files are no longer attached to the custom fields. The contact to be deleted loses all the custom fields. While the remaining contact looses only the file.
  > If the contact that is to remain has no image the error message is
  >
  > `No record found for given file ID - 0 and entity ID - 203`
  
  I'm also seeing this in CiviCRM 5.10.3. So I would say this is a known bug which has not yet been fixed.
  
  
  ---
  
  