Skip to main content
Question

Reading an Excel file exposing all available columns automatically (To create Web App)


joku041199
Contributor
Forum|alt.badge.img+4

Hey Everybody, 

In my work, I generally get the question from clients to build a FME Server Web Application. Often, the question involves a MS Excel file, which needs to be analyses and converted to points/lines/polygons (GIS). Mostly, I use a Creator to kick-off the Workspace and a FeatureReader to load in the Excel. Also, I force the FeatureReader to have one single output port (Generic) and load in the Excel file using a User Parameter when kicking off the Workspace. This means that I need to Expose all attributes individually in the Workspace.

However, this limits the flexibility. When I want to create a Web App from the Workspace, the input Excel always needs to have the same columns (so a Template Excel as input). An potential extra column is therefore not exposed an not in the result of the Workspace. However, in some cases, it is for my clients not possible to always use an Excel Template. Or they want to add additional information. 

My question therefore is, is it possible to dynamically read in an Excel file with all the existing columns exposed? So that there is no manual actions required and a Web App can be made. To my knowledge, the AttributeExposer doesn't contain a “Expose all” option… Or can I use the Schema output port of the FeatureReader? I don't really understand how I can work with that either...

 

5 replies

ebygomm
Influencer
Forum|alt.badge.img+32
  • Influencer
  • April 2, 2025

Look into writing dynamically which negates the need to expose the attributes


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

Hi ​@joku041199 This is a total stab in the dark, but can we use the Schema port to get the attributes names?


s.jager
Influencer
Forum|alt.badge.img+16
  • Influencer
  • April 2, 2025
crutledge wrote:

use the Schema port to get the attributes names?

That’s what you should do. That should even allow you to expose all the attributes, adding them as ‘proper’ attributes. I’ve used a workflow similar to that myself a few times.


joku041199
Contributor
Forum|alt.badge.img+4
  • Author
  • Contributor
  • April 2, 2025
s.jager wrote:
crutledge wrote:

use the Schema port to get the attributes names?

That’s what you should do. That should even allow you to expose all the attributes, adding them as ‘proper’ attributes. I’ve used a workflow similar to that myself a few times.

Thanks! However, I don't really understand how the Schema port works. I see a list is created with all the names of the columns, which can be Exloded with a ListExploder. But I still don't get how this can translate into getting all available columns in an Excel. Do you by any chance have an example workspace? 


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

Hi ​@joku041199 Yeah I definitely have a lot to learn on this but I have used the following to try demystify.

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

I am sure someone has a workspace to share. I do not. Still learning.
Hope that helps!


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