Skip to main content
Solved

Is there a way to preserve the file name not the sheet name: converting excel files to geodatabase feature classes


Forum|alt.badge.img

Hi,

 

 

I have a workspace set up to convert excel files to geodatabase feature classes with the sheet names being preserved in the output. I'm wondering if there's a way to preserve the actual excel file name instead?

 

 

Thanks!

Best answer by takashi

Hi @badams, try exposing "fme_basename" or "fme_dataset" in the Format Attributes tab of the Excel reader feature type. "fme_basename" will contain the source file name without extension; "fme_dataset" will contain the source file path.

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

2 replies

takashi
Contributor
Forum|alt.badge.img+19
  • Contributor
  • Best Answer
  • November 22, 2017

Hi @badams, try exposing "fme_basename" or "fme_dataset" in the Format Attributes tab of the Excel reader feature type. "fme_basename" will contain the source file name without extension; "fme_dataset" will contain the source file path.


Forum|alt.badge.img
  • Author
  • November 22, 2017
takashi wrote:

Hi @badams, try exposing "fme_basename" or "fme_dataset" in the Format Attributes tab of the Excel reader feature type. "fme_basename" will contain the source file name without extension; "fme_dataset" will contain the source file path.

Worked perfectly! Thanks so much @takashi

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