{"id":1061,"date":"2026-03-16T07:41:30","date_gmt":"2026-03-16T07:41:30","guid":{"rendered":"https:\/\/onesystemcrm.com\/help\/?post_type=docs&#038;p=1061"},"modified":"2026-03-16T07:41:30","modified_gmt":"2026-03-16T07:41:30","password":"","slug":"troubleshooting-workflow-executions-race-conditions","status":"publish","type":"docs","link":"https:\/\/onesystemcrm.com\/help\/docs\/troubleshooting-workflow-executions-race-conditions\/","title":{"rendered":"Troubleshooting Workflow Executions &#8211; Race Conditions"},"content":{"rendered":"<p>A Race Condition is when two (or more) updates happen at the same time (in the same second). The two changes &#8220;race&#8221; and they might execute in a different order than they should, or one might signal that it executed but it really didn&#8217;t.<\/p>\n<h2 id=\"Open-the-exact-execution-via-the-message-deep-link\" dir=\"ltr\" data-end=\"5301\" data-start=\"5240\"><strong>Open the exact execution via the message deep link<\/strong><\/h2>\n<p dir=\"ltr\" data-end=\"5457\" data-start=\"5303\">Opening the execution directly from the impacted message ensures you\u2019re reviewing the correct run, contact, and timestamp before diagnosing timing issues.<strong dir=\"ltr\">Steps:<\/strong><\/p>\n<ol data-end=\"5787\" data-start=\"5466\">\n<li data-end=\"5545\" data-start=\"5466\">\n<p dir=\"ltr\" data-end=\"5545\" data-start=\"5469\">Go to\u00a0<strong data-end=\"5492\" data-start=\"5475\">Conversations<\/strong> and open the conversation with the impacted message.<\/p>\n<\/li>\n<li data-end=\"5590\" data-start=\"5546\">\n<p dir=\"ltr\" data-end=\"5590\" data-start=\"5549\">Open\u00a0<strong data-end=\"5573\" data-start=\"5554\">message details<\/strong> for the message.<\/p>\n<\/li>\n<li data-end=\"5675\" data-start=\"5591\">\n<p dir=\"ltr\" data-end=\"5675\" data-start=\"5594\">Click\u00a0<strong data-end=\"5612\" data-start=\"5600\">Workflow<\/strong>\u00a0(deep link) to open\u00a0<strong data-end=\"5654\" data-start=\"5633\">Execution Details<\/strong> with context loaded.<\/p>\n<\/li>\n<li data-end=\"5787\" data-start=\"5676\">\n<p dir=\"ltr\" data-end=\"5787\" data-start=\"5679\">Review the\u00a0<strong data-end=\"5704\" data-start=\"5690\">timestamps<\/strong>\u00a0and\u00a0<strong data-end=\"5725\" data-start=\"5709\">action order<\/strong>\u00a0to confirm whether multiple actions fired in the same second.<\/p>\n<\/li>\n<\/ol>\n<p dir=\"ltr\" data-end=\"5886\" data-start=\"5789\"><strong>Fallback:<\/strong><\/p>\n<p>If the Workflow link is not available in message details, open the execution from logs:<\/p>\n<ul data-end=\"6004\" data-start=\"5887\">\n<li data-end=\"6004\" data-start=\"5887\">\n<p dir=\"ltr\" data-end=\"6004\" data-start=\"5889\"><span dir=\"ltr\"><strong dir=\"ltr\" data-end=\"5925\" data-start=\"5889\">Workflows \u2192 open workflow \u2192 Logs<\/strong>, then filter\/search by\u00a0<strong data-end=\"5960\" data-start=\"5949\">contact<\/strong>\u00a0and the\u00a0<strong data-end=\"5984\" data-start=\"5969\">time window<\/strong>\u00a0around the message.<br \/>\n<\/span><\/p>\n<\/li>\n<\/ul>\n<hr \/>\n<h2 id=\"Example-Race-Condition:-Add-Tag-Executed-But-Not-Added\" dir=\"ltr\" data-identifyelement=\"513\"><strong dir=\"ltr\" data-identifyelement=\"514\">Example Race Condition: Add Tag Executed But Not Added<\/strong><\/h2>\n<p id=\"In-this-example,-we-can-see-that-the-tag-was-added-successfully-to-this-contact-in-the-execution-logs.-(See-image)\" dir=\"ltr\" data-identifyelement=\"517\">In this example, we can see that the tag was added successfully to this contact in the workflow execution logs.<\/p>\n<h2 id=\"\" dir=\"ltr\" data-identifyelement=\"520\"><img decoding=\"async\" class=\"fr-fic fr-fil fr-dib fr-bordered fw-lightbox-img\" src=\"https:\/\/s3.amazonaws.com\/cdn.freshdesk.com\/data\/helpdesk\/attachments\/production\/48237097817\/original\/pPEyoJgImK3T2gGbzJKB67cfk97rECsmrQ.png?1657131948\" data-id=\"48237097817\" data-identifyelement=\"521\" data-index=\"0\" \/><\/h2>\n<p id=\"But-when-we-check-the-contact-record,-there-is-no-sign-of-the-tag-(See-image)\" dir=\"ltr\" data-identifyelement=\"524\">However, when we check the contact record, there is no sign of the tag.<\/p>\n<p data-identifyelement=\"527\"><img decoding=\"async\" class=\"fr-fic fr-fil fr-dib fr-bordered fw-lightbox-img\" src=\"https:\/\/s3.amazonaws.com\/cdn.freshdesk.com\/data\/helpdesk\/attachments\/production\/48237098616\/original\/QV-c-v9lQ1vmsqrWFtQJxnTd9FnvBUttZQ.png?1657132211\" data-id=\"48237098616\" data-identifyelement=\"528\" data-index=\"1\" \/><\/p>\n<p id=\"Lets-go-back-to-the-execution-log-and-pay-attention-to-the-time-(See-image).-The-trigger-and-&quot;Add-Tag&quot;-action-fired-at-the-same-time-within-the-exact-same-second,-which-was-a-result-of-a-race-condition.\" dir=\"ltr\" data-identifyelement=\"531\"><span dir=\"ltr\">Lets go back to the execution log and pay attention to the time. The &#8220;Add to workflow&#8221; and &#8220;Add Tag&#8221; action fired at the same time within the exact same second, which is a race condition.<\/span><\/p>\n<p data-identifyelement=\"534\"><img decoding=\"async\" class=\"fr-fic fr-fil fr-dib fw-lightbox-img\" src=\"https:\/\/s3.amazonaws.com\/cdn.freshdesk.com\/data\/helpdesk\/attachments\/production\/48237097905\/original\/PtKVYprrQGKLzBww-ZXcYyVETqRuSFn5pg.png?1657131977\" data-id=\"48237097905\" data-identifyelement=\"535\" data-index=\"2\" \/><\/p>\n<hr data-identifyelement=\"520\" \/>\n<hr \/>\n<h2 id=\"How-To-Prevent-a-Race-Condition\" dir=\"ltr\" data-identifyelement=\"538\"><strong dir=\"ltr\" data-identifyelement=\"539\">How To Prevent a Race Condition<\/strong><\/h2>\n<p dir=\"ltr\" data-identifyelement=\"540\"><span dir=\"ltr\">To fix the race condition, just add a Wait action of 1 minute.\u00a0<\/span><\/p>\n<p data-identifyelement=\"540\"><img decoding=\"async\" class=\"fr-fic fr-fil fr-dib fr-bordered fw-lightbox-img\" src=\"https:\/\/s3.amazonaws.com\/cdn.freshdesk.com\/data\/helpdesk\/attachments\/production\/155037771738\/original\/aZsqCC0OAIfQkSQqUbLor31c9DWXbFaYeg.png?1733350591\" data-attachment=\"[object Object]\" data-id=\"155037771738\" data-identifyelement=\"524\" data-index=\"3\" \/><\/p>\n<p dir=\"ltr\" data-identifyelement=\"540\">With a Wait 1 minute action, there is no chance of the race condition occurring.<\/p>\n<p dir=\"ltr\" data-identifyelement=\"540\">\n","protected":false},"excerpt":{"rendered":"<p>A Race Condition is when two (or more) updates happen at the same time (in the same second). The two [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"doc_category":[17,46],"doc_tag":[],"class_list":["post-1061","docs","type-docs","status-publish","hentry","doc_category-automation-workflows","doc_category-workflow-builder"],"year_month":"2026-12","word_count":263,"total_views":"111","reactions":{"happy":"0","normal":"0","sad":"0"},"author_info":{"name":"usamasaeed219","author_nicename":"usamasaeed219","author_url":"https:\/\/onesystemcrm.com\/help\/author\/usamasaeed219\/"},"doc_category_info":[{"term_name":"Automation &amp; Workflows","term_url":"https:\/\/onesystemcrm.com\/help\/docs-category\/automation-workflows\/"},{"term_name":"Workflow Builder","term_url":"https:\/\/onesystemcrm.com\/help\/docs-category\/workflow-builder\/"}],"doc_tag_info":[],"knowledge_base_info":[],"knowledge_base_slug":[],"_links":{"self":[{"href":"https:\/\/onesystemcrm.com\/help\/wp-json\/wp\/v2\/docs\/1061","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/onesystemcrm.com\/help\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/onesystemcrm.com\/help\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/onesystemcrm.com\/help\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/onesystemcrm.com\/help\/wp-json\/wp\/v2\/comments?post=1061"}],"version-history":[{"count":1,"href":"https:\/\/onesystemcrm.com\/help\/wp-json\/wp\/v2\/docs\/1061\/revisions"}],"predecessor-version":[{"id":1062,"href":"https:\/\/onesystemcrm.com\/help\/wp-json\/wp\/v2\/docs\/1061\/revisions\/1062"}],"wp:attachment":[{"href":"https:\/\/onesystemcrm.com\/help\/wp-json\/wp\/v2\/media?parent=1061"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/onesystemcrm.com\/help\/wp-json\/wp\/v2\/doc_category?post=1061"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/onesystemcrm.com\/help\/wp-json\/wp\/v2\/doc_tag?post=1061"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}