Duplicate records created by workflow

Hi there,

I’ve got a workflow that runs on the leads module. When a Lead is marked as converted it creates a record in the accounts module inputting information from the original entry in leads. However it seems to create two or three duplicate records when it runs.

I’ve recreated the workflow from scratch and it still happens. The workflow triggers on save.

Thanks

Urbanite

You could have some second workflow doing this, or a logic hook perhaps?

If something causes the record to save again, it will trigger the workflow again.

But this could also be happening for some internal reason - something in the SuiteCRM code that triggers a second save.

You can try changing your option for “Repeated runs” to “no”.

If that doesn’t work, you might try creating some custom field called “processed” and setting it to “1” when you run the Workflow. Add a condition to the Workflow that it can only run if “processed” is “0”, and it should avoid second runs.

Hi pgr,

This is a no repeat workflow and no additional workflows or logic loops and involved. I’d already thought to try added a database record in the record to say the workflow is processed.

However, what has occurred to me is that the at the begging of the workflow the initial lead record is updated which now I realise is probably causing additional ‘saves’ which I assume must be triggering the workflow again. I’m going to move that process to the end of the workflow and see if that makes any difference.

Thanks

Urbanite