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

Dont 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 Dont Skip Import Entity step reads an Import Session Id and the Entity Id of the entity to keep during import. It then outputs the list of imported entities including the entity specified by the Entity Id input.



Properties

Inputs

PropertyDescriptionData Type
Entity IdThe Entity to not skipString
Import Session IdImport Session IdString

Outputs

PropertyDescriptionData Type
OutputList of imported entitiesList of ImportSessionEntity

Example Inputs and Outputs

EntityImport Session IdOutput
EntityStartImportSession1_OutputList of Imported Entities
Null ValueEmpty StringEXCEPTION MESSAGE
Empty StringNullEXCEPTION MESSAGE


Common Errors

Value cannot be null

If the desired entity is null, an error will occur.

To correct this, ensure that the entity exists.

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



Was this article helpful?