Skip to main content

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.

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

 


Mark and Dan just did an AMA for Question of the week.
Ask Me Anything: Dynamic Workflows | Community

Safer’s Picks: The 6 FME Transformers You Didn’t Know You Needed - FME by Safe Software

Dynamic Workspaces Demystified: Your Path to Streamlined Data Management - FME by Safe Software


Reply