Skip to main content

Hi there,

Can you please help me with this? Every time when a new report came in, I’d have to manually open the “FreatureReader” dialogbox and hit “Ok” (to close) so that the new attributes that are added in new report at the new folder location are emerged. Otherwise, it would just read previous attributes from the new report (in below case, up to the end of June, not the July columns). 

I’m just trying read an MS Access file that is stored dynamically in different folder each month. 

 

 

You will need to set up the workflow in a dynamic way. take a look at this tutorial to help get you started.

https://support.safe.com/hc/en-us/articles/25407480725645-Tutorial-Dynamic-Workflows

The feature reader makes it easy because it contains the “Schema” feature which comes out of the schema port. You can configure a write to look for the schema feature and use that to build the output table/attribute structure


FME does not know what to expect when the column-names change. Using the first row as attributenames could be helpfull but in your case it isn't.

So you should set up that FME reads the file without translating the columns to column-header-names. But keep the columnletter as the name.

Then in your workbench calculate what column index you want to read that day/week and rename those columns to what you want.


None of these worked. 

 

One thing that I want to highlight is that as long as I open the Reader settings manually, and hit “Ok” without touching anything, the Reader would appear to be refreshing something, and then the old script just works fine enough that it would include the new additional attributes. And then it works perfectly this way even after I restart my FME and run again (it would still fine all of the attributes), until next report comes in next month (means the path is changed and new attributes are added). So I think the logic is fine, I just don’t know how to implement this ‘touching’ or ‘refreshing’ behaviors of the FME so that it can kind of ‘touch’ the new file and automatically detect the new attributes. 

Eventually, I’m trying to automate this if my script runs with robustness. Thanks. 


What you want is not possible in FME.

That's why I suggested an alternate process, which is more complicated but possible.

Or you could try with autohotkey or something. So autohotkey could physically open your workbench, open the reader and open the properties. And then save your workbench.


Any suggestions from the vendor? 


Reply