Skip to main content
Hi,

 

I would like to know if anybody has any experience on how to access files on an FMECloud instance. To clarify a bit, I have a xls file in a folder in the resources section that I would like to access in mid-translation via FME desktop. The idea is to verify details that are on the xls file before continuing with the translation.

 

I was thinking on using the HTTPCaller, but couldnt access the resources section on the instance.

 

Any tips would be appreciated.

 

Itay

 

 
Hi,

 

 

there are a couple of published parameters available on FME Server to access the shared resources:
  • FME_SHAREDRESOURCE_TEMP
  • FME_SHAREDRESOURCE_DATA
So if you upload "myData.xls" into the Data resource section on FME Server, you can access it with e.g. a FeatureReader using $(FME_SHAREDRESOURCE_DATA)/myData.xls

 

 

You can also create subdirectories in the shared resources to organize your files.

 

 

David
Hi David,

 

Thanks for the info, unfortunatly this wil only work if the ws is run on the instance, I would like to run the ws locally and access the files.
Then I would suggest using a scripted parameter that checks if FME_SHAREDRESOURCE_DATA exists. If not, you could return FME_MF_DIR instead, which is the directory where the workspace is saved.

 

 

David
The FME_SHAREDRESOURCE_DATA would not exist since it is run locally, and the FME_MF_DIR is not an option since I dont want to make the file locally available.

 

If it would just be possible to access it with an HTTPCaller.....then I could query the contents in midtranslation, is it at all possible?
No sure if the shared resource files are directly accessible via HTTP on FME Server. But you could of course publish a simple workspace on the cloud that returns your resource file over HTTP.

 

 

David
and I did just that, thanks for setting me on the right path....
What about using the FMEREST API to download the resource via the HTTPCaller? 

 

http://docs.safe.com/fmerest/v2/resources/FME_SHAREDRESOURCE_TEMP/filesys/foo/bar?detail=low 
Hi SigTill,

 

If I understand you correctly that will result in a local copy of the resource file, something I am trying to avoid.

 

I followed David's suggestion and created a ws that is registered to the data streaming service. Now I can access the online file without a local copy.

Reply