Skip to main content
Solved

How to generate download link for a workspace app?


limo
Supporter
Forum|alt.badge.img+8
  • Supporter

Hi,

 

we are using an fme flow app do to some export jobs for us.

When the job is done, a mail is sent tot he user. This is done by using the transformer “emailer” after FeatureWriter. The mail contains the link to download the data. To generatet he download link we have oriented ourselves here: https://community.safe.com/automation-13/download-urlfrom-server-app-11037

 

Our download link looks like: {FME Server Web URL}/fmedatadownload/results/{zip file name from FME_SERVER_DEST_DIR}

 

But when I click on the link the message „Download Dataset Expired“ appears

 

Can anyone help us?

Best answer by mattmatsafe

@limo on the last step of the publish wizard in FME Form where you register services, click ‘Edit’ next to the Data Download service. This will show the registered writers. Is the FeatureWriter included in ‘Writers in Download’? If not, try adding it.

If this doesn’t help, please submit a case: https://support.safe.com/hc/en-us/p/Support

Thanks

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

5 replies

mattmatsafe
Safer
Forum|alt.badge.img+10

Hi ​@limo I’m not familiar with the thread linked, but FME Flow will handle creating the data download link for you provided you have 1) registered your workspace with the Data Download service when publishing to FME Flow and 2) chosen the Data Download service when creating your workspace app. 

Do you see the zipped dataset you are linking to get created in Resources\System\temp\engineresults after the translation has run?

The links also expire in a day, so if you’re clicking a link from an old email, then it might no longer be valid.

 


limo
Supporter
Forum|alt.badge.img+8
  • Author
  • Supporter
  • March 24, 2025

I registered this workspace as Data Download and Job Submitter!

The process is defined in such a way that a FeatureWriter is defined in addition to the Writer. After the FeatureWriter I use the Transfoermer EMailer to send the message with the link.

 

If I only use only the FeatureWriter without the Writer, it does not write any data to the directory Resources\System\temp\engineresults. As result I get an e-mail with a link but this is not valid because nothing has been written in the directory


mattmatsafe
Safer
Forum|alt.badge.img+10
  • Safer
  • Best Answer
  • March 24, 2025

@limo on the last step of the publish wizard in FME Form where you register services, click ‘Edit’ next to the Data Download service. This will show the registered writers. Is the FeatureWriter included in ‘Writers in Download’? If not, try adding it.

If this doesn’t help, please submit a case: https://support.safe.com/hc/en-us/p/Support

Thanks


limo
Supporter
Forum|alt.badge.img+8
  • Author
  • Supporter
  • March 24, 2025

yes that was really helpful! thanks a lot ​@mattmatsafe . I didn't know that the individual writers inside the workbench still had to be added within the “Data Download” service. Now it is working! The zipped dataset is created in Resources\System\temp\engineresults


mattmatsafe
Safer
Forum|alt.badge.img+10

Great! Good to hear that resolved the issue.


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