Skip to content

Lead conversion: Duplicate created before duplicate conflict thrown #3499

@qbejs

Description

@qbejs

Describe the bug
The system creates duplicate Account and Contact records when converting Lead entities, even though duplicate protection is enabled.

To Reproduce (MANDATORY, DO NOT REMOVE)
Explicit steps to reproduce the behavior:

  1. Set duplicate check in entities Account and Contact on field E-mail
  2. Create lead with email address existing in one of the records in Contact entity to trigger duplicate protection
  3. Click Convert in Lead record (convert to Account, Contact)
  4. Modal with message about duplicate will pop up
  5. Click Save
  6. Check Account and Contact entities, sytem crated duplicates - one will have linked Lead, second one will be orphan

Expected behavior
System will not create duplicate record, but link existing one

EspoCRM version
9.2.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions