--- title: "Skip Import Entity" slug: "skip-import-entity" tags: ["import", "skip", "entity", "Session"] updated: 2022-12-30T16:14:48Z published: 2022-12-30T16:14:48Z canonical: "documentation.decisions.com/skip-import-entity" --- > ## 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. # Skip Import Entity | ## Step Details | | --- | | **Introduced in Version** | 4.0.0 | | **Last Modified in Version** | 5.12.0 | | **Location** | System > Advanced > Import - Export | The **Skip Import Entity** step reads an Import Session Id and the Entity Id of the entity to exclude during import. It then outputs the list of imported entities that does not include the entity specified by the Entity Id input. --- ## Properties #### Inputs | Property | Description | Data Type | | --- | --- | --- | | Entity Id | The Entity Id to exclude during import | String | | Import Session Id | Import Session Id | String | #### Outputs | Property | Description | Data Type | | --- | --- | --- | | Output | List of imported entities | List of ImportSessionEntity | --- ## Example Inputs and Outputs | Entity Id | Import Session Id | Output | | --- | --- | --- | | EntityId | StartImportSession1_Output | List of Imported Entities | | Null Value | Empty String | EXCEPTION MESSAGE | | Empty String | StartImportSession1_Output | EXCEPTION MESSAGE | #### ![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/image-1672415079664.png) --- ## Common Errors ### Value cannot be null If the entity does not exist, the step will cause an error. To correct this, ensure that the entity being passed exist. #### Exception Message: ```csharp Exception Stack Trace: DecisionsFramework.Design.Flow.ErrorRunningFlowStep: Error running step Skip Import Entity 1[SkipImportEntity] in flow [Flow 2]: Exception invoking method SkipImportEntity on class ImportExportSteps ---> DecisionsFramework.LoggedException: Exception invoking method SkipImportEntity on class ImportExportSteps ---> System.ArgumentNullException: Value cannot be null. (Parameter 'source' at System.Linq.ThrowHelper.ThrowArgumentNullException(ExceptionArgument argument at System.Linq.Enumerable.TryGetFirst[TSource](IEnumerable`1 source, Func`2 predicate, Boolean& found at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source, Func`2 predicate at DecisionsFramework.ServiceLayer.Utilities.ObjectsImporter.SkipImportEntity(String importItemId at DecisionsFramework.ServiceLayer.Services.ImportExport.ImportExportSteps.SkipImportEntity(String importSessionId, String entityId) --- 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 --- ``` ### Import Entity/Session Id must be provided If either input value is not mapped or entered correctly, an error will occur. To correct this, ensure that the values are mapped or entered correctly. #### Exception Message: ```csharp Exception Stack Trace: DecisionsFramework.Design.Flow.ErrorRunningFlowStep: Error running step Substring 1[Substring] in flow [Display Steps]: Exception invoking method Substring on class StringSteps ---> DecisionsFramework.LoggedException: Exception invoking method Substring on class StringSteps ---> System.ArgumentOutOfRangeException: Index and length must refer to a location within the string. (Parameter 'length') at System.String.Substring(Int32 startIndex, Int32 length) --- 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 - [Start Import Session](/start-import-session.md) - [Add File Reference To Current Import Session](/add-file-reference-to-current-import-session.md) - [Add File Data To Current Import Session](/add-file-data-to-current-import-session.md) - [Get Import Status](/get-import-status.md)