function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Olivia Draughon 9Olivia Draughon 9 

Process Builder Creating Duplicate Record

Hi, 

I created a custom object that is a child object to Opportunities called "Sales Credit". When the Opportunity Stage reaches "Pending Accounting Approval", a new Sales Credit record is created. However, on certain occasions (random) a sales credit is duplicated. How can I keep this from happening, as it is double counting revenue and skewing data and we have resulted to checking a report everyday and deleting the duplicates. 

The Recurrsion checkbox is unchecked and I have attempted to make this time dependent hoping that would help. 

User-added imageUser-added imageUser-added imageUser-added image
IGNACIO SARMIENTO LOSADA1IGNACIO SARMIENTO LOSADA1
Hi Olivia Draughon 9,

Do you have any workflow or trigger that updates the opportunity? Because this may execute the process builder, workflow or trigger again.

Thanks
Regards,
Ignacio
IGNACIO SARMIENTO LOSADA1IGNACIO SARMIENTO LOSADA1
is it solved your issue? thanks
Olivia Draughon 9Olivia Draughon 9
Yes, there are other workflows triggered at that stage. 
IGNACIO SARMIENTO LOSADA1IGNACIO SARMIENTO LOSADA1
perfect, so you have to take it into account and try not to create recursivity in your process. Could you mark as best answer if you think it is ok? Thanks in advance