Questions tagged [choetl]

Cinchoo ETL is a popular high-performance ETL framework for .NET.

Cinchoo ETL is an ETL framework for .NET. Simple, intuitive Extract, transform and load (ETL) library for .NET. It is a code-based ETL framework for extracting data from multiple sources, transforming, and loading into your very own data warehouse in .NET environment. Extremely fast, flexible, and easy to use.

Sample shows how to load below CSV (emp.csv) file

Id,Name
1,Tom
2,Carl
3,Mark

Load using iterator

foreach (dynamic e in new ChoCSVReader("Emp.csv").WithFirstLineHeader())
    Console.WriteLine("Id: " + e.Id + " Name: " + e.Name);

Load using loop

var reader = new ChoCSVReader("Emp.csv").WithFirstLineHeader();
dynamic rec;

while ((rec = reader.Read()) != null)
    Console.WriteLine("Id: " + e.Id + " Name: " + e.Name);

Load using POCO object

public class Employee
{
    public int Id { get; set; }
    public string Name { get; set; }
}
foreach (var e in new ChoCSVReader<Employee>("Emp.csv").WithFirstLineHeader())
    Console.WriteLine("Id: " + e.Id + " Name: " + e.Name);

References

57 questions
0
votes
1 answer

JSON to CSV conversion using CHOETL displaying values in one row and not columns

I am converting a JSON file to a CSV file. The JSON has multiple nested objects. While converting, I am able to get all the values out of the JSON and into the CSV. However, all the values are being shown as one row with the same heading repeated…
EnglishBanana
  • 121
  • 1
  • 8
0
votes
2 answers

c# convert json string to .csv

I am trying to convert a json string, containing array elements, to a .csv file. Below is the json string format: {"inputFile": [["Column1", "Column2", "Column3", "Column4", "Column5", "Column6", "Column7", "Column8", "Column9", "Column10"], ["A",…
swhat
  • 37
  • 1
  • 5
0
votes
3 answers

XPath returns null in c# but works in XPath validator

This is my first time using XPath. This is my XML:
lifeTech
  • 17
  • 6
0
votes
1 answer

Modify CSV file headers/column names using Cinchoo ETL

I have a .Net Core application where I want to change the column names of a csv file. I'm using the Cinchoo ETL library. I have tried the following: string csv = "../../../../data.csv"; using (var w = new…
sbattou
  • 319
  • 3
  • 18
0
votes
0 answers

Ach processing adding special characters in file

I have to generate ACH file(my code is below). whenever bank is processing this. it add some special characters in front of the file. Unable to figure out What can be the proper way to generate the ACH file having NACHA format, so that it can be…
0
votes
1 answer

Calling method with quartz scheduler to create ACH file using ChoNacha gives exception

I want to generate ACH files automatically with the help of scheduler. Scheduler call gives me exception whereas direct call from URL does not I have implemented the following code for creating ACH files //scheduler job Task…
0
votes
2 answers

csv to json file format

I want to convert my csv file into .json format using c#. here what i have tried: var lines = @"text,intentName,entityLabels 1,2,null 2,1,null".Replace("\r", "").Split('\n'); var csv = lines.Select(l => l.Split(',')).ToList(); …
Raspi Surya
  • 315
  • 2
  • 11
  • 28
0
votes
1 answer

Apply custom formatting to each JSON property

Does the ChoJSONWriter or Newtonsoft support apply custom formatting to each JSON property. After pulling my data from the datasource I would like apply the following format to each JSON record. { "Place": "{0}", "SkuNumber": "SKU_{1}" } I can…
Raihan Iqbal
  • 407
  • 3
  • 16
0
votes
3 answers

C# Convert Json to CSV

I have a json file in the following…
ppau2004
  • 193
  • 2
  • 3
  • 16
0
votes
1 answer

Convert json file to csv in C# using ChoETL library

I am trying to convert a list of objects from a JSON file to excel using this library https://www.codeproject.com/Articles/1193650/Cinchoo-ETL-Quick-Start-Converting-JSON-to-CSV-Fil in C#. The object is a JSON array so that means it contains also…
0
votes
1 answer

how to handle spaces in file names in path

I want to access a file like : new ChoJSONReader(@"0_Target Finds.json") but I tried all possible ways to access like: new ChoJSONReader("'0_Target Finds.json'") Nothing worked for me.. Is anyone knows please help me in this
-2
votes
1 answer

Deserializing csv with unknown headers to a List or Array

My question is different from other SO questions, because those deserialization samples are for a typed POCO class, in my scenario I don't have any types ahead of time. Files are being dropped in a folder from various sources. Without, the…
Transformer
  • 6,963
  • 2
  • 26
  • 52
1 2 3
4