I’ve got a workflow that creates a record (module b) when a certain conditon is met in another (module a, a ticket box is ticked and the record is saved). It copies information from fields in module a to module b.
It’s not set to repeated runs and yet it’s creating the new record twice. Has anyone else had this issue? Any recommended fixes? I’ve recreated the workflow and still encountering the bug.
Thanks
Urbanite
pgr
25 September 2018 13:22
2
Please tell us (or add a screenshot at https://pasteboard.co ) with the exact properties of your Workflow.
There might be some logic hook triggering a second save of the same record, causing the Workflow to be executed twice.
Sometimes you can add a boolean “Handled” auxiliary field to track the execution, and make that a condition for the Workflow to run.
So the workflow has a condition to only run if “Handled” is false.
And it has an action (the first action it does) to set “Handled” to true.
i am facing the same issue as well, the record created shows to all users regardless of roles and security groups. any solutions ?
the grouping is fine when i create a record in the module B.
The workflow has also only run once and there are no logic hooks set
pgr
24 September 2024 12:32
4
Do you have a duplicate record?
If so, can you please check the database to see if it’s really duplicated there, or if there is only one record, but it shows twice in the UI.
If you’re using custom logic hooks like after_save
or before_save
, review them to ensure they aren’t unintentionally firing multiple times.
rsp
26 September 2024 13:18
6
Sounds like you have some logic hook, scheduled job, etc which creating a second record. Did you check in DB?
hello i dont have any existing logic hooks or after save or before save records
and in the audit in workflow it shows only the workflow being run once
I have not checked in the DB