Skip to main content
Question

Reading CSV files with different schemas and writing to SQL server.


ifawzi
Participant
Forum|alt.badge.img

Hi,

I am new to FME, and I am trying to build an FME workspace that reads multiple .csv files from a folder and write each file to separate table in SQL server. Each CSV file:

  • has different schema
  • should became it is own SQL table

Here is what I tried so far:

  1. I used Directory and File Pathnames reader
  2. I used Feature Reader

The <Generic> port of Feature Reader shows no data, I am assuming because the schema of each is different. the <initiator> port give me the correct file name and path.

2 replies

j.botterill
Influencer
Forum|alt.badge.img+36
  • Influencer
  • April 3, 2025

You will want to connect both the Schema port and the Generic or FeatureType data output ports of a feature reader, going into a FeatureWriter.

Read up about Dynamic Writing

On the FeatureWriter, you need to set it to fme_feature_type and the schema

 


crutledge
Enthusiast
Forum|alt.badge.img+31
  • Enthusiast
  • April 3, 2025

Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings