Skip Import Entity
  • 30 Dec 2022
  • 1 Minute to read
  • Dark
    Light

Skip Import Entity

  • Dark
    Light

Article Summary

Step Details

Introduced in Version4.0.0
Last Modified in Version5.12.0
LocationSystem > 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

PropertyDescriptionData Type
Entity IdThe Entity Id to exclude during importString
Import Session IdImport Session IdString

Outputs

PropertyDescriptionData Type
OutputList of imported entitiesList of ImportSessionEntity

Example Inputs and Outputs

Entity IdImport Session IdOutput
EntityIdStartImportSession1_OutputList of Imported Entities
Null ValueEmpty StringEXCEPTION MESSAGE
Empty StringStartImportSession1_Output
EXCEPTION MESSAGE


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:

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:

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 ---



Was this article helpful?