Export Entities to CSV
  • 10 Jan 2023
  • 1 Minute to read
  • Dark
    Light

Export Entities to CSV

  • Dark
    Light

Article Summary

Step Details

Introduced in Version4.0.0
Last Modified in Version7.12.0
LocationData > Excel and CSV

The Export Entities to CSV step exports an entity as a CSV file with specific fields 



Properties

Inputs

PropertyDescriptionData Type
Field NamesA list of strings representing the fieldsString
Type NameThe full name for the datatypeString

Outputs

PropertyDescriptionData Type
Sample FileThe outputted file containing a list of the specified datatypeFileData


Common Errors

Value cannot be null (Parameter 'T')

The step requires the fully qualified name for a datatype in order to be used, for example PerformanceTesting.ExampleList. The input is case sensitive and must match exactly

Exception Message:

Exception Stack Trace: DecisionsFramework.Design.Flow.ErrorRunningFlowStep: Error running step Export Entities to CSV 1[ExportToCSV] in flow [Testing Flow]: Value cannot be null. (Parameter 'T') ---> System.ArgumentNullException: Value cannot be null. (Parameter 'T')
   at DecisionsFramework.Data.ORMapper.DynamicORM.Fetch(Type T, Boolean includeDeleted, Boolean runChecksum)
   at DecisionsFramework.Design.Flow.CoreSteps.DataBase.ExportToCSV.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 ---


Could not find the field name

The input for the field name is case sensitive. The casing must match how it is defined for the datatype.

Exception Message:

Exception Stack Trace: DecisionsFramework.Design.Flow.ErrorRunningFlowStep: Error running step Export Entities to CSV 1[ExportToCSV] in flow [Testing Flow]: could not find field name ---> DecisionsFramework.LoggedException: could not find field name
   at DecisionsFramework.Design.Flow.CoreSteps.DataBase.ExportToCSV.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?