Skip to main content
Question

Access to a File on FME Server

  • August 21, 2020
  • 1 reply
  • 14 views

Forum|alt.badge.img

I want to access to an excel file, which is on the FMEServer Resouces Folder. Because i have to read out some values from this excel i put into an pythonscript, which build an XML Filter for a WFS Reader. The pythonscript is in a private Parameter. I have the following code:

 

import fme

import xlrd

 

list_gemeinden =[]

#loc = ("C:\\Temp\\gemeinde.xlsx") 

loc = fme.macroValues["ExcelAuswahl"] #$(FME_SHAREDRESOURCE_TEMP)\\gemeinde.xls is the content of parameter ExcelAuswahl

 

Is this correct or I'm totally wrong?

Best Regard

 

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.

1 reply

nielsgerrits
VIP
Forum|alt.badge.img+60
  • 2940 replies
  • August 21, 2020

I would use FeatureReaders instead of classic readers and chain them together.