Add File Reference To Current Import Session
  • 27 Dec 2022
  • 1 Minute to read
  • Dark
    Light

Add File Reference To Current Import Session

  • Dark
    Light

Article summary

Step Details

Introduced in Version4.0.0
Last Modified in Version5.0.0
LocationSystem > Advanced > Import - Export

The Add File Reference To Current Import Session allows a user to add a file reference to an import session.



Properties

Inputs

PropertyDescriptionData Type
File ReferenceFile Reference to be added with sessionFileReference
Import Session IdImport session IdString

Outputs

PropertyDescriptionData Type
OutputImport session entityList of ImportSessionEntity

Example Inputs and Outputs

FileNameIdSizeImport Session IdOutput
NullNull2StartImportSession1_Output
EXCEPTION MESSAGE
Airports.txt

b0ef2ded-8937-435c-98a6-60b13799d4d4

95943StartImportSession1_Output
Import Session Entity Data


Common Errors

Object reference not set to an instance of an object

If the input values for the file reference are not set correctly, an error will occur.

To correct this, ensure that the fields for the FileReference field are set correctly.

Exception Message:

Exception Stack Trace: DecisionsFramework.Design.Flow.ErrorRunningFlowStep: Error running step Add File Reference To Current Import Session 1[AddFileReferenceToCurrentImportSession] in flow [Flow 2]: Exception invoking method AddFileReferenceToCurrentImportSession on class ImportExportSteps
 ---> DecisionsFramework.LoggedException: Exception invoking method AddFileReferenceToCurrentImportSession on class ImportExportSteps
 ---> System.NullReferenceException: Object reference not set to an instance of an object. at DecisionsFramework.ServiceLayer.Services.FileReference.FileReferenceService.GetRelativeDirForFile(String idOrName
 at DecisionsFramework.ServiceLayer.Services.FileReference.FileReferenceService.GetFilePathFromIdOrName(String idOrFullNameWithId, Nullable`1 fileDateTime, Boolean includeDeprecatedDirs, Boolean searchAllDirectories
 at DecisionsFramework.ServiceLayer.Services.FileReference.FileReferenceHandler.GetData(FileReference fileReference, Int32 offset, Int32 chunkSize
 at DecisionsFramework.ServiceLayer.Services.FileReference.FileReferenceService.GetData(AbstractUserContext user, FileReference fileReference, Int32 offset, Int32 chunkSize
 at DecisionsFramework.ServiceLayer.Services.FileReference.FileReference.get_Data(
 at DecisionsFramework.ServiceLayer.Services.ImportExport.ImportExportSteps.AddFileReferenceToCurrentImportSession(String importSessionId, FileReference fileReference)
   --- 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?