Question

Method of temporary saving a file on FME Server for email attachment

  • 23 November 2021
  • 1 reply
  • 29 views

Badge +11

I've been able to create a Workspace that gathers PDF's -> ZIP them -> Attaches files -> to Emailer Transformer. The file only needs to be temporary until the Workspace is complete.

I'm trying to understand FME Server Resources and using [FME_SHAREDRESOURCE_TEMP] or [FME_SHAREDRESOURCE_DATA] within a Workspace but no success.

 

Are these the wrong location or not accessible

OR

Do I need to follow and create a new location "Example 4: Using a Resource Folder Within a Workspace" in https://community.safe.com/s/article/fme-server-resources-uploading-referencing-and-con-1


1 reply

Userlevel 4
Badge +26

Check out the TempPathnameCreator​:

http://docs.safe.com/fme/html/FME_Desktop_Documentation/FME_Transformers/Transformers/temppathnamecreator.htm

This will just create a folder in the temp location and return a path as an attribute to a feature. You can use this path in the FeatureWriter as the output and then it will automatically be cleaned up at the end of the workspace.

You might want to experiment a little with the tool to see how it works and what gets created where. As a tip you can add in a Decelerator after the FeatureWriter​ with some huge time so the workspace never finishes (preventing cleanup), this will help you figure out what is going on and test.

Reply