Skip to main content

Hello,

Is there a way to extract the schema automatically from an Excel file when FME Server runs the scheduled workbench?

People who drops the Excel files doesn't change the fields though, only the sheet name.

Thanks.

If you use the FeatureReader rather than the reguler Excel reader, you'll get the schema feature as well as the data features. If you use a single output port, you'll be able to read any Excel file. And since the schema feature comes before the data features, you can analyze the structure of your Excel file before working on the data, e.g. verify the existence of certain fields etc.

Just remember that you'll have to manually expose the attributes in your workspace when using the single output port.


It works great! I can't retrieve the fme_basename though. Even with the AttributeExposer. Is there another way?


It works great! I can't retrieve the fme_basename though. Even with the AttributeExposer. Is there another way?

Hi @philippeb,

 

You will have to expose it in the excel readers parameters - you might still also need the AttributeExposer

 


Reply