Skip to main content
Solved

Import data from Excel spreadsheet using file path provided in excel

  • December 24, 2024
  • 5 replies
  • 135 views

adnanyazdani
Contributor
Forum|alt.badge.img+2

Hi

I need guidance / Support

I have an excel where 
FiletypeName: .MDB
Path of the MDB is mentioned

Workspace should read the excel and go to tha path mentioned in the excel and read the mdb for each and it should individual for each
 

 

 

Workspace should go to that path and read the MDB file in which Different FC are mentioned and then write it back with same Name of MDB and Fc in GDB format


Kindly Guide me how can i proceed

I have attached sample data with excel and MDB

Best answer by evieatsafe

Hi ​@adnanyazdani sounds like you have half of a dynamic workspace but the writer isn’t quite complete. I would follow the articles here: https://support.safe.com/hc/en-us/articles/25407480725645-Tutorial-Dynamic-Workflows

 

I think an important step would be to add a SchemaScanner or somehow expose your attributes with an AttributeExposer, and then make the writer use the dynamic schema. 
 

if this doesn’t work for you, could you give us an example of what your data looks like, and what is being read into FME specifically in the Feature Information Window? Thanks!

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

5 replies

jobvdnoort
Supporter
Forum|alt.badge.img+10
  • Supporter
  • December 24, 2024

Hi,

Hopefully I understood correctly.

I made 3 options.

  • one where a file and directory reader is merged with you’r excel. (you could test later if the file excist or not.
  • one where I only use a folder and directory reader and filter on the MDB files
  • one where only the ecxel is read and it reads the MDB files from the excel information.

I would prefer the first one, so when you have a lot of folders with a lot of different files, and someone adds something in the ecxel, but not in the folder, you can see what file you are missing.

Let me know if this helps you.

Kr

Job


adnanyazdani
Contributor
Forum|alt.badge.img+2
  • Author
  • Contributor
  • December 24, 2024

Thanks ​@jobvdnoort 
That was my requirement..

I was successfully able to run it but i cannot the feature or details in MDB , I see in visual preview as No schema..

I should able to read all the data in each feature class wise 

 


I should able to read all the data in each feature class wise for each each and i should write it back with same name to GDB..

Your support highly appreciated

Thanks Again
 

 


evieatsafe
Safer
Forum|alt.badge.img+18
  • Safer
  • Best Answer
  • December 27, 2024

Hi ​@adnanyazdani sounds like you have half of a dynamic workspace but the writer isn’t quite complete. I would follow the articles here: https://support.safe.com/hc/en-us/articles/25407480725645-Tutorial-Dynamic-Workflows

 

I think an important step would be to add a SchemaScanner or somehow expose your attributes with an AttributeExposer, and then make the writer use the dynamic schema. 
 

if this doesn’t work for you, could you give us an example of what your data looks like, and what is being read into FME specifically in the Feature Information Window? Thanks!


adnanyazdani
Contributor
Forum|alt.badge.img+2
  • Author
  • Contributor
  • January 14, 2025

@evieatsafe 

Thanks for the suggestions and myself and my colleague followed the instructions provided but we couldnt achieve the results.

I have attached you the workspace and sample data 

We are just trying to transfer the MDB data to GDB  stored in different path by reading path from  the excel sheet and pulling the data from that path and then extract the information and transform it to GDB and then store in the similar path..

Thank You so much for the kind support

Thanks Again


evieatsafe
Safer
Forum|alt.badge.img+18
  • Safer
  • January 21, 2025

Hi ​@adnanyazdani thanks for your workspace that you are working on. You may want to try the MS Access reader instead of the Personal GDB reader to see if this produces different and better results. I also see in your workspace that you have connected an AttributeExposer to the Schema which is curious, you may want to review our articles on working with the SchemaScanner and Dynamic writing. 

Also, you can expose attributes directly in the FeatureReader under Attribute & Geometry Handling > Generic Port > Attributes to Expose. This way you won’t have to use an AttributeExposer.

 

I also want to mention that even if your Table View when using Feature Cache says <no schema>, you likely still have attributes unexposed in the Feature Information Window. When writing dynamically you do not need to expose these unless you are manipulating the attribute values. As long as you have connected the schema to the writer, either from the FeatureReader or the SchemaScanner, and also specify the Schema Sources and Schema Definition Name. This should write without error. 

 

It does sound like you are facing errors on reading, so perhaps solve those errors first? What errors are you facing right now? Let me know if you have any follow-up questions.


Reply


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