Skip to main content
Solved

Excel: read schema via user parameter

  • Sep 16, 2019 10:46 PM UTC
  • 7 replies
  • 112 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
This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

7 replies

takashi
Celebrity
  • Best Answer
  • Sep 17, 2019 3:06 AM UTC

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+19
  • Supporter
  • Sep 17, 2019 6:57 AM UTC

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
  • Sep 17, 2019 9:26 PM UTC

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+19
  • Supporter
  • Sep 18, 2019 6:10 AM UTC

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+22
  • Safer
  • Sep 19, 2019 9:25 PM UTC

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
  • Sep 20, 2019 12:29 AM UTC

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+22
  • Safer
  • Sep 20, 2019 8:26 PM UTC

@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.