<h2>Flow Wait for Condition Evaluates True but Subsequent If Condition Evaluates False</h2><br/><div style="overflow-x:auto"><article><div ><h2 >Issue </h2><section><div class="ns-kb-css-body-editor-container"> <div> <ul style="list-style-position: inside;"><li>A Flow Designer execution intermittently evaluates a <strong>Wait for Condition</strong> step as <strong>true</strong>, but a subsequent <strong>If Condition</strong> using the same field evaluates as <strong>false</strong>, resulting in unexpected flow behavior.</li></ul> </div> <span id="ns-kb-css-end-div-identifier" style="display: none; pointer-events: none;"></span></div></section></div><div ><h2 >Release</h2><section><div class="ns-kb-css-body-editor-container"> <ul style="list-style-position: inside;"><li>Any</li></ul> <span id="ns-kb-css-end-div-identifier" style="display: none; pointer-events: none;"></span></div></section></div><div ><h2 >Cause</h2><section><div class="ns-kb-css-body-editor-container"> <ul style="list-style-position: inside;"><li>The flow evaluates stale record data during execution.</li><li>The Wait for Condition step evaluates a newer record state, while the subsequent If Condition step evaluates an older cached record state.</li><li>This causes the same field to return different values within the same flow execution. </li></ul> <span id="ns-kb-css-end-div-identifier" style="display: none; pointer-events: none;"></span></div></section></div><div ><h2 >Resolution</h2><section><div class="ns-kb-css-body-editor-container"> <div> <ul style="list-style-position: inside;"><li>The issue is resolved by <strong>enabling</strong> the following <strong>system property: com.glide.hub.flow.force_fresh_record_on_update</strong></li><li>This property forces Flow Designer to retrieve the latest record state after a record update instead of using a cached version.</li><li>As a result, subsequent conditions and actions evaluate the most current data, ensuring consistent behavior throughout the flow execution. <ul style="list-style-position: inside;"><li style="font-weight: bold;"><strong>Note: Enabling this property may have performance implications because it forces fresh record retrieval after updates.</strong></li></ul> </li><li><strong>An alternative approach</strong> is to <strong>add a Lookup Record step immediately after the Wait for Condition step</strong> and use the newly retrieved record in subsequent conditions and actions to avoid stale data evaluation.</li></ul> </div> <span id="ns-kb-css-end-div-identifier" style="display: none; pointer-events: none;"></span></div></section></div></article></div>