Scheduled Job Log State Not Updating When Flow Runs
When a scheduled flow runs, the State field in the Scheduled Job Log always stays as Scheduled, even while the flow is running or pending completion.
Is this expected behavior? If so, what’s the best way to track the real execution status of a scheduled flow (e.g., Running, Completed, Failed) and link it back to the Scheduled Job Log ID for reporting?
Comments
-
This is expected behavior. The State field in the Scheduled Job Log represents the status of the scheduling trigger itself, not the execution status of the flow. Once a scheduled job fires, the flow instance runs independently, and its progress is not reflected by changes in the job log state.
To track execution status in real time:
- Use a Database Query Definition step within the flow to query the job_schedule_log table.
- Retrieve the most recent log entry using an ORDER BY When_Started DESC clause.
- Map the Scheduled Job Log ID into the FlowData and link it to your reporting structure.
- Optionally, include the Instance Name (from FlowData) to ensure accurate tracking in clustered environments.
This approach allows you to establish a one-to-one relationship between the Flow ID and Scheduled Job Log ID, enabling detailed reporting on the execution status of scheduled flows.
Howdy, Stranger!
Categories
- 4.5K All Categories
- 88 General
- 13 Training
- 213 Installation / Setup
- 1.2K Flows
- 112 Rules
- 277 Administration
- 215 Portal
- 503 General Q & A
- 722 Forms
- 356 Reports
- 3 Designer Extensions
- 47 Example Flows
- 58 CSS Examples
- 1 Diagram Tile
- 8 Javascript Controls
- 190 Pages
- 5 Process Mining
- New Features
- 187 Datastructures
- 72 Repository
- 238 Integrations
- 30 Multi-Tenant
- 27 SDK
- 81 Modules
- 60 Settings
- 27 Active Directory
- 12 Version 7
- 37 Version 8
- 143 Lunch And Learn Questions