--- title: "Get Number Of Steps" slug: "get-number-of-steps" tags: ["Steps", "Debug", "Flow"] updated: 2023-01-06T21:37:57Z published: 2023-01-06T21:37:57Z canonical: "documentation.decisions.com/get-number-of-steps" --- > ## Documentation Index > Fetch the complete documentation index at: https://documentation.decisions.com/llms.txt > Use this file to discover all available pages before exploring further. # Get Number Of Steps | ## Step Details | | --- | | **Introduced in Version** | 4.0.0 | | **Last Modified in Version** | 5.12.0 | | **Location** | System > Advanced > Debugger | The **Get Number Of Steps** step returns the number of steps in the debugged Flow. --- ## Properties #### Inputs | Property | Description | Data Type | | --- | --- | --- | | Debug Id | The Debug ID can be extracted from the Debug Report Page of a particular Flow by adding the Parent ID field to this Report. | String | #### Outputs | Property | Description | Data Type | | --- | --- | --- | | Output | Number of Flows | Int32 | --- ## Example Inputs and Outputs #### ![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/image-1673039910610.png) --- ## Common Errors ### Debug entity with id = 'xxxxxxxxx' not found If the Id is not entered correctly, an error will occur. To correct this, change the length or the starting index not to exceed the input's length. #### Exception Message: ```csharp Exception Stack Trace: DecisionsFramework.Design.Flow.ErrorRunningFlowStep: Error running step Get Number Of Steps 1[GetNumberOfSteps] in flow [Flow 1]: Exception invoking method GetNumberOfSteps on class DebuggerSteps ---> DecisionsFramework.LoggedException: Exception invoking method GetNumberOfSteps on class DebuggerSteps ---> System.InvalidOperationException: Debug entity with id = '10F367FB0D8C443308FDF' not found. at DecisionsFramework.Design.Flow.Service.Debugging.DebugData.DebugDataStorage.Retrieve(String id, Boolean failIfNotFound at DecisionsFramework.Design.Flow.Service.Debugging.DebugData.DebuggerSteps.GetNumberOfSteps(String debugId) --- End of inner exception stack trace --- at DecisionsFramework.Design.Flow.StepImplementations.InvokeMethodStep.Run(StepStartData data at DecisionsFramework.Design.Flow.FlowStep.RunStepInternal(String flowTrackingID, String stepTrackingID, KeyValuePairDataStructure[] stepRunDataValues, AbstractFlowTrackingData trackingData at DecisionsFramework.Design.Flow.FlowStep.Start(String flowTrackingID, String stepTrackingID, FlowStateData data, AbstractFlowTrackingData trackingData, RunningStepData currentStepData) --- End of inner exception stack trace --- ``` ## Related - [Get Flow Run Data History](/get-flow-run-data-history.md) - [Get Current Step Information](/get-current-step-information.md) - [Get Historical Step Information](/get-historical-step-information.md) - [Get Flow Run Data History For Another Flow](/get-flow-run-data-history-for-another-flow.md)