Skip to main content
Solved

Excel: read schema via user parameter

  • September 16, 2019
  • 7 replies
  • 43 views

Forum|alt.badge.img

I need to read an Excel spreadsheet. I use user defined parameters to set a filename and a sheet name.

This is a simplified workflow:

This is a parameter I use:

 

and this is schema settings for FeatureReader

 

It gives me the following error:

 

Here is my test example

Best answer by takashi

Hi @victorddt, it doesn't seem that the FeatureReader treats the feature type name "INPUT" well. I would recommend you to contact Safe support to clarify what happened FME internal.

View original
Did this help you find an answer to your question?

7 replies

takashi
Influencer
  • Best Answer
  • September 17, 2019

Hi @victorddt, it doesn't seem that the FeatureReader treats the feature type name "INPUT" well. I would recommend you to contact Safe support to clarify what happened FME internal.


itay
Supporter
Forum|alt.badge.img+17
  • Supporter
  • September 17, 2019

Hi @victorddt,

Strange just trying to read the xls with a reader results in an error, possibly there is something wrong with the file you have provided. (using FME 2019.1.0.0)


Forum|alt.badge.img
  • Author
  • September 17, 2019
itay wrote:

Hi @victorddt,

Strange just trying to read the xls with a reader results in an error, possibly there is something wrong with the file you have provided. (using FME 2019.1.0.0)

Hi @itay. I use the same FME version. Have you tried my test file? It's attached below.


itay
Supporter
Forum|alt.badge.img+17
  • Supporter
  • September 18, 2019
victorddt wrote:

Hi @itay. I use the same FME version. Have you tried my test file? It's attached below.

Hi @victorddt, Yes that's the one I have used to try the workspace and a completely new workspace just trying to read the xls file.

Saving the file with INPUT2 seems to solve the problem, So I guess @takashi had it right the all time :)


fmelizard
Safer
Forum|alt.badge.img+18
  • Safer
  • September 19, 2019
takashi wrote:

Hi @victorddt, it doesn't seem that the FeatureReader treats the feature type name "INPUT" well. I would recommend you to contact Safe support to clarify what happened FME internal.

Hi @victorddt Yes, INPUT isn't a valid sheet name. I've filed FMEENGINE-61539 about this.


Forum|alt.badge.img
  • Author
  • September 20, 2019
takashi wrote:

Hi @victorddt, it doesn't seem that the FeatureReader treats the feature type name "INPUT" well. I would recommend you to contact Safe support to clarify what happened FME internal.

@danatsafe Thank you for registering the ticket. I have tried to change the sheet name from "INPUT" to "MYDATA" and update the parameter and Excel accordingly.

Same result - I can see only "no schema" list.


fmelizard
Safer
Forum|alt.badge.img+18
  • Safer
  • September 20, 2019
victorddt wrote:

@danatsafe Thank you for registering the ticket. I have tried to change the sheet name from "INPUT" to "MYDATA" and update the parameter and Excel accordingly.

Same result - I can see only "no schema" list.

Hi @victorddt MYDATA works for me. I think you just need to set the Features To Read on the FeatureReader.


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