--- title: "List Sub Contexts" slug: "list-sub-contexts" tags: ["Lists", "sub contexts", "Debug", "Flows"] updated: 2023-01-24T16:45:52Z published: 2023-01-24T16:45:54Z canonical: "documentation.decisions.com/list-sub-contexts" --- > ## 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. # List Sub Contexts | ## Step Details | | --- | | **Introduced in Version** | 4.0.0 | | **Last Modified in Version** | 5.12.0 | | **Location** | System > Advanced > Debugger | The List Sub Contexts step lists the Id of all sub contexts from the specified debugged Flow. --- ## Properties #### Inputs | Property | Description | Data Type | | --- | --- | --- | | Debug Id | The Id of the debugged Flow | String | #### Outputs | Property | Description | Data Type | | --- | --- | --- | | Output | List of Ids of the sub contexts from the Flow | List of String | --- ## Example Inputs and Outputs | Debug Id | Output | | --- | --- | | 6b76ad9fab6b4b2680c3109c5e7a1a65_debug | "6b76ad9fab6b4b2680c3109c5e7a1a65_debug.606c8514-20b5-4073-918c-7f4d135fd4ce", "6b76ad9fab6b4b2680c3109c5e7a1a65_debug.f936685f-9a41-4291-8434-bbed8ca326e2", "6b76ad9fab6b4b2680c3109c5e7a1a65_debug:8d6d7b87-49a0-4817-a34e-a709b0b6b6ba", "6b76ad9fab6b4b2680c3109c5e7a1a65_debug.6800b346-859d-4159-aef9-27c83b4a2675", "6b76ad9fab6b4b2680c3109c5e7a1a65_debug.8ede1493-764a-4689-bbaf-691f0c65ecf7", "6b76ad9fab6b4b2680c3109c5e7a1a65_debug.8e14c2c2-dbae-4f9c-b117-e135ad13ebf2" | | Null | EXCEPTION MESSAGE | | Empty | EXCEPTION MESSAGE | #### --- ## Common Errors ### Debug entity with id = ' ' not found If the Debug Id is null or empty, the step will cause an error. To correct this, enter or map a correct value to the field. #### Exception Message: ```csharp Exception Stack Trace: DecisionsFramework.Design.Flow.ErrorRunningFlowStep: Error running step List Sub Contexts[ListSubContexts] in flow [Example]: Exception invoking method ListSubContexts on class DebuggerSteps ---> DecisionsFramework.LoggedException: Exception invoking method ListSubContexts on class DebuggerSteps ---> System.InvalidOperationException: Debug entity with id = '' not found. at DecisionsFramework.Design.Flow.Service.Debugging.DebugData.DebugDataStorage.Retrieve(String id, Boolean failIfNotFound at DecisionsFramework.Design.Flow.Service.Debugging.DebugData.DebuggerSteps.ListSubContexts(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 Number Of Sub Contexts](/get-number-of-sub-contexts.md) - [Get Number Of Steps](/get-number-of-steps.md) - [Output Data](/output-data.md) - [Get Rule Result](/get-rule-result.md) - [Get Flow Run Data History For Another Flow](/get-flow-run-data-history-for-another-flow.md)